- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to intrepret SIZE & RES on the TOP screen?
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
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
05-30-2003 05:39 AM
05-30-2003 05:39 AM
Thanks & regards,
Kelvin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 05:43 AM
05-30-2003 05:43 AM
Re: How to intrepret SIZE & RES on the TOP screen?
From man top:
SIZE Total size of the process in kilobytes.
This includes text, data, and stack.
RES Resident size of the process in kilobytes.
The resident size information is, at best,
an approximate value.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 05:47 AM
05-30-2003 05:47 AM
SolutionYou can monitor for memory leaks from the command line. Assuming your process is running in background or as a daemon, identify the PID by:
# ps -ef | grep
# # Note the PID
# #
# # in what
# # follows.
# export UNIX95=1 # Turns on XPG4
# # behavior of 'ps'
# # (needed for -o
# # option to work)
Now display physical and virtual size of the process:
# ps -p
If there is a memory leak, the values of sz (physical pages used) and vsz (virtual pages used) will gradually increase while the code executes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 05:49 AM
05-30-2003 05:49 AM
Re: How to intrepret SIZE & RES on the TOP screen?
If you suspect memory leaks, one way to look for culprits is to watch for growth in the amount of memory consumed by a process:
# 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
05-30-2003 05:50 AM
05-30-2003 05:50 AM
Re: How to intrepret SIZE & RES on the TOP screen?
RES is the amount of that process's VM actually loaded into RAM.
If a process has a memory leak, the SIZE will continually increase.
See the man page for top for more details. Also look at ps as a way to get info about a process's memory usage.
Also check out process accounting (man 1m acct)