Operating System - HP-UX
1855695 Members
5458 Online
104103 Solutions
New Discussion

Free Memory Leakage Tool for HP-UX Platfrom

 
ehsvgup
Occasional Contributor

Free Memory Leakage Tool for HP-UX Platfrom

We have webserver based java product which runs on HP platfrom.To see,that ojects are getting released by webserver to free RAM,we require free downloadable memory leakage tool like OptimizeIt for Solaris.
Still I am not able to find any tool which is free and runs fine for Memory leakage on HP platfrom.If any one has idea about it please reply ASAP.

TIA
/vipin
BR19139
5 REPLIES 5
Animesh Chakraborty
Honored Contributor

Re: Free Memory Leakage Tool for HP-UX Platfrom

Stefan Farrelly
Honored Contributor

Re: Free Memory Leakage Tool for HP-UX Platfrom


There is no decent tool Ive ever come across on HP-UX for spotting memory leaks. The link in an earlier reply to glance and the old basic ps command are handy, but not the complete solution.

There is only one way to catch a memory leak and that is to test for it in a controller manner. ie. Only allow a single user on to the system. Watch memory usage very closely using vmstat (free count) and when the users process starts then stops, check vmstat free count again, did all the memory come back ? Then you need to test is again, again and again. Preferrably after a clean reboot each time so again evetything is tested the same and can be controlled.

If youre worried about a web based application and java then almost for sure you have a memory leak! these 2 applications are notorious for causing them. Simply poorly written code.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Steven Sim Kok Leong
Honored Contributor

Re: Free Memory Leakage Tool for HP-UX Platfrom

Hi,

Try sarcheck. I have tried it once quite a long time back, pretty impressive, reports on processes having memory leaks.

http://www.sarcheck.com/schp.htm

Hope this helps. Regards.

Steven Sim Kok Leong
Wodisch
Honored Contributor

Re: Free Memory Leakage Tool for HP-UX Platfrom

Hello,

use "crontab" to execute something like:
UNIX95= ps -C YOUR-PROGRAM'S-CODEFILE -o "user,vsz,pid,ppid,args" >> /tmp/memleak.log

over a period of thime (while the usual suspects are running) and check for the one having its regions growing...

Just my $0.0,2
Wodisch
Bill Hassell
Honored Contributor

Re: Free Memory Leakage Tool for HP-UX Platfrom

And to amplify on Woodisch's posting, if you don't know which program is growing wothout bounds, do soemthing like this:

$ UNIX95= ps -e -o "vsz,pid,ruser,args" | sort -rn | more

This sorts all the processes by memory size, largest first. Be sure you patch snmp if it shows up at the top of the list.


Bill Hassell, sysadmin