- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to get the total memory usage used by one proc...
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
10-26-2003 10:05 PM
10-26-2003 10:05 PM
I have a server running asoftware which spawn off numerous processes with one common userID. I have also perfview installed.
How to find out how much memory is used by one particular user?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2003 10:11 PM
10-26-2003 10:11 PM
Re: how to get the total memory usage used by one process user
with comand:
top
you can read the column SIZE for any process.
This tell you total size of process in kb and
this include text, data and stack.
Hope this help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2003 10:22 PM
10-26-2003 10:22 PM
Re: how to get the total memory usage used by one process user
UNIX95= ps -ef -o vsz,args,user|grep root
will do.
glance will the correct output.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2003 10:25 PM
10-26-2003 10:25 PM
Re: how to get the total memory usage used by one process user
ps -elf | grep "user_id" | awk 'BEGIN {total=0} { total+=$9 } END {printf "Total=%u\n",total}'
Gives total in bytes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2003 10:29 PM
10-26-2003 10:29 PM
Re: how to get the total memory usage used by one process user
ps -elf | grep user | awk 'BEGIN {total=0} { total+=$10 } END {printf "Total=%u\n",total}'
Gives total in bytes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2003 10:37 PM
10-26-2003 10:37 PM
Re: how to get the total memory usage used by one process user
You either need to use grep -v grep to avoid getting the grep process itself, or a better option is to use
ps -u
as this negates the grep requirement
eg:
ps -flu
or
UNIX95= ps -u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 11:09 AM
10-27-2003 11:09 AM
SolutionThe attached program reports both RAM and virtual memory sizes. It divides the size of shared memory segments by the number of processes that have them attached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 08:33 PM
10-27-2003 08:33 PM
Re: how to get the total memory usage used by one process user
where i can get the doc "KBAN00000700" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2003 03:22 PM
12-15-2003 03:22 PM
Re: how to get the total memory usage used by one process user
I compiled your prog. Can you tell me the desc for each of the memory colume and how are they related to each other like shared_vm, shared_ram, private_vm, private_ram and res_mem... does res_mem = shared_ram + private_ram?