- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Leaking all over the place
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2004 08:51 AM
тАО03-31-2004 08:51 AM
Leaking all over the place
I have HP-UX 10.20 running on an HP744 and am having problems with memory leaks (I think). Our applications alloc and then free memory in chunks but the virtual memory usage on the system keeps increasing and the processes keep eating up more VM. Is there a know problem with HP-UX not releasing memory to the system even when the app frees it? Is there some kernel parameter that can be tweaked? Thanks for any help.
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2004 08:56 AM
тАО03-31-2004 08:56 AM
Re: Leaking all over the place
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2004 08:58 AM
тАО03-31-2004 08:58 AM
Re: Leaking all over the place
I know there is a problem with the mib2agt eating up memory. Specifically with 10.20, I am not sure. I have had the mib2agt problem on 11.00. I would probably recommend updating your patch level first off, if they are not up to date....whatever that maybe for 10.20. Have you run the following command to see if you see anything eating a lot of memory:
UNIX95= ps -e -o ruser,vsz,pid,args | sort -rnk2 | more
Please note that you need to have a space between the = and the ps.
Hope this helps!
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2004 09:03 AM
тАО03-31-2004 09:03 AM
Re: Leaking all over the place
Anyway, if you're facing a memory leak, the cause of the trouble is likely to be in the application code and not in the hp kernel, at least this is my bet.
Maybe you can use a debuger to run and profile the application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2004 09:08 AM
тАО03-31-2004 09:08 AM
Re: Leaking all over the place
If you have a reasonably well-patched version of 10.20 and libc is reasonably new (bearing in mind the last 10.20 Gen Release patchset was Dec. '01) then there are no big memory leaks. I'm betting on a leak in the application itself. If you are linking 3rd-party libraries (e.g. databases), you might look there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2004 09:21 AM
тАО03-31-2004 09:21 AM
Re: Leaking all over the place
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2004 03:30 AM
тАО04-01-2004 03:30 AM
Re: Leaking all over the place
Its helpful to find out where your virtual memory is going. Use the program "kmeminfo" to do this. If you don't have it, one way to get it is to install the 10.20 q4 patch PHCO_28068.
# ./kmeminfo.10.20
Warning: found 1 unmapped system pages
Physical memory usage (in pages):
physmem = 40960 Available physical memory
freemem = 13722 Free physical memory
Used = 27238 Physical memory Used:
System = 11523 by Kernel:
firstfree = 4107 for Text and Static Data
Bufpages = 4096 for Buffer Cache
pagepool = 0 available for buffers
Dynamic = 3319 for Dynamic Data:
MALLOC = 2723 MALLOC() buckets:
bucket[ 0] = 0 size 1
bucket[ 1] = 0 size 2
bucket[ 2] = 0 size 4
bucket[ 3] = 0 size 8
bucket[ 4] = 0 size 16
bucket[ 5] = 44 size 32
bucket[ 6] = 12 size 64
bucket[ 7] = 115 size 128
bucket[ 8] = 174 size 256
bucket[ 8] = 174 size 256
bucket[ 9] = 443 size 512
bucket[10] = 151 size 1024
bucket[11] = 409 size 2048
bucket[12] = 24 size 4096
bucket[13] = 38 size 8192
bucket[14] = 78 size 16384
bucket[15] = 117 size 32768
bucket[16] = 52 size 65536
bucket[17] = 32 size 131072
bucket[18] = 954 size 262144
bucket[19] = 80 size 524288
bucket[20] = 0 size 1048576
Kmalloc = 544 k[m]alloc()
Eqalloc = 44 eqalloc()
Reserved = 8 Reserved Pools
Other = 1 other system
User = 14679 by User processes
Reclaimable = 23 by Page Cache
Disowned = 21
Uarea = 492 by Ureas
Other = 741 not accounted...
Regards,
Brian Hackley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2004 03:46 AM
тАО04-01-2004 03:46 AM
Re: Leaking all over the place
As Brian points out, kmeminfo is a great utility - highly recommended.
I'd also recommend the equivalent utility for scoping out shared memory - shminfo - avail here:
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin
HTH,
Jeff