Operating System - HP-UX
1833563 Members
3361 Online
110061 Solutions
New Discussion

global swap space problems

 
Dril-Quip
Occasional Advisor

global swap space problems

Greetings,
I am having trouble with one of my servers.
The box stays up ok for a few months at a time, but every once in a while, the swap space fills up and causes processes to stop/die off.
Is there any way to check swap space usage against processes?
Something like top, but sorted by swap space usage would be ideal.
I have glance installed but have not found a way to do this.

Any comments are welcome
uh, what does this button do?
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: global swap space problems

Hi:

# swapinfo -ta

Or, if you have Glance toggle the swap metrics screen with 'w". Glance is available on your application CDs as a trial product if you don't already license it. This product is worth every penny it costs!

...JRF...
John Palmer
Honored Contributor

Re: global swap space problems

Hi,

The psram one-liner script courtesy of Bill Hassell lists processes in decreasing order of their virtual set size. As the majority of memory used by a process is usually 'data' which accounts for swap space usage, it should be what you need.

The script is:-

UNIX95= ps -e -o ruser,vsz,pid,args | sort -rnk2 | more

Regards,
John
James R. Ferguson
Acclaimed Contributor

Re: global swap space problems

Hi:

Oh, forgot an old standby (sar):

# swapinfo -ta
# sar -w

Check the man pages (1M) for details on both.

...JRF...