cancel
Showing results for 
Search instead for 
Did you mean: 

ps top glance

ahpuser
Occasional Advisor

ps top glance

Hello,

I'm trying to get the size of a java process in memory (virtual and resident).

I have read the man page for the top command and the ps command but the description is not enough.

1) Using the ps command:
What exactly the vsz value means?
What exactly the sz value means?

2) Using the top command:
What exactly the SIZE value means?
What exactly the RES value means?

Those values include only stack + code + data or shared and mmap regions also?

Also I have noticed that the values reported by the top command varies from one version to another (the same process).

Any help would be appreciated.
Thanks
4 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: ps top glance

Hi:

This is clearly a follow-on to your question yesterday:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1275653

It would be much better to continue within that thread.

You can load an evaluation copy of 'glance' from the Application CD/DVD.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: ps top glance

Shalom,

1) vsz virtual memory size (allocated) from swap
sz memory size (allocated)

2) SIZE is program memory size
RES is amount resident memory.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ahpuser
Occasional Advisor

Re: ps top glance

Hi,

James R. Ferguson wrote:
> It would be much better to continue within that thread.

Ok, I respect that, thank you very much for the orientation. Just let me explain the reason: I have created a new thread because this is a more specific question, just to ask experts particular things about the commands.

Thanks everyone for the replies, please lets continue in the thread: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1275653
ahpuser
Occasional Advisor

Re: ps top glance

Closing