1834055 Members
2598 Online
110063 Solutions
New Discussion

performance ask?

 
SOLVED
Go to solution
castro_2
Regular Advisor

performance ask?

How can I found what process are allocate in memory and how many memory are using?
Is it posible?
Thanks
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: performance ask?

Hi:

If you are interested in the amount of memory proceesses are consuming, try this:

# UNIX95= ps -e -o "user,vsz,pid,ppid,args" | awk 'NR>1' | sort -rnk2

Note the blank (space) character after the equal sign and before the 'ps' command.

The list returned is for all processes, in descending order of process size. See the 'ps' man pages for more information.

Regards!

...JRF...
Bruno Vidal
Respected Contributor

Re: performance ask?

Hi,
The best tools to do that is Glance (but it is not free). You can also use ps (yes it do that also): ps -elf, but it don't give all informations like RSS/VSS/BSS etc...but it give you still a good information about the size of a process.

Cheers.
Steven E. Protter
Exalted Contributor

Re: performance ask?

You can look at open processes in glance and drill in to see details.

You can attach the tusc utility to a process and get every single instruction into a log file. tusc is not included on most systems and you will have to find a copy.

I am attaching my performance data collection scripts as a courtesy, you may be able to fine tune these to get you some data as well.

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
Umapathy S
Honored Contributor

Re: performance ask?

In addition to all above,

You can use top command to get the details.

HTH
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
John Meissner
Esteemed Contributor

Re: performance ask?

we use several tools.

glance plus (not a fee product)
top
perfview & measureware (also not free)

perfview & measureware can get extreemly detailed information on just about ANYTHING you want to look at from cpu, memory, disk.... you name it.

glance /(glance plus) is a good real time tool for this.
All paths lead to destiny
castro_2
Regular Advisor

Re: performance ask?

I have glance, I want to see what process are use a lot of memory.
How can I do?
Thanks
Pete Randall
Outstanding Contributor

Re: performance ask?

In the GUI version of Glance, on the process list screen, click "configure", then "sort fields". You can then select which fields you wish to sort on - Resident Memory or Virtual Memory.


Pete

Pete
S.K. Chan
Honored Contributor
Solution

Re: performance ask?

By default glance only show you processes that use more than 20000 Kbytes of RSS. What you need to do is change that value so that you get a wider range of process list.
# glance -g
==> In the glance window type "o", then choose ..
1) Process
In the "Resident Set Size" area enter "0" (ie set it to zero KBytes). Hit enter till it prompt you to confirm these settings. Confirm it with "y".
Helen French
Honored Contributor

Re: performance ask?

# gpm

That will give you the Glance graphical screen. Drill down the reports you needed from the "reports" menu. You will get process, memory and other resource usages from there.
Life is a promise, fulfill it!