01-11-2003
Hello All,
A few questions on same topic.
The memory resident info obtained either from ps (rss) or 'top' (RES) adds upto what is more than actual RAM.
I believe this is due to shared memory mapping of the processes.
So what is the best method to identify the actual ( can I call it as effective ) memory usage/consumption by the processes ?
The 'pmap -x pid' gives information under tabs of Kbytes / Resident / Shared and Private.
Is an arithmetic exercise on these fields give the correct information ?
( Pls look at this info
#ps -e -o pid,vsz,rss grep 21941 gives an output like,
PID VSZ RSS
21941 136168 116408
and the #pmap -x 21941 give the summary as ,
(Kb) (Resident) (Shared) (Private )
total Kb 135424 122320 16736 105584
Any clue why the memory info is different... Which one is *more* correct . ? )
Appreciate your reply. This will clear a lot of confusion on memory usage...
Thanks in advance...
10 More Discussions You Might Find Interesting
1. Programming
how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries
through a c program or java program
i want to store that data into database so i can show it graphically
thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
2. Programming
Please tell me solaris functions/api for getting following information
1- Function that tells how much memory used by current process
2- Function that tells how much memory used by all running processes
3- Function that tells how much CPU is used by current process
4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies
3. HP-UX
Refer from title:
How can i get memory used or anything that can show memory from sar file
example on solaris:-
we can use sar with option to show memory used at time that sar crontab run.
on HP-UX, it not has option to see memory used. But i think it may be have some parameter or some... (1 Reply)
Discussion started by: panithat
1 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Does anyone know what the best commands in the UNIX command line are for obtaining this info:
current CPU usage
memory usage
virtual memory usage
preferably with date and time parameters too?
thanks
ocelot (4 Replies)
Discussion started by: ocelot
4 Replies
5. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
6. Solaris
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies
7. Solaris
Hi,
I'm running a multi-process software system on a Solaris 8 machine. When I monitor the memory usage, I see that the free memory is dropping rapidly, but I can't detect a process that uses this memory.
I'm using "top" to get the free memory and the memory usage of processes.
Thanks. (3 Replies)
Discussion started by: gewurtz
3 Replies
8. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
Can you please tell me the command, with which one can know the amount of space a specific directory has used.
df -k . ---> Displays, the amount of space allocated, and used for a directory.
du -k <dir name> - gives me the memory used of all the files inside <dir>
But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies
10. UNIX for Dummies Questions & Answers
Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies
LEARN ABOUT DEBIAN
passenger-memory-stats
passenger-memory-stats(8) Administration Commands passenger-memory-stats(8)
NAME
passenger-memory-stats - reports a snapshot of the Apache and Phusion Passenger memory statistcs
SYNOPSIS
passenger-memory-stats
DESCRIPTION
passenger-memory-stats allows you to easily analyze the real memory usage of Phusion Passenger and Apache.
Process inspection tools such as ps and top are useful, but they rarely show the correct memory usage. The real memory usage is usually
lower than what ps and top report.
There are many technical reasons why this is so, but an explanation is beyond the scope of this page. We refer the interested reader to
operating systems literature about virtual memory and copy-on-write.
When you run this tool the Private or private dirty RSS field shows the real memory usage of processes.
ENVIRONMENT VARIABLES
HTTPD The full filename to the Apache executable. By default, Passenger will attempt to autodetect the Apache executable. If autodetection
fails for whatever reason, then Apache processes will not be shown in the memory statistics. In that case, you may manually specify
the location to the Apache executable using this environment variable.
SEE ALSO
passenger-status(8), ps(1), top(1),
User guide at http://www.modrails.com/documentation.html
AUTHOR
Phusion Passenger is written by Phusion (http://www.phusion.nl)
"Phusion" and "Phusion Passenger" are trademarks of Hongli Lai & Ninh Bui.
This manual page was written by Neil Wilson <neil@brightbox.co.uk> for the Ubuntu project (but may be used by others).
Phusion Passenger 2.0 passenger-memory-stats(8)