- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
Forums
Discussions
Discussions
Forums
Discussions
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
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
06-23-2003 11:58 PM
06-23-2003 11:58 PM
memory leak
Is there any memory allocated cannot be found out by overloading new and delete even though in our application, all memory allocation use new and delete(no malloc() and free())?
Or is it possible that our system is not configure properly and cause memory is not released in time?
appreciate if you have any idea or suggestion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 12:07 AM
06-24-2003 12:07 AM
Re: memory leak
just the first check can be the last patches, there are a few that address memory leaks.
Second can be the compiler, which one are you using ?
Third can be any application, are you using any or are you just testing these functions ?
Fourth: have you any tool like mwa or glance ? with these you can check memory allocation and find who is guilty for the allocation.
There are also other posts regarding memory leak and how to find them, try with a serach and see if any can fit your needs.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 12:09 AM
06-24-2003 12:09 AM
Re: memory leak
1. reboot your server but do not start any apps (eg. Oracle)
2. use vmstat to get free memory total.
3. start apps.
4. use vmstat to get free memory total.
5. shutdown apps.
6. same as 4. Now - the free memory total should go back to what is was in 2. before the apps were started. If it doesnt you have a memory leak.
7. repeat for users - check free mem using vmstat, let users on, get users off, does free memory return to previous level ? if not you have memory leak.
Apart from this there is glance adviser script in /opt/perf/examples/adviser.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 12:10 AM
06-24-2003 12:10 AM
Re: memory leak
Its caused by the vxfs dynamic inode cache - it keeps growing unless you set it to a limit. To do this set the following kernel parameters;
ninode
vx_ninode <90% of ninode>
Build kernel and reboot and immediately you will have more free memory and it wont leak!
We did this on an RP7400 with 8GB of RAM and it saved us between 1-2GB!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 12:11 AM
06-24-2003 12:11 AM
Re: memory leak
Please ignore, sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 12:13 AM
06-24-2003 12:13 AM
Re: memory leak
a thread that suggest how to check memory leak:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xdf630ea029a2d711abdc0090277a778c,00.html
For Stephan: thank for the info, i will keep it the same. Who knows....it is always a pleasure to learn something new !
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 12:18 AM
06-24-2003 12:18 AM
Re: memory leak
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 12:28 AM
06-24-2003 12:28 AM
Re: memory leak
Normally,memory leak is caused by the 3rd applications if you make lastest O/S patches installed. Most OS can't free the "leak memory" themselves.
An easy way to resolve this problem is to restart your system. For the case not permitted to be restarted, there are some tools to free "leak memory",but most is not free!
Learning more about this topic!
-ux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 05:13 AM
06-24-2003 05:13 AM
Re: memory leak
Better U apply the patch PHSS_28618. The patch can be applied on the fly and doesn't require a reboot.
The same was the case with me, I was just fed up for last 10 days with one of the hpux11.11 machine suffering from a memory leak problem. Today morning we have applied the patch PHSS_28618 on to it and suddenly teh problem got restored.
Suggest U to get the patch downloaded from itrc site and apply it asap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 05:59 AM
06-24-2003 05:59 AM
Re: memory leak
One of the most overlooked areas of memory leaks is the use of library functions (e.g. tempnam()) that dynamically allocate memory.
Pay careful attention to those. I would also look for and install the latest libC and compiler patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 05:59 AM
06-24-2003 05:59 AM
Re: memory leak
One of the most overlooked areas of memory leaks is the use of library functions (e.g. tempnam()) that dynamically allocate memory.
Pay careful attention to those. I would also look for and install the latest libC and compiler patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 12:28 PM
06-24-2003 12:28 PM
Re: memory leak
Rational have tools purify & quantify that
you compile your binary with those libs and
run the binary, in the end of run you have
monitor with all leaks that was when it run
and the source that you could see where the
problems.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 12:51 PM
06-24-2003 12:51 PM
Re: memory leak
You might just have a bad application that takes memory and doesn't release it properly. You might need to patch or upgrade the application.
That being said, the latest Quality Pack for 11.00 (March 2003) is almost never a bad idea. If you have a good connection and a software contract, you can download it and install it quickly.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com