Process Identifier (PID)

learn more… | top users | synonyms

2
votes
2answers
31 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: ...
3
votes
2answers
541 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
69 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
38 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
93 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
107 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
315 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
348 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
0answers
279 views

Red Hat with rpc.statd is not running and can't start nfslock

I try to mount from Linux machine to some folder on win machine. From the output I see that mount complains about rpc.statd. So I tried to start the nfslock but I got FAILED. Then I look on the ...
0
votes
2answers
89 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 ...
0
votes
0answers
20 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
528 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
0answers
16 views

How to call the proc_register() function/ execve()

Is there any way monitoring the calling of the function " proc_register"? so that each time a proc registery is called (ot there is a new process creation) i will get the notification/alert/other..?
0
votes
1answer
629 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
93 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
88 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
4k 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
110 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
135 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
283 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
68 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
5k 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
428 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
695 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
540 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
72 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
222 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
8k 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
287 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
113 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
4k 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
555 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
610 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
1k 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
369 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, ...
5
votes
4answers
5k 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
5k 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
402 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
546 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 ...
3
votes
2answers
5k 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
2k 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
255 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
778 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
550 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
3k 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
159 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, ...
6
votes
3answers
5k 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?
7
votes
5answers
20k 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 ...