- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- memory leak in HP-UX 11.23 11i v2
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
Forums
Discussions
Discussions
Discussions
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
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
05-16-2007 02:55 AM
05-16-2007 02:55 AM
I recently move some system from Solaris to current HP-UX 11.23 v2 ,but I found a seriously memory leak in the this enviroment.because this is a real-billing system that has smoothly runned on different UNIX system,including Solaris,AIX,HP-UX 11i v1. And we never found this kind of serious problem before.
The things i want to know is if there is any aC++ compiler option or environment variables can influence the memory new/delete and malloc/free function?
Thanks!
Solved! Go to Solution.
- Tags:
- leak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 03:16 AM
05-16-2007 03:16 AM
Re: memory leak in HP-UX 11.23 11i v2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 03:15 PM
05-16-2007 03:15 PM
Re: memory leak in HP-UX 11.23 11i v2
malloc supports some options, but none for leak checking. See malloc(3).
If you are on IPF, you can use +check=heap. Or you can use gdb directly (on PA too) with the "set heap-check" and "info leak" options.
- Tags:
- +check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 09:16 PM
05-16-2007 09:16 PM
Re: memory leak in HP-UX 11.23 11i v2
I have installed the patch PHCO_35744 and all the Dependencies,but still haven't solved the problem.
the following is some other information I can provide:
all the sources are written in C++ syntaxï¼
we use multi-thread in the main flow;
we use many dynamic-link libraries in our system;
we have used some memory leak detection to check the problem,and finally found that the main memory leak is caused by failing to execute class destructor. it's to say that we use much delete/free operation in the class destructor,and the destructor can't effect when the class variable is destroied.
- Tags:
- pthread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 09:39 PM
05-16-2007 09:39 PM
Re: memory leak in HP-UX 11.23 11i v2
That's pretty generic. A leak detection tool should show you where it is allocates and of what type. Of course the hard part is figuring where to delete an object.
>it's to say that we use much delete/free operation in the class destructor,and the destructor can't effect when the class variable is destroyed.
I'm not sure I understand this? Does your class have a bunch of pointers that also point into the heap? If so, you need to delete all of those pointers in your destructor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 10:22 PM
05-16-2007 10:22 PM
Re: memory leak in HP-UX 11.23 11i v2
There are several memory leak issues with the OS that are resolved in the September 2006 bi-annaul QPK service pack. I recommend you test with that environment.
The aC++ Compiler should be updated to as close to current as possible.
But the normal cause of memory leaks is applicaiton code.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2007 01:43 AM
05-17-2007 01:43 AM
Re: memory leak in HP-UX 11.23 11i v2
but where can I find the bi-annual QPK? Can you give me the link?
thanks Dennis,
the problem is the destructor can't be executed when the variable's life-cycle is expire. Even I put some cout statement in the destructor,it can't print anything. I'm not sure if you have understand what I want to express.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2007 01:48 AM
05-17-2007 01:48 AM
SolutionThe standard HP-UX patch bundles are issued twice yearly and are cumulative. For 11.23, use the March 2007 bundles:
http://www2.itrc.hp.com/service/patch/releasePage.do?BC=main|releaseIndexPage|&releaseId=0703-11.23
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2007 10:15 AM
05-17-2007 10:15 AM
Re: memory leak in HP-UX 11.23 11i v2
Why not, you don't know when that is? That's usually why leaks occur because you don't know.
>Even I put some cout statement in the destructor, it can't print anything. I'm not sure if you have understand what I want to express.
Can't print anything useful??
Attach an example program that demonstrates it?
Have you used gdb's "set heap-check"?
- Tags:
- gdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2007 12:57 AM
05-19-2007 12:57 AM
Re: memory leak in HP-UX 11.23 11i v2
I don't know how to express my thankfulness for you all! The problem has puzzled me for more than one monthes.
The application and source code has no problem. The only problem is missing of recently patch. after I have installed the patch PHCO_34944 and it's dependencies,the memory leak disappeared.
Thanks again for you all!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2007 02:56 PM
05-20-2007 02:56 PM