04-08-2010 01:37 PM - edited 02-21-2020 03:55 AM
Hi guys, I have a CAM´s failover installed. I had seen high utilization of the ram memory in the 2 appliances. The utilization is higher than 80%. Anyone knows what is the cause for this memory use?
Also, I have a NAC Profiler integrated with these CAM's.
Regards
Gerard
Solved! Go to Solution.
04-08-2010 11:55 PM
Gerard,
Your system looks fine. Linux utilizes the free/unused memory to cache data, and hence the free memory reported might seem very low, but it's being used by the kernel to actively use it for caching. As/When it's needed, the kernel releases memory for the processes to use, so this is normal. If you want to look at what processes are using the most memory try this command:
ps auwwwx | awk '{print$4"\t"$11'} | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr
The output will show you the process with the most memory being used. For example on a test CAM here was the output of the command listed above:
14.3 1 /usr/java/jdk1.6.0_12/bin/java
0.8 1 /usr/sbin/httpd.worker
0.7 1 /usr/sbin/httpd.worker
0.6 1 /usr/sbin/httpd.worker
0.6 1 postgres:
0.5 1 postgres:
0.5 1 heartbeat:
Meaning Java was taking the most memory.
HTH,
Faisal
04-08-2010 03:38 PM
Gerard,
What process is taking up the memory? Issue the top command in a shell/console session and post the output.
Faisal
04-08-2010 06:07 PM
04-08-2010 11:55 PM
Gerard,
Your system looks fine. Linux utilizes the free/unused memory to cache data, and hence the free memory reported might seem very low, but it's being used by the kernel to actively use it for caching. As/When it's needed, the kernel releases memory for the processes to use, so this is normal. If you want to look at what processes are using the most memory try this command:
ps auwwwx | awk '{print$4"\t"$11'} | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr
The output will show you the process with the most memory being used. For example on a test CAM here was the output of the command listed above:
14.3 1 /usr/java/jdk1.6.0_12/bin/java
0.8 1 /usr/sbin/httpd.worker
0.7 1 /usr/sbin/httpd.worker
0.6 1 /usr/sbin/httpd.worker
0.6 1 postgres:
0.5 1 postgres:
0.5 1 heartbeat:
Meaning Java was taking the most memory.
HTH,
Faisal
04-09-2010 12:37 PM
Thanks Faisal, your explanation is perfect.
Regards
Gerard
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide