- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Determining process memory and CPU usage
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
11-14-2001 03:11 AM
11-14-2001 03:11 AM
we all know top, but is there a more complete method to view a processes CPU and memory usage history/average similar to sar?
For example, if my platform is running an application I'd like to find out how much of the CPU it takes over time and how much memory it consumes.
I'd also like to find out where the bottleneck of that application is and if adding memory or CPU will speed it up or if it's a matter of tuning the kernel.
Thanks,
Bill
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 03:13 AM
11-14-2001 03:13 AM
Re: Determining process memory and CPU usage
can I script glance?
what would be the benefit of using scripted glance versus vmstat or sar?
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 03:25 AM
11-14-2001 03:25 AM
Re: Determining process memory and CPU usage
Hope this helps.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 03:25 AM
11-14-2001 03:25 AM
Re: Determining process memory and CPU usage
If you have glance, chances are you have measureware which is what you really want to be using...
Type 'mwa status'
If this comes back with something meaningful you have measureware installed.
Whether you are using glance of measureware, if you want to monitor a particular bunch of processes on your system, as a distinct entity you need to define the processes in the file /var/opt/perf/parm - The file is fairly self-explanatory - but by way of example I usually define an Oracle database as:
application = Oracle_PROD_Instance
file = ora_*_PROD,oraclePROD
Now when you restart glance, find the application screen and you will see all your processes monitored as a distcinct group.
This file is also used by measureware - so if you restart the measureware daemons using 'mwa restart all' - it will also start grouping the processes together.
How do you get the info out of measureware? Well if you have PerfView its dead easy - its all GUI driven, and you can just drill down. If you don't have PerfView, you'll have to use the measureware 'extract' command to get at your data - this is fairly complex, but if you run it with no options you do get some help!
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 03:26 AM
11-14-2001 03:26 AM
Re: Determining process memory and CPU usage
measureware can group processes together into application groups, which you can then analyse using extract or perfview. This may be what you want.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 03:27 AM
11-14-2001 03:27 AM
Re: Determining process memory and CPU usage
application = Oracle_PROD_Instance
file = ora_*_PROD,oraclePROD*
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 03:46 AM
11-14-2001 03:46 AM
Solutionit can be done with glance:
create a config file like:
PRM LOOP PRINT gbl_statdate, ";", gbl_stattime, ",", app_name_prm_groupname, ";", app_cpu_total_util (or any other metrix you like to get)
create a script like this:
glance -adviser_only -syntax config.file -j 600 >> glance.ot 2>error.log
Hope this will help
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 03:49 AM
11-14-2001 03:49 AM
Re: Determining process memory and CPU usage
however, I'd like to be able to do easy standard unix scripts.
I'd there and easy way to find pid /mem /cpu..
ie with ps perhaps?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 03:59 AM
11-14-2001 03:59 AM
Re: Determining process memory and CPU usage
I've a vague memory of an HP presales guy telling me a whole host of reasons why the data that comes out of MeasureWare/Glance is much more accurate and reliable than that you get from top/ps/vmstat/sar etc. It's to do with how the data is gathered - glance and measureware use something called MI - the kernel Measurement Interface, while standard UNIX commands just get a 'snapshot' using system calls such as pstat.
However I'm happy to be proved wrong!
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 04:28 AM
11-14-2001 04:28 AM
Re: Determining process memory and CPU usage
but if you have access to a SAP-System anywhere....
SAP uses an own tool called "saposcol" which keeps a 24hour performance database in shared memory. You can query the collector from the commandline.
It is simple to use.
You just start "saposcol" and it runs as a deamon.
You use "saposcol -o" to query all data (also the 24hour history) or "saposcol -m" to get snapshots.
Might be an option, if you have SAP on license, but no professionell monitoring tools on budget.
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 04:36 AM
11-14-2001 04:36 AM
Re: Determining process memory and CPU usage
live free or die
harry