DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   *nix Software (http://www.daniweb.com/forums/forum111.html)
-   -   Linux RAM (http://www.daniweb.com/forums/thread162250.html)

cloudedvision Dec 14th, 2008 3:57 pm
Linux RAM
 
Is there a way to find how much RAM the application is using up (including external libraries), how much RAM in total is being used on the system and how much RAM the system has installed? This is all on linux.

daviddoria Dec 14th, 2008 8:41 pm
Re: Linux RAM
 
use the "top" command, and look under the %MEM column... this is a linux question though, not a c++ question.

Dave

StuXYZ Dec 14th, 2008 9:04 pm
Re: Linux RAM
 
Quick comment:

Top can show the total memory (although it actually sorts on CPU until you set the options )

pmap PID

Shows the total memory, including a breakdown of stack/heap memory and all the shared libraries used.

[PID :: process id (use ps to find it) It is a number ]

(Can this be moved to linux questions ??)


All times are GMT -4. The time now is 6:44 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC