Questions tagged [process-management]

Use this tag when the topic is about system process management. Commands used for this are like ps and kill -9 xxxx and service xyz start|stop|restart and htop, for example. Often used in conjunction with memory management.

Use this tag when the topic is about system process management. Commands used for this are like ps and kill -9 xxxx and service xyz start|stop|restart and htop, for example. Often used in conjunction with memory management.

359 questions
9
votes
3 answers

How to find how many cores a process is using?

I have a eight core machine. How can I find out how many cores are used by processes that I see in htop?
theTuxRacer
  • 1,063
2
votes
1 answer

How to capture a command process

As we know, the lsof can know which file/directory is take up by process. But I want to capture a command process to judge which file/directory the command will call. For example,the useradd will call the /etc/passwd and etc/shadow,the lastb will…
yode
  • 1,047
1
vote
0 answers

How to kill a process completely that can re-run automatically

A process occupies a lot of CPU, and when I kill it by kill -9, it just re-runs with another name. How can I find it out, kill and delete it?. Its parent pid is 1, started by root user, and on the directory of /usr/bin with a random hex name like…
user474556
1
vote
1 answer

How to optimally stop a find which pipes to a bash script

I'm using the following to convert a video library from x264 to x265. But I can't stop it without doing a Ctrl-C on the bash script whilst it's working. find /mnt/local/int001/media/TV/ \ \( -name '*[xXhH]264*.mkv' -o -name '*[xXhH].264*.mkv \)…
1
vote
0 answers

pm2 script variable when script path is not within executing folder

I have a pm2 json file that contains a script element. However on the box in question, the target is not within the pm2 script folder. the documentation says that the path needs to be relative to pm2 start. So if pm2 start is in var/opt/folder/ but…
Matt
  • 111
1
vote
3 answers

Doing something when a process finishes

Sometimes when I wanted to do something like: long_running_command; second_command I forget the ; second_command part. If I don't want to interrupt and restart the long_running_command (sometimes it's not possible, other times it has run for a…
0
votes
1 answer

Find filepath that spawned process

I am using a Debian 9.13. Trough ps -aux | grep NaughtyProcessName i can find information about a given process that interests me in the format: user.name [ID] [CPU USAGE] [%MEM] VSZ RSS TTY STAT START TIME COMMAND Where command shows something…
0
votes
1 answer

prlimit causes error 'Argument list too long' with some resource limits

my issue is this: prlimit -t5 echo foo works fine (cpu limit) but prlimit -s5 echo foo (stack size limit) prlimit -v5000 echo foo (address space limit) both return: prlimit: failed to execute echo: Argument list too long My system is linuxmint…
cxandru
  • 63
0
votes
1 answer

Utility that can be configured to run two commands, and kill both when one finishes

Is there a common utility (Ubuntu, perhaps OSX) that can run a server serve ./public, then run some tests ./run-chrome-tests.sh, and once the tests are finished, kills the serve ./public. This can be done in bash, but I'd rather create…
0
votes
1 answer

How we will conclude there is memory leaks in a process without any support from memory leak detection tools like valgrind?

If RSS value of process(obtained from top or ps command) increases rapidly can it treated as memory leaks. Assume there is less provision to modify the code and no adequate support to install new utilities for tracking memory usage. Since it is a…
0
votes
1 answer

Process management - add daemon process from CLI

I'm looking for process manager which can be controlled from CLI (add, start, stop, delete), so I can control it programmatically. I've tried using https://github.com/circus-tent/circus, but the problem is when I add it from CLI, the processes is…
-1
votes
1 answer

Show processes and threads as tree view

I would like to see a forest display (tree) of all processes and threads. Like ps axfwu but which does not allow to add threads # ps axfwum | less error: thread display conflicts with forest display # ps axfwuH | less error: thread display conflicts…
Marki
  • 855