- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Memory Leak High Level View
Operating System - HP-UX
1822439
Members
2720
Online
109642
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-07-2006 09:22 AM
06-07-2006 09:22 AM
Memory Leak High Level View
Hi All,
I wanted to analyze the memory consumption of the server processes related to my application so as to see if they are leaking memory over a period of time of usage.
Someone suggested me the following.
export UNIX95=1
ps -A -o stime,pcpu,sz,vsz,args
Question 1: Which column out of SZ and VSZ, if increases over a period of time indicates memory leak?
Question 2: What is the difference between SZ and VSZ?
Question 3: If at any point of time, the value of one of these is A and if initially it was B then does it mean that the memory leaked is (A-B)???
Question 4: Which tool do you recommend for code level analysis of memory leak? Its a C++ application.
Please advise.
Any help in this regard would be highly appreciated.
Thanks
Anurag
I wanted to analyze the memory consumption of the server processes related to my application so as to see if they are leaking memory over a period of time of usage.
Someone suggested me the following.
export UNIX95=1
ps -A -o stime,pcpu,sz,vsz,args
Question 1: Which column out of SZ and VSZ, if increases over a period of time indicates memory leak?
Question 2: What is the difference between SZ and VSZ?
Question 3: If at any point of time, the value of one of these is A and if initially it was B then does it mean that the memory leaked is (A-B)???
Question 4: Which tool do you recommend for code level analysis of memory leak? Its a C++ application.
Please advise.
Any help in this regard would be highly appreciated.
Thanks
Anurag
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2006 09:33 AM
06-07-2006 09:33 AM
Re: Memory Leak High Level View
1)If either of these increase significantly over time, there MAY be a memory leak. However, these values may be increasing by design caching more and more data as time goes on until (hopefully) some equilibrium value is reached.
2) They are diffrent expressions of the same quantity; sz is in units of pages while vsz is in KiB.
3) No, only that there may be a memory leak; it all depends upon program design.
4) My favorite tool for finding memory leaks is my head. Every constructor must have a destructor. Every malloc() must have a free(). PurifyPlus is a rather good tool but really there are no excuses for memory leaks; it's just sloppy programming.
2) They are diffrent expressions of the same quantity; sz is in units of pages while vsz is in KiB.
3) No, only that there may be a memory leak; it all depends upon program design.
4) My favorite tool for finding memory leaks is my head. Every constructor must have a destructor. Every malloc() must have a free(). PurifyPlus is a rather good tool but really there are no excuses for memory leaks; it's just sloppy programming.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP