An instance of a running computer program.

learn more… | top users | synonyms

0
votes
4answers
343 views

Grant permission to manage another users processes

I have userA and userB who start processes: userA@server:~$ ./some_command.sh & [1] 30889 I then have a web app running as userC that manages those processes (suspending, resuming, terminating, ...
1
vote
2answers
2k views

how to see process status with full details

I run the script - my_script.ksh as process with 5 long arguments on my solaris/linux machine ( example 1 ) , Later I verify the process by ps -ef | grep my_script.ksh I don't understand ...
0
votes
1answer
115 views

Interfacing strace with Process Name instead of PID

How do I implement a wrapper script pstrace in bash that changees the interface of [sudo] strace -c -p [PID] to [sudo] pstrace -c -p [PROCESS-NAME] similar to how killall [PROCESS-NAME] is ...
3
votes
1answer
3k views

How do you force a process to flush the data written to an open file descriptor under Linux?

I have a binary process (with no sources available) running on an embedded Linux system. The process opens a log file (/tmp/dmaosd.log) where it logs what it's doing. The problem is the log gets ...
-2
votes
1answer
45 views

starting a process unix

When issuing the following command: ps -ef | grep queue I get a list of 5 processes running. root 10001 1 0 2012 pts/5 02:22:04 /usr/local/perl/bin/perl /usr/local/cpi/sss/enroll_req ...
0
votes
3answers
83 views

Server Lifecycle But Still Providing Unidentified Services [closed]

I have this older HP ProLiant server that needs to be lifecycled, but there are still some services that are apparently running on it. There are only a few workstations that are being serviced by this ...
1
vote
1answer
136 views

Is there a benefit to managing programs with a process manager instead of with init.d?

I'm using Redis, Memcached, and Nginx, to be specific, and Supervisor as the process manager, but any general information is helpful as well. Each of the aforementioned programs when apt-get ...
2
votes
1answer
2k views

Cron jobs running twice - Ubuntu server 12.04

I have a couple of simple cron jobs running under root. However, they seem to be running twice, and I can't figure out why. No other users have any cron jobs running and the the only cronfile is for ...
2
votes
1answer
258 views

Overhead of many php-fpm processes on Linux?

I'm migrating the configuration of a webserver that runs PHP applications using PHP-FPM behind nginx. The server has about 40-50 (and growing) vhosts on it. The server is a single CPU VM with 1GB of ...
3
votes
2answers
2k views

Server freeze restarted quickly so how do I find what went wrong?

I have a SQL SERVER DB running on a windows server 2008 (VMWare) Yesterday I could not RDP to it so I ended some RDP sessions which were left logged in. This seemed to solve the problem. However last ...
1
vote
1answer
2k views

Why are my uWSGI processes dying immediately?

I'm using Supervisor and the uWSGI Emperor mode. When I set limit-as to 512 (MB), workers die instantly (respawn, die, respawn, die, every 3/4 of a second or so): [uwsgi] workers = 4 threads = 40 ...
2
votes
2answers
786 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 ...
1
vote
3answers
2k 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 ...
2
votes
2answers
4k views

Run Python script at startup using upstart

I'm trying to create an upstart script to run a python script on startup. In theory it looks simple enough but I just can't seem to get it to work. I'm using a skeleton script I found here and altered....
0
votes
1answer
86 views

Linux released memory

If My process allocates some big memory and then deallocates, would top or gnome-system-monitor show that my memory usage of that process decreased ? or kernel will still reserve that memory for that ...
-2
votes
2answers
165 views

Ignoring fork-bomb in Ubuntu [closed]

I got an homework assignment to write a program that checks how many process a user can create (working in Ubuntu). I wrote the code which seems fine in theory. The problem is that when I run it, the ...
1
vote
2answers
2k views

how to find suspicious process details and its command line arguments

On my Linux server, i am getting a suspicious perl process, which is trying to send spam from my server, using a perl script. Here is the ps -aux output. apache 10078 0.0 0.0 4028 705 pts/1 ...
2
votes
1answer
555 views

Process listed as 8 character short name in Task Manager

I have a couple of servers with a process that regularly gets stuck. We kill this process with a vbs script that runs the taskkill command (among a couple other things). The issue is that the ...
1
vote
1answer
326 views

Show kernel stack usage for a process in Linux

I am trying to determine how much kernel stack is being used by processes on a server. I found a document that indicates that the output from sysrq-t shows the amount of unused stack in the 4th field ...
4
votes
1answer
4k views

Write to stdin of a running process using pipe

I am in a similar situation as in this post But I couln't get the solution provided there to work in my situation as the answer seems related to that question only. In particular, I couldnt ...
4
votes
4answers
168 views

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

Apache: graceful kill fail, sending SIGKILL. How much is too much?

On Apache/2.2.15, is it normal to have one or two "[warn] mod_fcgid: process XXXXX graceful kill fail, sending SIGKILL" per day? After all it's a warning, not an error. Thanks
1
vote
1answer
444 views

Suspicious process running under user named

I get a lot of emails reporting this and I want this issue to auto correct itself. These process are run by my server and are a result of updates, session deletion and other legitimate session ...
1
vote
1answer
255 views

ps and top show a different command name then what pkill and pgrep sees

Often times I want to kill process that I believe has changed its command name (I think through setproctitle() or something similar). Apparent pkill, pgrep, and friends do not read the new command ...
1
vote
1answer
80 views

how to get running processes

I'm trying to get running processes from a linux server but I having some doubts. If I get top exit I have: # top -b -n1 | head -n5 top - 16:18:19 up 60 days, 21:22, 8 users, load average: 0.03, 0....
2
votes
1answer
250 views

Setup staging with multiple SVN

We are a startup, setting new environments for product to be released soon. Planned server structure with planned release flow is as shown in below image It ideally have a local server (or Staging ...
2
votes
2answers
2k views

Meaning of killall -0

I see from many place the follow command is used to check if a process exists, e.g. killall -0 nginx But from the documentation I can't see anything related to this argument, can anyone explain?
3
votes
1answer
2k 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 ...
7
votes
3answers
3k 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 ...
4
votes
2answers
2k 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 0....
3
votes
1answer
648 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 ...
1
vote
2answers
1k 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
174 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
4k 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
3k 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
619 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
146 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
244 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
409 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
2k 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
546 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
2k 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 root ...
4
votes
1answer
255 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
108 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
820 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 ...
1
vote
2answers
409 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
448 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
824 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
73 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
1k 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 it'...