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.

use the "top" command, and look under the %MEM column... this is a linux question though, not a c++ question.

Dave

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 ??)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.