1833790 Members
2805 Online
110063 Solutions
New Discussion

virtual memory

 
SOLVED
Go to solution
Shivkumar
Super Advisor

virtual memory

What is the command to find out virtual memory used by a program e.g. jvm ?

Thanks,
Shiv
10 REPLIES 10
Warren_9
Honored Contributor
Solution

Re: virtual memory

hi,

You can use "top", ps, glance(need license)

UNIX95= ps -e -o "user,pid,ppid,pcpu,cpu,vsz,sz,args"

GOOD LUCK!
Devesh Pant_1
Esteemed Contributor

Re: virtual memory

Shiv,
top and glance are the easiest ways
thanks
Devesh
morganelan
Trusted Contributor

Re: virtual memory

Hi,
Virtual Memory consists of two parts, physical memory or ram and swap. The physical memory is where the programs are running, and
swap is the "spill over".
Try this command:
#ps -efx|grep [j]ava
Kamal Mirdad
Shivkumar
Super Advisor

Re: virtual memory

What is the meaning of [j] here ?

best regards,
Shiv
vinod_25
Valued Contributor

Re: virtual memory

Hi shiv

the commands are;

top,
/opt/bin/memconf,
swap -s ,
swap -l,
glance, &
ps

hope this helps

Jai Hind !!!

Vinod

Yogeeraj_1
Honored Contributor

Re: virtual memory

hi,

concerning your "What is the meaning of [j] here ?" question above...


This is shell level commands for some common filename expansion and pattern matching.

For instance,

To list all of processes named "ava" with only the prefix "j" or "J", you do the following:

ps -efx|grep [jJ]ava

Likewise, if you want to list all the processes with names that cover a range, you could do the following:
ps -efx|grep [a-j]ava

so that (if they exists of course), it would return:
aava
bava
..
..
java

Read more in chap 7 on Shell programming for System Administrators in Marty's book!

hope this helps too!

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Mahesh Kumar Malik
Honored Contributor

Re: virtual memory

Hi Shiv

#top command will provide you information on memory utilisation of each process in the system

Regards
Mahesh
Cem Tugrul
Esteemed Contributor

Re: virtual memory

Shiv,

top,glance(needs licence),sar(system activity
report),ps,and also vmstat may use for this purpose

Good luck,
Our greatest duty in this life is to help others. And please, if you can't
KRS_1
Frequent Advisor

Re: virtual memory

You can use the following tools
glance, top

sam -> virtual Memory Activity.

and using the following command

swap

Thanks and regards
Sekhar
KRS_1
Frequent Advisor

Re: virtual memory

sorry

sam -> performance monitor -> virtual memory activity.

Thanks and regards
KRS