Operating System - HP-UX
1847817 Members
4490 Online
104021 Solutions
New Discussion

memory leaks in HP-UX 11?

 
Mark Hunt
New Member

memory leaks in HP-UX 11?

--------------------------------------------------------------------------------
I've got a number of older boxes (mostly B180's with 256MB) with swap configured at 2 x memory. even with no user activity their swap space will erode (swapinfo -at) until you can no longer log in. The only way out is to reboot the box - closing apps and windows will recoup some swap but not much. Increasing device swap extends the uptime but doesn't fix the problem.

Our environment is heavily yp'd and makes use of lots of automounted nfs services. we also use Legato networker for enterprise backup.

5 REPLIES 5
Krishna Prasad
Trusted Contributor

Re: memory leaks in HP-UX 11?

Did you check and see what the kernel parmeter dbc_max_pct is set to?

It shouldn't be any higher the 10 in most cases. If you run glance take a look a the buffer cache. If this is high it would indicate that you need to ajust the parmeter.
Positive Results requires Positive Thinking
Eileen Millen
Trusted Contributor

Re: memory leaks in HP-UX 11?

UNIX95= ps -e -o vsz=Kbytes -o pid,args=Command-Line | sort -rnk1

Will show what is using memory.
(It is all on one command line, it might get spread over two lines)

Eileen
harry d brown jr
Honored Contributor

Re: memory leaks in HP-UX 11?

Mark,

You need to use glance and watch the processes, because something is broken. Check for processes that are consuming a lot of memory. I've got quite a few 11 boxes, and we see nothing like that. It could be Legato, nfs, or yp'.

live free or die
harry
Live Free or Die
S.K. Chan
Honored Contributor

Re: memory leaks in HP-UX 11?

There has been a lot of discussion in the forum about possible memory leaks, how to detect it and some suggestions. Go to www.hp.com and at key in the string

memory leak

in the search box. You'll see a lot of Forum URLs with memory leak information.
Bill Hassell
Honored Contributor

Re: memory leaks in HP-UX 11?

Check the size of mib2agt. This is a very common problem when the system is not up to date on patches. mib2agt should be a few megs but unpatched it can grow to several hundred megs. You can immediately kill the process to gain back the space and you can also turn off all SNMP tools if your network administrator does not need SNMP features (ie, HPs Network Node Manager). Do this by editing all the files:

vi /etc/rc.config.d/SNMP*

Set all the =1 values to =0. At the next reboot, all SNMP tools will be disabled. These are only monitoring tools and do not affect HP-UX, only the ability of external programs to monitor the system.


Bill Hassell, sysadmin