- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: glance
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
07-10-2002 09:12 AM
07-10-2002 09:12 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 09:15 AM
07-10-2002 09:15 AM
Re: glance
You could monitor the "growth" with:
# 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.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 09:18 AM
07-10-2002 09:18 AM
Re: glance
UNIX95= ps -eo vsz,ruser,pid,args | sort -rn | more
This sorts all programs in descending amount of RAM. Just repeat regularly and see what grows.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 09:22 AM
07-10-2002 09:22 AM
Solution# glance -R
==> That brings you to "Process Resources"
==> Enter the PID of the process you want to monitor at the bottom of the screen and hit RETURN.
==> Take a look at "Total RSS/VSS"
==> This value shows the virtual stack size for this process (the requested memory for this process). If it increases more and more over time it could mean there is a memory leak.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 09:26 AM
07-10-2002 09:26 AM
Re: glance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 10:05 AM
07-10-2002 10:05 AM
Re: glance
/opt/perf/examples/adviser/proc_mem_leak
The chance is it should exist. If it does, all you need to do is run it like so .. (capture the output every 5 minutes)
# cd /opt/perf/examples/adviser
# glance -adviser_only -syntax proc_mem_leak -j300 | tee /tmp/memleak.output
I personally have not try this before.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 10:33 AM
07-10-2002 10:33 AM
Re: glance
My suggestions in the order of importance are as follows:
1. Monitor global metrics, such as GBL_MEM_UTIL from your Measureware logs (via PerfView or 'extract"). If you notice a gradual increase over time, you can then drill down to application and process metrics (see below). You can also set Measureware alarms by editing /var/opt/perf/alarmdef. (Remember to run 'mwa restart alarm'). For further details, see /opt/perf/paperdocs/mwa/C/mwausers.pdf. A couple of examples on 'alarmdef' are given under /opt/perf/examples/mwaconfig/
2. If you are interested in a particular process, or a group of processes, you can define "applications" in your parm file. See /opt/perf/examples/mwaconfig/parm_apps for some examples.
(Remember to run 'mwa restart scope')
You can then view the collected application metrics, including memory utilization, via PerfView or 'extract'.
You can also use Measureware application metrics in your alarmdef.
NOTE: Measureware will collect application metrics in each interval, but the process metrics are collected only for "interesting processes" in any given interval.
So, unless you "wrap" your process in an application, you may not be able to get what you want out of Measureware logs.
3. If you want to use Glance to monitor memory utilization at a process level, the parm file won't help (the parm file is used for configuring Measureware collection process only). However, you can run Glance in "adviser only" mode to log "anything you want". For example, try this:
glance -adviser_only -syntax /opt/perf/examples/proc_mem_leak -j 60
NOTE: The file /opt/perf/examples/proc_mem_leak should exist on your system if you have a recent version of Glance.
For more information on "adviser syntax" check this document:
/opt/perf/paperdocs/gp/C/adviser.pdf
Do 'man glance' to check other command line options.
NOTE: If you want to go a step further, you can also integrate your "glance adviser_only output" with your Measureware logs. See /opt/perf/paperdocs/mwa/C/mwadsi.pdf
HTH,
Mladen