How can I get more information than what top
shows me about a process?
I currently have a process that displays as j
and has the CPU running at +2400%. Searching for j
yields no results.
Here's an example of the top
output:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1722 root 20 0 2118996 57076 1148 S 2488 0.2 43934:45 j
This is being run on CentOS Linux release 7.2.1511 (Core)
using 2 x Intel Xeon E5-2660v3 with 2.60 GHz.
ls -l /proc/1722/exe
gives me:
lrwxrwxrwx 1 root root 0 Mar 3 17:13 /proc/1722/exe -> /usr/games/j
ls -lH /proc/1722/exe
gives me:
-rwxr-xr-x 1 root root 313496 Dec 29 09:58 /proc/1722/exe
ps -p $PID
should tell you a little more. You will need to update your post to include more information such as what your Operating System is, if reporting that you have 24+ cores is wrong, etc. – kemotep Mar 04 '18 at 22:09ps -p
showed almost the same info astop
.1722 ? 31-02:32:37 j
I've updated the question. The server has 20 cores. – chris85 Mar 04 '18 at 22:16ls -l /proc/1722/exe
show? How aboutls -lH /proc/1722/exe
? – Stephen Kitt Mar 04 '18 at 22:18/proc/1722/exe
will point to thej
executable./proc/1722/cwd
will point to the working directory of the process./proc/1722/cmdline
will give the full command line (as NULL-separated tokens). – user4556274 Mar 04 '18 at 22:19ls -l /proc/1722.exe
? No symlink target-> ...
? – user4556274 Mar 04 '18 at 22:24top
orps
... – Stephen Kitt Mar 05 '18 at 19:03