- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what is memory leak & how to catch it on 11iv2
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
тАО08-22-2008 09:59 PM
тАО08-22-2008 09:59 PM
what is memory leak & how to catch it on 11iv2
Thanks & Regards
Rajesh
- Tags:
- leak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2008 10:26 PM
тАО08-22-2008 10:26 PM
Re: what is memory leak & how to catch it on 11iv2
Something I got from whatis.com
A memory leak is the gradual loss of available computer memory when a program (an application or part of the operating system) repeatedly fails to return memory that it has obtained for temporary use. As a result, the available memory for that application or that part of the operating system becomes exhausted and the program can no longer function. For a program that is frequently opened or called or that runs continuously, even a very small memory leak can eventually cause the program or the system to terminate. A memory leak is the result of a program bug.
Some operating systems provide memory leak detection so that a problem can be detected before an application or the operating system crashes. Some program development tools also provide automatic "housekeeping" for the developer. It is always the best programming practice to return memory and any temporary file to the operating system after the program no longer needs it.
Regards,
Vihang.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2008 10:29 PM
тАО08-22-2008 10:29 PM
Re: what is memory leak & how to catch it on 11iv2
Guess the below thread might give you some useful insights.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1219472850243+28353475&threadId=1127688
Regards,
Vihang.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2008 11:05 PM
тАО08-22-2008 11:05 PM
Re: what is memory leak & how to catch it on 11iv2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2008 11:07 PM
тАО08-22-2008 11:07 PM
Re: what is memory leak & how to catch it on 11iv2
You can use gdb to detect them:
http://www.hp.com/go/wdb
Here is a wdb whitepaper:
http://h21007.www2.hp.com/portal/download/files/unprot/devresource/Tools/wdb/doc/Memorydebugging.pdf
- Tags:
- gdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2008 05:59 AM
тАО08-23-2008 05:59 AM
Re: what is memory leak & how to catch it on 11iv2
Memory bunches(heaps) are allocated to some application/OS processes but never deallocated if though that process is gone.
When a system does not correctly manage its memory allocations, it is said to leak memory. A memory leak is a bug. Symptoms can include reduced performance and failure.
Tools you can try:
mpr-2.2
=======
http:// hpux .connect.org.uk/hppd/ hpux /Development/Libraries/mpr-2.2/
Mpr finds malloc and realloc memory leaks and memory allocation statistics by using a simple, brute force strategy, it logs all malloc and free calls to a file and post processes this log file when the program terminates.
dmalloc-5.4.2
=============
http:// hpux .connect.org.uk/hppd/ hpux /Users/dmalloc-5.4.2/
The debug memory allocation or dmalloc library has been designed as a drop in replacement for the system's malloc, realloc, alloc, free and other memory management routines while providing powerful debugging facilities configurable at runtime. These facilities include such things as memory - leak tracking, fence-post write detection , file and line number reporting, and general logging of statistics.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2008 02:36 AM
тАО08-24-2008 02:36 AM
Re: what is memory leak & how to catch it on 11iv2
UNIX95=1 ps -e -o vsz,pid,ppid,args | sort -rn | head -20
This sorts all the processes by memory size. Look for a program that constantly grows and never shrinks.
Usually these questions come up when all memory is used up -- seldom the result of a memory leak, but inadequate RAM sizing for the applications and users.
Bill Hassell, sysadmin