Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i pressed M in top command try to get a memory sort for the processes,

5892 myuser   15   0 88428  86M 12520 S     0.0  4.2   0:01   0 java
 5893 myuser   15   0 88428  86M 12520 S     0.0  4.2   6:47   0 java
 5894 myuser   15   0 88428  86M 12520 S     0.0  4.2   0:00   0 java
 5895 myuser   15   0 88428  86M 12520 S     0.0  4.2   0:00   0 java
 5896 myuser   15   0 88428  86M 12520 S     0.0  4.2   0:00   0 java
 5897 myuser   15   0 88428  86M 12520 S     0.0  4.2   0:03   0 java
 5898 myuser   15   0 88428  86M 12520 S     0.0  4.2   0:00   0 java

however, i actually do not have that many java process, ps -ef |grep java only give 2 results, one is a true java process and the other is my ps command;

is there a way to get current's process's memory usage? thx.

share|improve this question

1 Answer 1

Did you happen to also press H this will make top show individual threads.

share|improve this answer
    
no, i do not; just tried once again, it's still the same; –  hetaoblog Mar 1 '12 at 7:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.