Questions tagged [pid]

Process Identifier (PID)

In computing, the process identifier (normally referred to as the process ID or just PID) is a number used by most operating system kernels (such as that of UNIX, Mac OS X or Microsoft Windows) to (temporarily) uniquely identify a process. This number may be used as a parameter in various function calls allowing processes to be manipulated, such as adjusting the process's priority or killing it altogether.

Source: wikipedia

105 questions
1
vote
2 answers

How to get last PID when last process spawned a child and exited?

I start ssh -S mysocket example.com to connect example.com. If my connection hangs, I need to kill that process: ssh -S mysocket example.com -N -L 1234:localhost:1234 & last_pid=$! ...(do something blocker) kill $last_pid But that doesn't work.…
ceremcem
  • 208
  • 1
  • 10
1
vote
1 answer

Kill (close) reliability monitor windows by PID powershell

I am trying create a process of the windows reliability monitor and kill it after I take a screenshot. I am having trouble to get the process and automatically close it before I take the screenshot because there is no process ID that identifies that…
kimo pryvt
  • 421
  • 4
  • 11
  • 22
1
vote
1 answer

Process changes its PID every second

Today I saw that one process (.NET Runtime Service - mscorsvw.exe) changes its PID really often. When Task Manager refreshes the PID of that process, it is always different. Is that normal? An antivirus program didn't find anything.
Redeil
  • 13
  • 3
1
vote
1 answer

zombie lxc swap file: text file busy but no pid

I have a server running Ubuntu 12.04.5 LTS (Precise Pangolin). On that server I created a new Linux container: $ sudo lxc-create -n mycontainer After a while I decided to get rid of this container: $ sudo lxc-destroy -n mycontainer However I got…
igal
  • 144
  • 1
  • 10
1
vote
2 answers

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 the webserver logs. I've checked a couple of the…
thenoviceoof
  • 188
  • 6
1
vote
2 answers

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).
agentofuser
  • 547
  • 3
  • 6
  • 14
1
vote
1 answer

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 dont add up. When I look in RamMap there is…
1
vote
5 answers

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…
user3789893
  • 11
  • 1
  • 4
1
vote
1 answer

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 Elastic Search it 'starts'without an error: *…
1
vote
2 answers

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 missing when restoring the snapshot. The steps I am…
Bruno9779
  • 182
  • 1
  • 1
  • 13
1
vote
1 answer

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" stop program = "/etc/init.d/xxx stop" if failed…
1
vote
0 answers

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 TIME CMD My config: # nginx description…
Samat
  • 149
  • 2
1
vote
3 answers

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 forces our server to restart... and I think this…
John Brunner
  • 135
  • 1
  • 7
1
vote
1 answer

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 /home/mysql. Since my database used up the database.…
Pelang
  • 413
  • 5
  • 9
  • 15
1
vote
1 answer

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 notify only failure. The failures were 5-6 times on…