Process Identifier (PID)

learn more… | top users | synonyms

0
votes
0answers
22 views

Apache Failure on Centos 7 not starting

hellau everyone, i have a problem, that i cant resolve alone, so i need your help. i have installed on a centos 7 apache when im asking for the status of the service (systemctl status httpd) so i ...
1
vote
0answers
24 views

Outputting PID of Rails server(s) with ps aux | grep - breaks when put into an alias? [migrated]

I'm trying to create an alias for an unwieldy command I'm using to output the PID and some other information about two rails servers I have running. When I simply run the command in terminal (over ...
0
votes
0answers
30 views

RamMap shows millions of processes that Task manager doesn't

I have a server 2008 box with 32GB RAM on and i have been investigating why it runs out of memory every 150 ish days. Task manager shows that we are running at 99% memory usage but all the processes ...
1
vote
0answers
13 views

When is a pid needed in log rotation?

I've read that providing pid in the newsyslog.conf is to ensure that the process writes in the new log file. However, I've tried log rotation without providing a pid because I couldn't find one for ...
2
votes
1answer
50 views

Ubuntu: Postfix and Cyrus expecting saslauthd PID file in different locations

I'm running postfix and cyrus in parallel on my server, as far as I understand this is a quite common think to do. Both daemons use sasl authorization. However, postfix is looking for the saslauthd ...
0
votes
3answers
25 views

Log pid than cpu higher than a value

I'm looking for a way to log the pid of process higher than a fixed value of cpu (ex 40%). I tried with command like this : ps -eo pcpu,pid,user,args | sort -k 1,2 -r | head -10 But, first, it sorts ...
0
votes
1answer
28 views

Where to create an AF_LOCAL/AF_UNIX socket file when not allowed to write in /var/run?

FSH says that socket and pid files should go to /var/run However, for security purpose, only root can creates file and subdirectories in this location. A common solution is creating a subdirectory ...
22
votes
3answers
2k views

Given a PID on Windows - how do I find the command line instruction that executed it?

On a database, I can get a list of all the currently running processes, and the sql command that kicked them off. I'd like to do a similar thing on a windows box. I can get the list of processes, ...
1
vote
5answers
205 views

Get the pid if 2 tomcat(s) is running

I have 2 tomcat's running, how do I get the pid if both have similar names? ps -ef | grep java root 12952 1 0 10:01 pts/0 00:00:03 /usr/lib/jvm/jre/bin/java ...
3
votes
2answers
137 views

Reduce PID_MAX Safely

I have one server in a cluster that was experiencing a process table leak. Because the developer responsible for the code was unavailable for a few days I increased pid_max on the machine as follows: ...
4
votes
2answers
681 views

Is it normal for PID's to be over 65535?

I have a managed VPS running on CloudLinux 6.6 x86_64 standard. It has a few websites with MySQL, PHP and Apache running with CPanel. I am working on a PHP system that needs to manage a PID and ...
1
vote
2answers
404 views

screen command process id

First of all sorry for my bad english and i am new at linux. When i do this, it can write process id to pid file start () { echo -n "Starting someserver.jar: " java -jar ...
-2
votes
1answer
54 views

How to get a process ID automaticly with command prompt [closed]

I´d want to know how to get a PID of a process with a single command in command prompt. I tried it with findstr, but I´m (apparently) not so smart to figure it out. You cannot use tasklist, because ...
-2
votes
1answer
316 views

Pid and Lock files are not created in Nginx custom build Centos 7

I am trying to install nginx from source. After make install, I had a look at /var/run/ folder but I cant find the nginx.pid file and nginx.lock files there. This is my configuration: sudo ...
0
votes
1answer
366 views

Restarting shell script with &disown using Monit

I have a shell script that runs a C++ backend mail system (PluginHandler). I need to monitor this process in Monit and restart it if it fails. The script: export ...
0
votes
1answer
949 views

Could not access pid file for elasticsearch

I am not a die-hard linux engineer, but I am having some problems with starting Elastic Search. Some stats: Server: Ubuntu Server 11.04 Elastic Search: 1.2.3 (installed with appitude) When I start ...
0
votes
1answer
504 views

Weird stuff in server error log?

I have a PHP script that shuts down server processes based on their PIDs. It seems like it works well, however, I found this weird stuff in Apache's error log. Any idea on what it's saying? [Thu Jul ...
0
votes
2answers
150 views

Problems with pid files when restoring OpenVZ snapshot

I am trying different ways to take snapshots of running openvz containers. Following this guide : http://openvz.org/Checkpointing_and_live_migration, I always encounter an issue with pid files ...
2
votes
0answers
28 views

Process identifier mask in z/OS

I've noticed a curious pattern to process identifier numbers on the z/OS system I'm working on (uname reports it as OS/390), they're either 1-4 digits long or 8 digits long but never in between. The ...
0
votes
1answer
1k views

Monit is not restarting process

I have monit to monit a process but it doesn't realize it is down. My monit configuration is this: check process xxx with pidfile /var/run/xxx.pid group yyy start program = "/etc/init.d/xxx start" ...
0
votes
1answer
1k views

sh bash script ambiguous redirect pid of file using single quotes

I have the following new line in my .sh file su --session-command='$javaCommandLine & >>$serviceLogFile 2>&1 & echo \$! >$pidFile' $serviceUser || return 1 When I had it ...
1
vote
2answers
132 views

How to map an ephemeral port to a pid?

I have a RHEL server with several apps on it and I am attempting to figure out which one of them is making calls to an external web service. I have TCP dumps that show the calls being made and through ...
1
vote
0answers
132 views

Upstart shows non-existent process running

I am using upstart 1.8-0ubuntu1 on Ubuntu-1210-quantal-64-minimal. It shows me nginx to be running, when it's not. # service nginx status nginx start/running, process 2543 # ps -p 2543 PID TTY ...
1
vote
2answers
7k views

Does kill -3 actually terminate a java process? Or just generate a thread dump?

CentOS 5.9 If I run kill -3 <java process pid> what actually happens? As per this red hat article, I understand that a Java Thread Dump is generated but is the process terminated? It doesn't ...
1
vote
2answers
351 views

If I know the PID number of a process can I know its name?

If I have the PID number for a process (on a UNIX machine), how can I know the name of its associated process? What do I have to do?
0
votes
0answers
148 views

ulimit -u could be exceeded by some user

Our server is forced to restart sometimes because some users (not all) could start more zombie suphp defunct processes than allowed through the RLIMIT_NPROC / ulimit -u statement. How is that ...
0
votes
2answers
426 views

What happens when pid_max is reached

As the title suggests, what happens when pid_max (32bit standard is 32768) is reached with many zombie-processes? On our server a user generates a lot of suphp defunct zombie processes and this ...
0
votes
1answer
77 views

Interfacing strace with Process Name instead of PID

How do I implement a wrapper script pstrace in bash that changees the interface of [sudo] strace -c -p [PID] to [sudo] pstrace -c -p [PROCESS-NAME] similar to how killall [PROCESS-NAME] is ...
0
votes
1answer
23 views

dead parents tree for debugging

$ ps UID PID PPID C STIME TTY TIME CMD il 17626 1 0 14:02 ? 00:00:00 /bin/bash /usr/bin/xdg-open file:///media/distrpart/Downloads/utorrent/test.png I want to ...
1
vote
1answer
9k views

MySQL server quit without updating PID file

I need help on how to start the mysql server. The problem arise when the root directory was full. To be able to login to directadmin and start mysql, I added a soft link of the /var/lib/mysql/ to ...
2
votes
1answer
722 views

Can I recover a nano process from a previous terminal?

My system crashed while I was in a nano session with unsaved changes. When I log back in via SSH I see the nano process still running when I do a ps. davidparks21@devdb1:/opt/frugg_batch$ ps -ef | ...
0
votes
1answer
1k views

nscd dead but subsys locked

service nsd status nscd dead but subsys locked It starts fine but eventually crashes... server: logfile: "/var/log/nsd.log" pidfile: "/var/run/nsd/nsd.pid" What randomly causes NSD to do this? ...
2
votes
4answers
2k views

Apache process consumes too much CPU

I have an ubuntu apache/php server running php doing appx 100 hits/sec and a PHP cron running in the background. I get occasionally high CPU load on one of the Apache processes which stays high ...
3
votes
1answer
582 views

Looking for way to log process terminations on OS X (Mac)

I'm looking for a way to log all process terminations on my Mac (OS X 10.6.8). (And see pid, timestamp, process name) I've implemented something similar for HP-UX, but it required a kernel-level ...
1
vote
1answer
87 views

failure daemon and changing pid number

proftpd, sshd and apache processes run with /etc/init.d/its-script on linux distro. I was monitoring 21, 22 and 80 ports with farm monitoring service: every 5 minutes service check each port and ...
0
votes
1answer
321 views

Windows Server 2008 R2 Troubleshooting PID Leaking

One of our servers has been leaking PID like crazy. I wrote a simple scheduled script, and it seems that every day the highest PID increases by approx. 300'000. E.g., if on Aug.24 00:00 the highest ...
3
votes
1answer
14k views

How to find the .pid file for a given process

I'm setting up monit and want to monitor a given python application. Monit does this by looking at the .pid files for processes, but I don't know where this would be. I also tried creating my own ...
3
votes
1answer
319 views

AIX: is it somehow possible to get a ForeignAddress/PID pair like we are able to get in Linux with netstat?

In Linux (RHEL), we are able to get a ForeignAddress/PID pair with "netstat -ntp" command: [root@rhel ~]# netstat -ntp Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address ...
1
vote
1answer
127 views

Making directories visible only by owners

I am in the process of creating a secured shared hosting and, between the hosting features, I want to give SSH access. I've already chrooted the users via SSH, FTP and PHP (using PHP-FPM), and would ...
0
votes
3answers
8k views

PID history of a process

What I want to know is PIDs that were assigned to a process before its last 2-3 restart. Scenario is after this particular process crashes, a log file is generated and PID of the process is ...
1
vote
2answers
718 views

PID file for C program for monit [closed]

How can I create a pid file for a C program to be used in monit, and how do I monitor that C program using monit?
1
vote
2answers
797 views

freebsd pid file not created

Pid files not created in /var/run folder. rc.d script: #!/bin/sh . /etc/rc.subr name=phpcgi rcvar=phpcgi_enable pidfile=/var/run/${name}.pid command=/usr/local/bin/php-cgi load_rc_config $name ...
3
votes
1answer
2k views

How to get the PID of a process started by /bin/su -c

I'm writing a init.d-script for an java-app. But the java-app should be run by another user. (The OS I'm using is Debian Squeeze.) I already got this: /bin/su - $USER - c "cd $PATH;echo $PASSWORD | ...
1
vote
2answers
432 views

pid directory is deleted

I'm having a service (Sonatype's Nexus) which failed to init since it PID folder (/var/run/nexus) was deleted. Any idea how that folder can be deleted? The nexus service, when gracefully stopped, ...
7
votes
4answers
10k views

What's a proper way of checking if a PID is running?

I have a .pid file, and I need to check if the process is running. So far I found two options kill -0 `cat something.pid` which prints out an error if the pid isn't running. I know this can be ...
2
votes
3answers
6k views

sshd running but no PID file

I'm recently started using monit to monitor the status of sshd on my CentOS 5.4 server. This works fine, but every so often monit reports that sshd is no longer running. This isn't true - I am still ...
0
votes
1answer
512 views

PID of a command executed in bash

I need a linux / unix command that will execute another command and write the PID of the command it executes to a file... is there such a command? I am not looking for any scheme that puts processes ...
2
votes
2answers
668 views

How can I enable pid and ppid fields in psacct dump-acct?

I am currently using the psacct package on Centos to perform accounting on processes run by users. The info file1 suggests that it is possible to output pid and ppid depending on what information ...
5
votes
2answers
7k views

Can't create PID file on MySQL server, permission denied

The MySQL server won't start and is reporting the following error: /usr/local/mysql/bin/mysqld: Can't create/write to file '/usr/local/mysql/data/James-Barnhills-Mac-Pro.local.pid' (Errcode: 13) ...
2
votes
3answers
3k views

How to kill these PHP process safely?

I have installed php5 in ubuntu and WordPress. It can run after installed. But after few days I've found there are lots of process and occupied a lot of memories. I try to use ps -aux | grep www-data ...