Questions tagged [process]

An instance of a running computer program.

761 questions
4
votes
2 answers

How to detect exceptionally long file locks in linux?

I have a point of contention on my linux server. One of a number of processes access a single file and lock the file at a random time for a considerable period (>60 seconds) which, in turn, causes other things to fail. Is there a way to detect how…
4
votes
2 answers

How to find parent process for child process if parent process is terminated

Is there a way to find out which process started a other process even after the parent process is terminated? I tried to find something in the Win32_Process class via PowerShell but I did not find anything relevant.
Marcel Janus
  • 1,115
  • 2
  • 14
  • 29
4
votes
3 answers

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?
AndreaNobili
  • 197
  • 2
  • 5
4
votes
1 answer

How can sleeping processes in "top" be using a percentage of CPU?

When we run top we occasionally see a sleeping, "S", process which is using %CPU; I would expect all sleeping processes to use 0% CPU since they are not active. I would expect only running, "R", processes to be actively consuming %CPU in top. For…
4
votes
1 answer

How to get /proc/[pid]/cmdline to contain command arguments?

I am running into an issue where some of my Ubuntu/Debian servers do not show the arguments passed to rake in either top or ps. I have tracked this problem down to a variation in output given by /proc/[pid]/cmdline. This is the file that seems to…
wbharding
  • 431
  • 1
  • 4
  • 8
4
votes
4 answers

Kill an SSH tunnel after X minutes even if it's still being used?

I'm setting up some background SSH tunnel for some backup procedures. However I'm worried the ssh process just sitting around. At the end of my script I kill the PID, but what if something happens to my script and it doesn't finish. I want something…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
4
votes
4 answers

Process for configuring network settings on a headless rack mount device

I'm with a small company that plans to sell a rack mounted network appliance which is configurable via a web interface (think of a router configuration page sort of deal), and I'm wondering in large data center like environments what the process…
PherricOxide
  • 143
  • 4
4
votes
1 answer

top process state column under FreeBSD

When running top interactively, I can see various words in the state column : nanslp, biord, select, uwait, lockf, pause, kqread, piperd, sbwait ... Some like nanslp or kqread are self explanatory, others are not. Tried Mr man pages : STATE is…
user130370
4
votes
2 answers

Monit http-based API

I'm just wondering whether monit has an API, which we could poll-regularly (perhaps something that is http-based) ? It would be very useful to create an integrated monitoring solution across multiple servers. Or perhaps there is no other option…
giosakti
  • 149
  • 1
  • 3
4
votes
1 answer

Apache HTTPD process cumulative cpu time

How can I aggregate all Apache HTTPD processes' CPU time usage to be able to compare them with other running processes' (MySQL, Java, ...)? Or how much CPU time does HTTPD needs compared to MySQL for example? "ps --cumulative", "top -S", "pidstat -T…
user77376
  • 193
  • 1
  • 5
4
votes
1 answer

How to lock a process in RAM (make it unswapable)

Is there a way to instruct the kernel (Linux kernel) to never swap a certain process that has already been started?
Krastanov
  • 143
  • 4
4
votes
4 answers

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 concatenated to the name of log file. I have such 5 log…
stillStudent
  • 323
  • 2
  • 5
  • 13
4
votes
3 answers

Kill PHP process when connection is closed

I've posted the following question to SO, but thought there might be a server based solution. https://stackoverflow.com/questions/9053964/php-script-with-sleep-does-not-exit-on-connection-close I'm running an Ubuntu VPS to run this script, and I'm…
user838437
  • 151
  • 1
  • 2
4
votes
3 answers

Assigning Processes to CPU Cores

I have access to a CentOS 6 web server (a PHP/MySQL forum) running Apache 2.2.15 and MySQL 5.1.52. This box has dual oct-core Xeons. What I find looking over the CPU graphs is that the first two cores (0 and 1) hit 90% usage whilst the other…
jwbensley
  • 4,202
  • 11
  • 58
  • 90
4
votes
0 answers

Linux equivalent of OS X "Launchd", with respect to use by non-root users?

Is there a good way for non-root users to start "managed" processes? In this case, I am using managed" to describe a process that starts up when the user logs in, is monitored by some sort of process supervisor (like init), restarted if it fails,…
larsks
  • 43,623
  • 14
  • 121
  • 180