we have a server with 8GB, running mysql, 4 java applications and a small postgres db.
In my Ubuntu 11.10 VPS, Before I run the jar file:
# free -m
total used free shared buffers cached
Mem: 256 5 250 0 0 0
-/+ buffers/cache: 5 250
Swap: 0 0 0
Run a jar file that limited to maximum of 32M memory:
java -Xms8m -Xmx32m -jar ./my.jar
Now the memory
I have two servers, server1 and server2. Both of them are identical HP blades, running the exact same OS (RHEL 5.5).
The following three outputs were taken essentially simultaneously:
top:
top - 02:54:36 up 2 days, 13:50, 3 users, load average: 0.05, 0.05, 0.09
Tasks: 181 total, 1 running, 179 sleeping, 0 stopped, 1 zombie
%Cpu(s): 2.5 us, 0.8 sy, 0.0 ni, 96.6 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 16158632 total, 11234480 used, 4924152 free, 844 buffers
KiB Swap: 16777212 total,
can anyone tell me where the memory is gone:
(no, this time neither buffers nor cache)
# free
total used free shared buffers cached
Mem: 3928200 3868560 59640 0 2888 92924
-/+ buffers/cache: 3772748 155452
Swap: 4192956 226352 3966604
top, sorted by memory, descending:
top - 13:42:06 up 1 day, 3:47, 2 u
i would like to get the value -/+ buffers/cache used who is 212, how can i do this?
i have free -m | grep -i mem | awk '{ print $2 }' for get value of total memory
total used free shared buffers cached
Mem: 7972 1237 6735 0 465 558
-/+ buffers/cache: 212 7760
Swap: 8001 0
Since upgrading to Kubuntu 12.10 I am experiencing huge slowdown after a couple of days of uptime. The problem is that ubuntu is not releasing cached RAM as expected.
I have 8Gb of RAM of which only 1.5 are used, the rest is cache.
My Redhat server shows the following:
free -m
=============
total used free shared buffers cached
Mem: 8113 8078 35 0 171 6491
-/+ buffers/cache: 1415 6698
Swap: 8189 59 8130
Is 35 mega of free memory considered critical on a production server ?
My centos 5.7 is running Magento.