Operating System - HP-UX
1826417 Members
3656 Online
109692 Solutions
New Discussion

suspected memory leak on HPUX-11.11i

 
Anne Holmes
Occasional Contributor

suspected memory leak on HPUX-11.11i

can anyone tell me how to monitor for a memory leak using standard HPUX commands?
suspect problem may be telnet / xterm related, are either of these programs known to have memory leak problems on this release?
3 REPLIES 3
Ken Hubnik_2
Honored Contributor

Re: suspected memory leak on HPUX-11.11i

Run this command several times and see if the size grows.

UNIX95= ps -e -opid,vsz,args

James R. Ferguson
Acclaimed Contributor

Re: suspected memory leak on HPUX-11.11i

Hi Anne:

If you suspect a memory leak, you can monitor (over time) the virtual process size thusly:

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

This will produce a list of processes in descending process size. The blank (space) character after the equal sign and before the 'ps' command sets the UNIX95 option for the command line only.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: suspected memory leak on HPUX-11.11i

Hi (again) Anne:

If you want to confine your analysis to only 'telnetd', for instance, use something like:

# UNIX95= ps -C telnetd -o "user,vsz,pid,ppid,args"

The '-C' option selects only processes by this command name. This is far superior to 'grep'ing process output.

Regards!

...JRF...