- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory leak script
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
08-06-2002 07:41 AM
08-06-2002 07:41 AM
memory leak script
does anyone here have a script that reports on memory leak that they would lilke to share with. Any help will be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 07:51 AM
08-06-2002 07:51 AM
Re: memory leak script
I doubt very much there is a script which will do this for you. You have to be a bit more precise in order to find a memory leak. The method I use is;
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 a leak.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 07:52 AM
08-06-2002 07:52 AM
Re: memory leak script
Glance/top to watch Stack size increase..
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 07:54 AM
08-06-2002 07:54 AM
Re: memory leak script
# cd /opt/perf/examples
# glance -adviser_only -syntax ./proc_mem_leak -j30
==> Samples every 30secs.
You can easily modify "proc_mem_leak" to capture a wide scope of data. For exmaple by default the VSS is set to 30MB. You can change that setting and you'll get more data out of the glance output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 08:17 AM
08-06-2002 08:17 AM
Re: memory leak script
/opt/perf/examples/adviser
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 08:19 AM
08-06-2002 08:19 AM
Re: memory leak script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 08:24 AM
08-06-2002 08:24 AM
Re: memory leak script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 08:33 AM
08-06-2002 08:33 AM
Re: memory leak script
You can use this command to find out how much memory is being used after booting up.
UNIX95= ps -e -o vsz=Kbytes -o pid,args=Command-Line | sort -rnk1
It is all one line.
Then try it again later to find out what is using the most memory.
Eileen