An instance of a running computer program.

learn more… | top users | synonyms (1)

3
votes
1answer
1k views

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 ...
5
votes
3answers
2k views

Supervisor VS cronjob

Actually I'm using supervisor to monitor a process and restart it when it stops for some reason. The problem is that in case of a supervisor crash the process stops get monitored. So I thought to ...
3
votes
2answers
982 views

How is htop “Swp” calculated?

When I run htop (on OS X 10.6.8), I see something like this : 1 [||||||| 20.0%] Tasks: 70 total, 0 running 2 [||| 7.2%] Load average: 1.11 ...
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 ...
2
votes
0answers
355 views

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 ...
1
vote
1answer
129 views

ps -o pcpu on Debian Squeeze is giving meaningless numbers

I'm trying to get the CPU percentage for processes on a busy server out of ps, but it's giving me nonsensical numbers. Here's a truncated example: $ ps -eo pcpu,pid | sort -n %CPU PID ... 36.5 ...
3
votes
2answers
2k views

How to determine which TCP/UDP ports are being opened by a given process (linux)?

I know how to do the opposite (find out what process has a given port open) using lsof or netstat, but extensive research on Google hasn't helped me solve the reverse problem. I know I could use ...
0
votes
1answer
1k views

List processes with their launching command line

I'm looking for a Windows feature or third-party tool that can produce a list of active processes (as in the task manager) with the command line used to start each process. e.g. if I launch "php.exe ...
0
votes
1answer
418 views

Monitor cpu usage (and perhaps memory using) for a single process simple as possible

I'm searching the easiest way to monitor the cpu usage of a single process in linux. Use ps and change output is the way i have, but maybe a monitor tool is better. Also I want to plot the usage (nice ...
1
vote
1answer
40 views

list of files NOT in use by process

How can I exclude the output of lsof -c <processname> /path/ from a list of files in /path/ for example find /path/ -type f I was thinking something like this: find ...
1
vote
1answer
126 views

How to relaunch a powershell script if it dies?

I have a powershell script I want to use to monitor the size of a file (at a certain interval) and send me an email alert if the file reaches a certain size. However, after it discovers that the file ...
1
vote
1answer
123 views

why there are three(it should be two) process related to screen when using ps command?

you can see there are three processes which are related to screen command: [world]$ ps auxf USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND hugemeow 28938 0.0 0.0 66080 ...
1
vote
1answer
314 views

Replacing stock dnsmasq with optware dnsmasq

This question if for DD-WRT installed on e3000 with optware. I have replaced the stock dnsmasq to get logging, using this: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=660694 I installed optware on ...
1
vote
1answer
1k views

How do i set a cronjob to use less CPU

I'm managing a server witch host several ruby on rails websites. I need a cron job for every website that does : send emails (notifications) create thumbnails Unfortunatly, every time the cron is ...
0
votes
1answer
297 views

Sending signals to running Upstart job

How can I send signals or events to a running Upstart job? I run a Node.js HTTP server with Upstart as a daemon and sometimes need to put it into maintenance mode for backups and stuff. I'd like to ...
0
votes
1answer
1k views

process ksoftirqd consumes permanent 15% CPU load [duplicate]

Possible Duplicate: Anyone else experiencing high rates of Linux server crashes during a leap second day? The process ksoftirqd/0 uses permanent 15% CPU on our debian squeeze server. 4 ...
4
votes
1answer
227 views

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 ...
4
votes
1answer
92 views

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?
1
vote
1answer
627 views

Windows 2003-R2-Server: Process “System” takes large chunks of CPU time

I have a domain controller running 2003 R2. The server behaves very well when restarted daily, however, each day it is not restarted, there's a process called "System" that takes enourmous chunks of ...
0
votes
2answers
247 views

Shell Script Launching Child Processes

Disclaimer: I'm totally new to shell scripting, but have quite a bit of experience in other languages like PHP and Obj-C. I'm writing my first daemon script. Here are the goals: I want it to run ...
1
vote
1answer
164 views

How can I find out the path to a chrooted environment in which a particular daemon was started?

I have a setup with several directories where I can chroot and start the same daemon from. I'd like to be able to tell from which of my multiple directories I started the daemon. I'd like to find it ...
1
vote
2answers
545 views

PSKill does not run from VbScript

We have a site on our local IIS6 Windows 2003 server that occasionally locks up, and we would like a VbScript to kill the process. It is located in the system32 folder. I'm running these tests on ...
0
votes
1answer
63 views

How to keep log / keep record of one particular Process

In my Task Manager, there is one process (.exe) I want to keep log or keep record of that process i.e how much cpu % it is utilizing for a particular time \ Day. for example :- abc.exe process Can ...
1
vote
2answers
724 views

Apache's “OPTIONS * HTTP/1.0” running 100% CPU - Runaway httpd process

I have this recurring issue where an httpd processes will randomly start running at 100% CPU. Often other httpd processes will join in, and it will continue until I restart Apache. Oddly, the thing ...
2
votes
1answer
648 views

Word 2010 creates multiple processes… sometimes

I've run into a strange behavior when I migrated our users from Office 2007 / Vista to Office 2010 / Windows 7 (all 32-bit). They use a web based document management system called NetDocuments which ...
6
votes
4answers
1k views

Kill a process and force it to return 0 in Linux?

In the Linux environment, how can I send a kill signal to a process, while making sure that the exit code returned from that process is 0? Would I have to do some fancy GDB magic for this, or is there ...
1
vote
4answers
3k views

Is there any log in SuSe Linux that tells if a machine hangs due to a runaway?

I have a SuSe Linux server that is hanging due to unknown issues, I'm to the point of wondering whether there is a runaway process being run every now and then that is causing it to hang. The issue ...
1
vote
3answers
1k views

Is there a way to automatically restart MySQL, if it takes up too much processing power?

Due to some bad scripting on my part, MySQL sometimes goes haywire - taking up a lot of CPU power (load average of more then 20 - I only have 8 cores)! When I restart it is all good again. So my ...
1
vote
1answer
310 views

Killing a single process from multiple processes under ntauthority

We currently have a few processes running with the same image name: w3wp.exe. One of them has a memory leak, so until the dev guys plug that we're wanting to run a scheduled task to kill the process ...
0
votes
1answer
138 views

Kill xfs_io processes

I have an EC2 instance running CentOS 5.6 86_64. I use xfs_freeze to freeze/thaw a file system before taking a snapshot. Normally this works great, but today it stopped working - the freeze operation ...
2
votes
1answer
2k views

pgrep/pidof usage for complex process names?

I am trying to use pidof or pgrep to be able to send a HUP to a process in my system. The problem is that I only want to kill the process with a precise parameter. This is the output of 'ps awx' ...
-1
votes
2answers
267 views

How do you run supervisord in foreground?

Is there a way to run supervisord itself in foreground mode? or is there another application that can run/supervise multiple applications and shut them down when itself receives a SIGTERM or ...
0
votes
1answer
978 views

RHEL/Apache - meaning of WCHAN=“semtim”

What is the meaning of WCHAN="semtim"? ps -ylC httpd S UID PID PPID C PRI NI RSS SZ WCHAN TTY TIME CMD S 0 25330 1 0 78 0 16168 170563 - ? 00:00:14 httpd R ...
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
1answer
89 views

Guideline for `nice` priority number?

I'd like a more systematic way for prioritizing my tasks with nice(1). Obviously 0 is "normal", 19 is "lowest priority" and -19 is "highest priority", but what about all the other numbers? If I have ...
0
votes
2answers
193 views

Utility to determine application (or process) that displayed a (hung) window? [closed]

Just curious if such a thing exists - I have a hung window on my screen (you know, the kind that 'captures' images of the last window that you move over it), and I was wondering if anyone knows of a ...
0
votes
1answer
405 views

Enable foreign users processes listing

how can I enable under Debian 6 to list the processes of a foreign user? I have the user nagios but this user can only list his own processes. Br
1
vote
3answers
3k views

How to check if a service (that listens on given port) is up & working?

OK, so lets say I have a Nagios setup that monitors different services using the so-called nagios-plugins. What would be the best practive for my nagios plugin (probably written in python) to ...
1
vote
1answer
322 views

Running multiple background Java processes on Linux

I have a jar file that runs continuously and acts on various events. I need to create multiple instances of this jar, passing parameters to it on start up, and have it continue to run between shell ...
0
votes
1answer
230 views

Windows shutdown processes termination sequence [closed]

Do you know the Windows shutdown process is implemented? Does it has some criteria to avoid inter-process communication problems between child and parent processes? This question originated from an ...
2
votes
2answers
287 views

Apache Running Processes

Ok I host a website through a VPS with 1&1 and I'm worried about running out of processes. From Parallels they have set a hard limit of 128 numprocs I have had some problems with my website ...
2
votes
1answer
435 views

How do you manage a team email account?

How do you manage a (tech support) team email account? Do you have any recommended resources for managing accounts accessed by multiple people? Thanks in advance!
6
votes
2answers
3k views

Upstart : start service after non-upstart process

On Ubuntu 10.04, I need to start my service with upstart, but only when mysql is up and running. The problem is that mysql itself is not handled by upstart, so I can't use the "start on" feature. ...
0
votes
2answers
492 views

Does PHP script itself count as a process?

My server has a limited number of concurrent processes (20) it can handle. To make sure I don't exceed I need to understand: When a user is waiting for a PHP script to finish loading, does the ...
33
votes
5answers
5k views

How to prevent “ps” reporting its own process?

$ ps | grep django 28006 ttys004 0:01.12 /usr/bin/python bin/django celeryd --beat 51393 ttys005 0:01.45 /usr/bin/python bin/django celeryd -l INFO 51472 ttys005 0:01.29 /usr/bin/python ...
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 ...
-3
votes
1answer
674 views

Why does the httpd process consume so much memory? [duplicate]

Possible Duplicate: Server refuses to use swap partition I am using Linux with Koloxo panel for site management. My database server went down, and I think it happened because of a lack of ...
1
vote
5answers
556 views

How to execute a process on remote Linux machine without SSH?

How can I execute a process on a remote machine running Linux without SSH. Since the machine is scheduled to PXE-boot periodically, the SSH key will be changed and executing a process through a script ...
0
votes
2answers
624 views

Windows unkillable process: how to inspect?

I have this process which hangs on windows 2003, with no other clue regarding what caused the hang. The OS still works, but the process itself cannot be killed, and requires a reboot to go away. I ...
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 ...