- 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
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
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-25-2003 06:36 AM
тАО06-25-2003 06:36 AM
I think it is cuased by memory leak.
How to detect which process/application has
memory leak?
Tks..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 06:38 AM
тАО06-25-2003 06:38 AM
SolutionUse the command
UNIX95= ps -e -o "vsz args" |sort -n
(Note the space between = and ps)
at regular intervals and note down the first column. It should not be increasing over the time. If so, that process may be having memory leak.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 06:39 AM
тАО06-25-2003 06:39 AM
Re: memory leak
here you can find lots of suggestions:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x77670ea029a2d711abdc0090277a778c,00.html
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 06:42 AM
тАО06-25-2003 06:42 AM
Re: memory leak
One way to detect processes with memory leaks (which are application coding errors) is to monitor a process'es virtual size over time:
# UNIX95= ps -e -o "user,vsz,pid,ppid,args" | awk 'NR>1' | sort -rnk2
Note the blank (space) character after the equal sign and before the 'ps' command. This kimits the setting of UNIX95 to this command only.
Note, that the virtual size (vsz) is in kilobyte size pages (see the 'ps' man pages) and excludes buffer cache and other shared components such as shared libraries and shared memory regions.
A leaking process will grow over time.
Remember, hoever, that if a program calls free() to free memoary it has allocated, that that memory is only freed for the program's use until such time as it terminates. Thus seeing 100% overall memory utilization in utilities like 'glance' does not necessary signify any memory leak.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 06:45 AM
тАО06-25-2003 06:45 AM
Re: memory leak
U can use UNIX95 format command which is UNIX95= ps -eo "pid,ruser,pcpu,vsz=kbytes" -o args | sort -rn -k 4 | head
If there is a considerable ups and downs in the memory [vsz parameter] then there should be a sure memory leak. What I suggest you to apply the patch PHSS_28618 for the OS version you have. The patch is free download from itrc.hp.com site and doesn't requier a reboot.
shripad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 06:56 AM
тАО06-25-2003 06:56 AM
Re: memory leak
1. Reboot the server & note down free mem (vmstat command)
2. Start applications & note down free mem
3. Close applications and note down free mem.
Then you can compare the values for 1st and 3rd step. But this is bit lenghty process.
If you have glance check following.
/opt/perf/examples/adviser/proc_mem_leak.
Also as suggested use of UNIX95 variable will also give you some idea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2003 09:40 AM
тАО06-25-2003 09:40 AM
Re: memory leak
This is Tim Sanko, and I can give you several hints if you are the gal I know from B&W I am at extension 1856.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 02:45 AM
тАО06-26-2003 02:45 AM
Re: memory leak
if you have GlancePlus
try
glance -adviser_only -syntax /opt/perf/examples/adviser/proc_mem_leak
HTH
regards
PMP