- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with memory leak
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
тАО01-22-2008 05:13 AM
тАО01-22-2008 05:13 AM
This is my 1st post here...and if i am not posting at the right place then i am extrememly sorry. I am facing a rather weired problem. I have a C++ binary running on HP-UX. The output of top as well as glance shows periodic increase in memory. But when i use gdb to detect it, i dnt get the desired output...gdb says...no leaks found. Just to mention that I have used gdb earlier to track memory leaks and it is quite efficient in that. But now , even though the memory keeps increasing, i dnt get any leak info from gdb.
It will be really great if someone can provide some help...or atleast tell me where i can get help.
Regards,
Kaushik
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2008 05:47 AM
тАО01-22-2008 05:47 AM
Re: Problem with memory leak
This is a copy of a HP doc
Read and request the tools from your local response centre if you need them
http://docs.google.com/View?docid=dc7s6mzr_56cgsg9g
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2008 11:29 PM
тАО01-22-2008 11:29 PM
Solutionhttp://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1182798
Did you use "info heap"? Did it show the " Heap Size" increasing but not the "Outstanding Allocations"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2008 11:49 PM
тАО01-24-2008 11:49 PM
Re: Problem with memory leak
Thnx for ur replies. I checked the thread. But in my case, it is different. Both heap size and outstanding allocation are increasing. i took three outputs of info heap in a hour at an interval 0f 20 mins...the result is as follows:
1. Heap size = 876201528
Outstanding = 848278668
2. Heap size = 878167608
Outstanding = 848495917
3. Heap size = 878560824
Outstanding = 850531303
Also mine is a multi-threaded program with arnd 90 threads running at any given time.
Attaching gdb only shows a leak of 1400 bytes in the first run...every time from then on, it simply says no leaks found.
Regards,
Kaushik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2008 04:05 AM
тАО01-25-2008 04:05 AM
Re: Problem with memory leak
>1. Outstanding = 848278668
>3. Outstanding = 850531303
That should be a leak gdb can detect. That's about 2 Mb so far. Do you have the latest version?
>Also mine is a multi-threaded program with around 90 threads
Do you have the latest libc/libpthread patches installed?
>Attaching gdb only shows a leak of 1400 bytes in the first run
Did you get that one fixed? :-)