NAC Manager high memory issue

Answered Question
Apr 8th, 2010

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

Correct Answer by Faisal Sehbai about 6 years 10 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Faisal Sehbai Thu, 04/08/2010 - 15:38

Gerard,

What process is taking up the memory? Issue the top command in a shell/console session and post the output.

Faisal

gerardtorin Thu, 04/08/2010 - 18:07

Hi Faisal, I tried with the top command, but I couldn´t see what is the process taking more memory. I´m attaching the output from the 2 CAMs.

Is there a way to see more information about the memory consumed?

Regards

Gerard

Attachment: 
Correct Answer
Faisal Sehbai Thu, 04/08/2010 - 23:55

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

Actions

This Discussion