HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: vmstat - getting memory and CPU utlization
Operating System - Linux
1828239
Members
2470
Online
109975
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
08-24-2005 12:10 AM
08-24-2005 12:10 AM
vmstat - getting memory and CPU utlization
HI,
I would like to get the memory used (in MB) for a particular running application with vmstat (see output from vmstat).
I would like to obtain the active memory of a particular application by specifying the -a option:
bash-2.03$ vmstat -a 10 10
Usage: vmstat [-cipsS] [disk ...] [interval [count]]
bash-2.03$ vmstat -a 10 10
May I know how I could obtain the active memory from vmstat? Also, I'd like to verify if by getting the active memory would tell me the amount of memory consumed(in MB) for an application?
As for the CPU utilization for an application, do I refer to the "sys" or "usr" column under the heading "cpu" from the vmstat output?
Could anyone help me out?
Thanks
I would like to get the memory used (in MB) for a particular running application with vmstat (see output from vmstat).
I would like to obtain the active memory of a particular application by specifying the -a option:
bash-2.03$ vmstat -a 10 10
Usage: vmstat [-cipsS] [disk ...] [interval [count]]
bash-2.03$ vmstat -a 10 10
May I know how I could obtain the active memory from vmstat? Also, I'd like to verify if by getting the active memory would tell me the amount of memory consumed(in MB) for an application?
As for the CPU utilization for an application, do I refer to the "sys" or "usr" column under the heading "cpu" from the vmstat output?
Could anyone help me out?
Thanks
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 12:26 AM
08-24-2005 12:26 AM
Re: vmstat - getting memory and CPU utlization
Hi Danny ,
vmstat will give virtual memory statistics , and you can check paging/swapping and cpu usage as well.
Use top command to check Memory usauge , for the processes. You can also use ps -ef , with grep also , for top process.
Cheers.
Raj
vmstat will give virtual memory statistics , and you can check paging/swapping and cpu usage as well.
Use top command to check Memory usauge , for the processes. You can also use ps -ef , with grep also , for top process.
Cheers.
Raj
" If u think u can , If u think u cannot , - You are always Right . "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 12:56 AM
08-24-2005 12:56 AM
Re: vmstat - getting memory and CPU utlization
vmstat is not for calculating memory usage of a process. It is tool for looking at overall system memory usage.
You can check a memeory usage of a process as follows.
UNIX95= ps -C"process_name" -o "vsz,args,ppid,pid"
The value of vsz is in KB.
you can also do
ps -lp"process_pid" and check SZ columns. (the value here is in pages. Ususally the page size is 4096 bytes)
You can check a memeory usage of a process as follows.
UNIX95= ps -C"process_name" -o "vsz,args,ppid,pid"
The value of vsz is in KB.
you can also do
ps -lp"process_pid" and check SZ columns. (the value here is in pages. Ususally the page size is 4096 bytes)
There is no substitute to HARDWORK
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP