Questions tagged [process]

An instance of a running computer program.

761 questions
7
votes
5 answers

How can I tell what files a process has open?

I have a daemon process and I want to know what files it has open (and ideally what its CWD is). Is there any shell command that can tell me that?
Denis Hennessy
  • 173
  • 1
  • 5
7
votes
6 answers

What is the best way to identify unknown processes on windows?

How do you typically identify processes in windows' task manager when trouble shooting a problematic system? It's easy enough to get a list of tasks via the task manager but how do you determine which ones should stay and which are candidates for…
Todd Smith
  • 200
  • 3
  • 8
7
votes
3 answers

How to safeguard a shell script against running out of control?

I've recently had an experience of writing a shell script which crashed a server (and damaged a partition) by consuming all resources. It was hooked up to a cron job, and it seems it took longer to run than the interval between executions, over time…
Steve Bennett
  • 5,750
  • 12
  • 47
  • 59
7
votes
1 answer

What is the difference between apachectl and httpd.worker?

My hosting service, Webfaction, installs apache start scripts for django/python apps automatically. The installed start script is: #!/bin/bash LD_LIBRARY_PATH=/home/mertnuhoglu/webapps/dj02/apache2/lib…
Mert Nuhoglu
  • 207
  • 1
  • 3
  • 9
7
votes
3 answers

How can I redirect an already running process's stdout/stderr?

(Running on an Ubuntu 10.04 64-bit server) Yesterday, I made the mistake of starting a process (which I didn't realize was going to take several days to run) over SSH without using screen. I've spent all day today trying to figure out some way that…
nonoitall
  • 173
  • 1
  • 3
7
votes
2 answers

How to find out what service is listening on a specific port of a Ubuntu server without proccess id?

I have decided to post this question even though there are a lot of similar questions, but none of them answered mine. I periodically check the ports my server listens to. My ubuntu OS by the output of lsb_relase -a: Distributor ID:…
CrazyTux
  • 201
  • 2
  • 9
6
votes
2 answers

How to crash a single process in Linux?

I want to analyse the outcome of my application process when it crashes. How can I manually crash a single process in Linux?
Harikrishnan
  • 1,159
  • 2
  • 14
  • 32
6
votes
1 answer

How to find what processes were running at a time in the past?

I am asked to investigate a high CPU usage alert which occurred this morning. I used sar -p and saw the high CPU usage showing up at that time Next I used ps -eo pcpu,pid,user,args | sort -r -k1 | less to list the top 10 memory hogs at this hour Now…
juniorbansal
  • 163
  • 1
  • 1
  • 4
6
votes
1 answer

SSSD process won't die

Thanks for taking the time to check out my problem. I'm currently working on an issue that has only appeared once before. Back on Jan 3rd when this first appeared we were able to reboot the server and everything seemed fine, but now it is back.…
omnivir
  • 99
  • 1
  • 1
  • 3
6
votes
5 answers

Getting full path of executables in 'ps auxwww' output

Consider the following lines from a "ps auxwww" output: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 4262 0.0 0,1 76592 1104 s005 Ss 10:02am 0:00.03 login -pf yo yo 4263 0.0 0,0 …
knorv
  • 1,799
  • 6
  • 19
  • 29
6
votes
1 answer

How do I know if the Linux server killed my process and which process it killed?

It seems my server killed a process due to it using too much RAM. Is this possible? If it can happen, how can I know when and what process it killed?
Phil
  • 265
  • 2
  • 6
  • 13
6
votes
3 answers

find page size and number of pages of a process in linux

Given a PID of the process running in Linux (latest kernel), how do I find out: The number of pages it is using The size of each page it is using (4K, 2MB or 1GB) This is for x86-64 architecture.
Nulik
  • 284
  • 1
  • 4
  • 14
6
votes
2 answers

Why are there so many processes running?

I host several Rails applications on a VPS using Ubuntu 8.04, Nginx, Passenger, Mysql, RVM, so all the usual suspects. In the last days it was the first time I really had to debug a problem and look at which processes are running. I could fix the…
Manuel Meurer
  • 263
  • 1
  • 3
  • 12
6
votes
2 answers

Too many sleeping processes?

I'm running Debian Lenny (x86_64) on a cloud VPS (Xen) and top command tells me there are 210 processes running and 209 are sleeping: top - 14:49:29 up 15:18, 1 user, load average: 0.09, 0.11, 0.05 Tasks: 210 total, 1 running, 209 sleeping, 0…
user55859
6
votes
3 answers

Kill a process run by a specific user

Let's say that I have several users running ''ruby'' processes simultaneously. How do I write a shell command to kill the ''ruby'' process of one particular user? (I'm on CentOS 5.5.)
Trevor Burnham
  • 364
  • 2
  • 3
  • 16