1825759 Members
2241 Online
109687 Solutions
New Discussion

Memory leaking?

 
Slava_2
Occasional Contributor

Memory leaking?

We got new HP-UX box:
HP 9000 L1000 Enterprise Server
CPU 1.5MB cache, 360 MHz PA8500
RAM: 512MB *2 SDRAM
18GB HotPlug Ultra2 SCSI LP HD
DVD ROM for L-Class
HP-UX 11.0 , 64-bit configuration
But when I rebooted box I found from 'swapinfo -ta' memory slowly leaking 8kb/2sec-3sec
--------------------------------------------------------------------------------------------
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1048576 0 1048576 0% 0 - 1 /dev/vg00/lvol2
reserve - 730352 -730352
memory 745812 532996 212816 71%
total 1794388 1263348 531040 70% - 0 -
--------------------------------------------------------------------------------------------
dev 1048576 0 1048576 0% 0 - 1 /dev/vg00/lvol2
reserve - 730352 -730352
memory 745812 533632 212180 72%
total 1794388 1263984 530404 70% - 0 -
--------------------------------------------------------------------------------------------
In 2-3 days 'memory/FREE' become 0% and next 'dev/USED' starts grow when I rebooted box it will started again no mater I will additional application or not. Is anybody had the same situation and how I can prevent this.
Thank you,
Slava E.


5 REPLIES 5
Ovidiu D. Raita
Valued Contributor

Re: Memory leaking?

First you would need to find which application/process is responsable for this. You can use glance and check the amount of memory allocated by the processes and then figure out which one allocates memory constantly.

Then you should find a patch for that app/process. If you want to go further, there are softwares in the market able to discover memory leaks. One of them that comes with a temporary license is called Purify from www.rational.com, http://www.rational.com/products/purify_unix/index.jsp

Regards,
Ovidiu

Ovidiu
Simple solutions to complex problems
John Palmer
Honored Contributor

Re: Memory leaking?

Hi,

Try running Bill Hassell's one-liner 'psram':-

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

(note the space is required after =)

This will list running processes in order of their virtual size.

One possible culprit is 'mib2agt'. This definitely has a memory leak unless patch PHSS_21046 has been applied.

Regards,
John
Mark Ferraretto
Advisor

Re: Memory leaking?

For what it's worth, I have a similar config to yours (L1000, HP-UX 11.00 etc) with 1GB of RAM and I noticed the same problem.

Turns out is was mib2agt. You have to apply PHSS_21046 to fix it. This patch isn't in the September 2000 or December 2000 recommended bundle.

Or just shut down mib2agt. Edit /etc/rc.config.d/SnmpMib2 to turn it off and then kill the process
Dan Hetzel
Honored Contributor

Re: Memory leaking?

Hi Slava,

I had the same problem as yours on our L1000 and L2000 servers, 'mib2agt' was the culprit.

It's been solved after applying PHSS_21046
ftp://ftp.itrc.hp.com/hp-ux_patches/s700_800/11.X/PHSS_21046

The so-called "Slight memory leak" (dixit HP) is corrected since patch PHSS_18759.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Peter Cvar
Occasional Advisor

Re: Memory leaking?

Do you have iPLanet (Netscape) Web Server installed on this server. If yes, check for the latest iPlanet service packs.

Peter