Operating System - HP-UX
1752572 Members
4248 Online
108788 Solutions
New Discussion юеВ

Re: Total, Used and Free memory in HPUX

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

Total, Used and Free memory in HPUX

Hi All,

I am using HPUX 10.20, 11.00, 11.11.

How to find Total, Used and Free memory in HPUX.
11 REPLIES 11
James R. Ferguson
Acclaimed Contributor

Re: Total, Used and Free memory in HPUX

Hi:

I'd use 'glance'. Of course, you have to purchase a license if you don't have it [aside from a 30-day free trail version from the Application CDROMs].

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Total, Used and Free memory in HPUX

There are many possible solutions, Glance without a doubt being the best. Also available are vmstat, swapinfo, sar, even ps. The problem with all these freely available tools, other than Glance, that is, is that they all have their own unique way to look at memory and therefore give different answers. That is why Glance is so clearly superior and no system should be without it.


Pete

Pete
senthil_kumar_1
Super Advisor

Re: Total, Used and Free memory in HPUX

Hi All,

Glance is showing total, used and free memory.

But i want to view top 3 memory utilizing process also.

what is command to be for that.


Sharma Sanjeev
Respected Contributor
Solution

Re: Total, Used and Free memory in HPUX

Hi

I have seen very good script in ITRC itself
Please fine attached the same

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Sharma Sanjeev
Respected Contributor

Re: Total, Used and Free memory in HPUX

Hi Again

Another good one from SEP

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Manoj   Jose
New Member

Re: Total, Used and Free memory in HPUX

Senthil,
Following will display the top 10 process which is using high CPU/MEmory.

UNIX95= ps -ef -o pid,ppid,pcpu,args | sort -nbk 3 | tail -10

Re: Total, Used and Free memory in HPUX

>Senthil,
>Following will display the top 10 process >which is using high CPU/MEmory.
>
>UNIX95= ps -ef -o pid,ppid,pcpu,args | sort -nbk 3 | tail -10

No. that will show only processes with high CPU, it will not show the memory usage of processes at all... if you wanted to look at (virtual) memory usage of a process (in kilobytes) you might do:

UNIX95= ps -eo pid,ppid,vsz,args | sort -nbk 3 | tail -10

HTH

Duncan

I am an HPE Employee
Accept or Kudo
senthil_kumar_1
Super Advisor

Re: Total, Used and Free memory in HPUX

Hi Sharma Sanjeev,

The script posted by you is showing total, used and free memory for phusical and swap.


Now i want to view the top 3 memory (physical) utilizing process.
Don Morris_1
Honored Contributor

Re: Total, Used and Free memory in HPUX

Take Duncan's command and use sz instead of vsz (Physical instead of Virtual).

UNIX95= ps -eo pid,ppid,sz,args|sort -nbk 3 |tail -10