Tune Memory Usage Run this command:
ps -eo pid,ppid,rss,vsize,pcpu,pmem,cmd -ww --sort=pid
There are two elements that are useful when determining the per process memory usage. They are:
A graph of RSS per unit time will show how much RAM the process is using over time.
Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database. The frontend is completely PHP driven. Along with being able to maintain Graphs, Data Sources, and Round Robin Archives in a database, cacti handles the data gathering. There is also SNMP support for those used to creating traffic graphs with MRTG.