I have a web server(Solaris) that is running apache, mysql and nodejs. It is constantly near the max usage of the 1gb physical memory, here's an example from virtualmin:
Webmin version 1.520
Virtualmin version 3.81.gpl GPL
Theme version 7.8
Time on server 28/Jun/2011 17:58 Kernel and CPU SunOS 5.11 on i86pc
CPU load averages 2.21 (1 min) 2.16 (5 mins) 2.07 (15 mins)
Running processes 141
Real memory 1024 MB total, 934 MB used
Virtual memory 2 GB total, 1.29 GB used
Local disk space 16.13 GB total, 2.86 GB used
and here is a sample from top command:
load averages: 2.44, 2.39, 2.19;
up 3+22:11:31 18:02:47 142
processes: 140 sleeping, 2 on cpu CPU
states: 76.3% idle, 16.1% user, 7.6%
kernel, 0.0% iowait, 0.0% swap
Memory: 32G phys mem, 1072M free mem,
76G total swap, 76G free swap PID
After googling "server memory usage solaris" I think I should be ok as long as my swap space isn't full? But I'm not too sure and wanted to get inputs on my situation.
echo ::memstat | mdb -k
andps -ef
for the revelant processes (include headers). Also, do you use ZFS on this machine? It could use all available memory for ARC (but it releases it if other parts of the system request).