Is there any magic command to track down which process is starting this perl task that is eating 100% of CPU time? I have this problem on several machines where JBoss AS is installed.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You can use
procstat on FreeBSD.
gives you the an overview of the process for example
PID PPID PGID SID TSID THR LOGIN WCHAN EMUL COMM 8898 8894 1977 1977 0 6 tant usem FreeBSD ELF64 chrome
The PPID is the ID of the parrent process which might have started the process.
procstat -f $PID
you get the files opened by the
procstat -c $PID
gives the arguments of that process.
The process looks suspicious. There is no
/usr/bin/javad you should check if this process really opens this file or if the program has overwritten the first argument.
You can see more information about the command by running
ps l 39181
This will show the command's arguments, which will usually include the name of the script that is being run.
If you wish to stay in
top, you can press f and select the information fields that you would like to see. Look for the PPID. This is the ID of the process that spawned the perl process.