Process Identifier (PID)
0
votes
0answers
16 views
Vsftpd crashing often and changing PID
I have a server setup with vsftpd as FTP server and monit as server watchdog for vsftpd and other servers.
I have received complaints about FTP sessions crashing often. The FTP server is highly ...
0
votes
0answers
58 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
51 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
0answers
199 views
netstat -anp No PID/Program name? [closed]
I am newbie to this,Could someone help ?
I didn't see any PID/PROGRAM name on some process, what could that be the reason ?
# netstat -anp
Active Internet connections (servers and established)
...
0
votes
1answer
40 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
0answers
31 views
spamassassin with no spamd.pid
I already have a folder in /var/run/ with the name of spamassassin but I can't seem to find spamd.pid anywhere on the server, I already have spamassassin up and running but I need to monitor the ...
0
votes
1answer
18 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 ...
0
votes
1answer
787 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 ...
1
vote
1answer
104 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
172 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
429 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
341 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
48 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
94 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 ...
1
vote
1answer
985 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
137 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 ...
0
votes
1answer
76 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
579 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
233 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
245 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
460 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
174 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, ...
2
votes
4answers
307 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 ...
1
vote
3answers
2k 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
248 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
295 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 ...
2
votes
2answers
2k 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)
...
1
vote
3answers
736 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
...
0
votes
1answer
154 views
Shell script Process PID logging and maintenance using exec
I am trying to launch a java process as a server and then might periodically need to restart/kill it at certain times. Since I use a shell script to launch java jvm(to build classpath), I thought of ...
1
vote
1answer
292 views
Thread dump to a file
I read that I can find the process ID and then use kill command to save the thread dump to a file. But the following example does not return anything...
# ps aux | grep -i java
wcuser 9136 0.0 ...
0
votes
2answers
399 views
Memory usage by PID?
I was trying to measure how much memory an application is using in the current moment.
So here we go, free -k -t:
[user@server ~]$ free -k -t
total used free shared ...
1
vote
4answers
1k views
Nagios monitor process by pid file
Is there any possibilty to monitor processes with nagios? I found the check_procs command, which I can't use because it doesn't let me specify a file to read the PID from. Also, I don't seem to find ...
0
votes
2answers
115 views
WinServer 2003: Cant find process holding onto ports
We have a couple of production WCF services failing to start because their ports are apparently in use by another process. I have done a netstat -ano and found the PID's that are using these ports, ...
5
votes
3answers
2k views
What is the range of a PID on Linux and Solaris?
What is the maximum and minimum value for a PID (Process ID) on Linux and Solaris?
3
votes
4answers
9k views
Bash child proccess PID - how do you get it?
Can any one tell me how to get the PID of a command executed in bash.
E.g. I have a bash script that runs imapsync.
When the script is killed the imapsync process does not always get killed, so I'd ...
2
votes
6answers
4k views
How to get pid of just started process
I want to start process (eg. myCommand) and get its pid (to allow to kill it later).
I tried ps and filter by name, but I can not distinguish process by names
myCommand
ps ux | awk ...
0
votes
1answer
62 views
Do something with Apache's root PID before it forks
I need to set a property on the root Apache process which in inherited by its children (e.g. oom_adj, cgroup membership). However, Apache will fork itself as soon as it starts.
Using $$ in the ...
6
votes
1answer
6k views
Init script does not create a PID file
I need to create an init script for an IRC logger. I copied /etc/init.d/skeleton. I filled in the configuration section to fit my needs and I also had to add --background to the start daemon command ...
5
votes
5answers
6k views
what permission to write PID file in /var/run
Ubuntu
touch: cannot touch `/var/run/test.pid': Permission denied
I am starting start-stop-daemon and like to write the PID file in /var/run
start-stop-daemon is run as my-program-user
/var/run ...
1
vote
2answers
2k views
Can start-stop-daemon use environmental variables?
I need to daemonize a Windows app running in Wine, and create a pid in /var/run. Since it requires an X11 session to run, I need to make sure the $DISPLAY variable is set in the running user's ...
0
votes
2answers
640 views
Identify PID of a transient network connection on HP-UX 11.23
We've tried lsof and tcpdump to capture the PID of a process that is attempting to make connections. Any ideas?
5
votes
4answers
4k views
Are .pid files reliable for determining whether a process is running?
Many programs such as sshd create .pid files in /var/run/ that contain their process ID. Are these files reliable for determining whether a process is running? My guess is that these files are ...
0
votes
1answer
328 views
How can I force a refresh of what ports have listeners
I'm trying to re-launch a WCF service that I killed earlier, but I'm getting an AddressAlreadyInUseException. The port it's attempting to use is 1819.
I ran netstat -nao from the command line, and ...
0
votes
2answers
246 views
Given pid, find the long gone process
I know that a certain process is restarting my web server at a certain time (probably in a cron job? It doesn't happen every day, though) but I don't know which process, only it's id (from looking at ...
9
votes
2answers
4k views
Directory in /var/run gets deleted after hard reboot
I keep my sphinx pid in /var/run/sphinx/searchd.pid but every time I hard reboot the directory /var/run/sphinx disappears and sphinx fails to start. Is there a way to make that directory stick or ...
0
votes
2answers
538 views
Where is the apache pid file on Gentoo?
I need it to configure Monit, but the path in the sample config file is /usr/local/apache/logs/httpd.pid and it's not there. It's also not anywhere in /etc (at least not with that name).
4
votes
2answers
1k views
Possible to send kill signal to all processes with a given ppid?
I have found myself having to regularly send kill -STOP one million processes, but they all come from the same parent. Is there a smarter way to do this?
3
votes
4answers
14k views
Port 80 is being used by SYSTEM (PID 4), what is that?
I am trying to use port 80 for my application server, but when I perform "netstat -aon" I get
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
When I look up the process in ...
2
votes
5answers
4k views
how to get process file name from PID in MacOS?
Is it possible to get a file name of a process using PID? ps displays a lot of useful information about a process, but not a hint about a process executable file location.