An instance of a running computer program.

learn more… | top users | synonyms (1)

12
votes
3answers
18k views

how i can identify which process is making UDP traffic on linux?

my machine is continously making udp dns traffic request. what i need to know is the PID of the process generating this traffic. The normal way in TCP connection is to use netstat/lsof and get the ...
90
votes
9answers
30k views

Keeping a linux process running after I logout

I'm connecting to a Linux machine through SSH, and I'm trying to run a heavy bash script that makes filesystem operations. It's expected to keep running for hours, but I cannot leave the SSH session ...
13
votes
3answers
4k views

Do background processes get a SIGHUP when logging off?

This is a followup to this question. I've run some more tests; looks like it really doesn't matter if this is done at the physical console or via SSH, neither does this happen only with SCP; I also ...
3
votes
11answers
10k views

How do I kill processes older than “t”?

First, yes I have seen this question: http://serverfault.com/q/71360/14428 The answers there are incorrect and do not work. I have voted and commented accordingly. The processes I want to kill look ...
62
votes
8answers
32k views

Environment variables of a running process on Unix?

This is to troubleshoot some problems related to environment variables .. On Windows, I could do this by using tool such as ProcessExplorer to select particular process and view values of each ...
16
votes
9answers
995 views

Documentation As-A-Manual vs. Documentation As-A-Checklist

I've had discussions in the past with other people in my department about documentation, specifically, level-of-detail and requirements. In their view, documentation is a simple checklist of Y things ...
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 ...
17
votes
6answers
15k views

If I launch a background process and then log out, will it continue to run?

Asking this after a prolonged discussion with a coworker, I'd really like a clarification here. I launch a background process, either by appending "&" to the command line or by stopping it with ...
9
votes
5answers
3k views

Linux - How do I see when a process started?

How can I see when a process started, assuming I know the pid. (On Linux)
7
votes
8answers
3k views

How to detect a hidden process in linux?

We have a box we suspect has been rooted at work. The question is how do we find it? I am no system administrator, but I was brought onto the team to resolve the situation and I am curious where ...
5
votes
5answers
3k views

What's the best way of setting up a cron job to check that a long-running process is still going and if not, start it?

As per the title: What's the best way of setting up a cron job to check that a long-running process is still going and if not, start it? If I start a long-running process in cron, is it going to ...
1
vote
4answers
782 views

ps aux as non-root doesn't show all processes

i'm using an ubuntu 10.04 server... when i run ps aux as root i see all processes when i run ps aux as nonroot i see JUST the processes of the current user after a bit of research i found the ...
6
votes
5answers
5k views

Find (and kill) old processes

Basically I need to be able scan the process tree and find processes that match a certain name and started running more than a week a go. Once I have them, I need to kill them. All the processes are ...
3
votes
2answers
1k views

In Windows Task Manager, in the Processes tab, what does I/O Other mean?

In Windows Server 2003, I'm seeing a process in Task Manager with a high value in the I/O Other column. I'm trying to determine if it's in some kind of error state, but I don't know what I/O Other ...
2
votes
4answers
2k views

Linux high memory usage (top total mismatch)

I havea poor mans vps - 256MB dedicated RAM. I have installed LAMP. No website is currently UP on the server yet. The memory usage is still 225MB (only 31 MB free). I have measured using top and ...
0
votes
1answer
99 views

Kill any GS process that's been running for over 5m on CentOS 6.5

Hi our server has a weird issue where once a month or so a GS (GhostScript) process gets stuck and eats 10-75% CPU until I kill the process. strace hasn't provided anything useful so until I can ...
37
votes
22answers
3k views

What's the biggest time saver you've implemented?

Which changes that you have implemented did have the biggest impact on saving time in you daily sysadmin workload? What are your tricks to work more efficient and get more things done or work less for ...
10
votes
5answers
31k views

Dump a linux process's memory to file

Is it possible to dump the current memory allocated for a process (by PID) to a file? Or read it somehow?
4
votes
2answers
2k views

Graphing process memory usage on Linux

I'm trying to diagnose a memory leak in a process, and looking for a tool to graph its memory usage over time. Is there any tool on Linux that supports diagramming in a form similar to Windows ...
10
votes
4answers
18k views

Is there an equivalent command for 'init.d/networking restart' in OS X

From time to time, I've encountered issues with OS X clients' network connections (Wired and Wireless, Leopard/Snow Leopard) where nothing will fix the issue, until you reboot. Is there a ...
7
votes
6answers
995 views

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 ...
4
votes
4answers
347 views

Linux process management

I started a long running background-process (dd with /dev/urandom) in my ssh console. Later I had to disconnect. When I logged in, again (this time directly, without ssh), the process still seemed to ...
11
votes
6answers
6k views

How do I log CPU usage per process?

I have a box on Linode that's going through weird behavior. Every now and then CPU and disk I/O will shoot to 100% and the server becomes unresponsive and has to be booted. I'd like to investigate ...
5
votes
6answers
4k views

How to relaunch an executable if it dies

I'm looking for a way to monitor a process, and relaunch the executable if the process dies for whatever reason. Does Linux have a built-in tool that can do this?
4
votes
3answers
6k views

Best way to kill Zombie and D state processes in linux

What is the best way to kill Zombie processes and D state process by single command.
3
votes
3answers
1k views

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

How to kill an “exiting” process on OS X (state = E)

I have a process on my Mac OS X system which is in state E ("The process is trying to exit."): % ps auwwwxc | grep -si JavaApplicationS sbwoodside 84547 0.0 0.0 0 0 ?? E ...
2
votes
5answers
788 views

%CPU for a process

Looking at the output of top on our server, one of my colleagues told me that the fact that some processes got less than 100 "%CPU" was because I was running too many processes. He added that based on ...
1
vote
2answers
649 views

How to inventory what software/roles a Linux server is “serving up” to clients?

Is there a way to identify what "client/server" processes/applications are running on a Linux server to know what the server's role or roles are? I'm sure it might vary for different flavors of Linux ...
3
votes
3answers
1k views

Is there a lightweight way to start an application on a remote win7 machine from linux?

I am trying to find a lightweight way to start an application on a remote Windows7 machine from linux. The following are my boundary conditions: The Windows7 system is located in the same subnet ...
3
votes
2answers
161 views

Determine which files a process opened (Linux)

I am trying to determine which files a process creates when it runs. I know that I can list the file handles of a currently running process by looking in /proc or using lsof. However, the problem is ...
2
votes
2answers
551 views

My linux server “Number of processes created” and “Context switches” are growing incredibly fast

I have a strange behaviour in my server :-/. Is a OpenVZ VPS (I think is OpenVZ, because /proc/user_beancounters exists and df -h returns /dev/simfs drive. Also ifconfig returns venet0). When I do cat ...
2
votes
1answer
166 views

Pass parameters to a script securely

What is the best way to pass parameters to a forked script securely? E. g. passing parameters through command line operands is not secure, since someone who has an account on the host can run ps and ...
2
votes
2answers
2k views

Can you screen a running programme? [duplicate]

Possible Duplicate: Can I nohup/screen an already-started process? GNU screen is great for long running programmes. You can start your programme in it and disconnect and bring your laptop ...
1
vote
1answer
92 views

CMD.exe call command and process lifecycle/creation

I have 3 batch files, lets call them batchA batchB and batchC. I double click batchA which later has a call batchB and call batchC in the script. I only see one CMD.exe process when it runs, and the ...
1
vote
1answer
589 views

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 ...
1
vote
3answers
654 views

linux/solaris kill many proccess with one command

Is it possible to kill all find process with one command? I do not want to kill each process as kill -9 25295 , kill -9 11994 , etc.. Rather, what I want is a simple way or command that kill all find ...
1
vote
1answer
2k views

How can I prevent a process from running under Mac OSX 10.6?

Basically, there are some system processes that I want to prevent from running. If I force quit them, they simply restart. How can I prevent them from starting/relaunching. Before you say that I ...
0
votes
1answer
297 views

Kill child process when the parent exits

I'm preparing a script for Docker, which allows only one top-level process, which should receive the signals so we can stop it. Therefore, I'm having a script like this: one application writes to ...
0
votes
1answer
96 views

using monit to monitor processes

i am trying to figure out how to use monit to get a notification when one of my processes starts to run once again. let me be clear- at first the process is running, stops to run and then runs again. ...
0
votes
1answer
258 views

Comprehensively List HTTP Requests (IPs, URLs, etc)

Is there there a way to show a list of apache/httpd processes with their pids and some information about the request? Like request url, any params, domain, internal/external IP address, etc. I've ...
0
votes
2answers
1k views

How to stop www-data's Apache processes?

I just got my VSP setup using Debian Lenny and made a silly mistake today trying to install VirtualMin. All I know is that apart from my perfectly running fine Apache process I've got couples of ...
0
votes
3answers
341 views

Multiple *Almost* identical processes on a Linux Server

What is the best way to run multiple Almost Identical Java processes on the same Linux server? Explanation of the environment: We are running a set of Java processes that provide a calculation ...
0
votes
2answers
623 views

PostgreSQL processes and the signals to which they respond

For PostgreSQL 8.3 and later, what are the processes that make up the server and that respond to a query? What signals do the various processes respond to and what effect do the signals have? What ...