I got some researh to do about linux. One of the questions is the folowing:
'Is it possible that on a running system the output of the command free in the free column is the same for the first 2 rows? How can you force this?'
I googeled around, and I believe I've found the meaning of these values.
A few days ago my linux apache server ran out of memory. The server is a xen guest. The server killed all my processes except ssh.
A minute before it ran out of memory, a script of mine saved the output of various commands.
I wanted to know the Red Hat Linux command for cumulative disk space usage and the free space as df h gives used and free space individually for the drives. Or, a command to check free space on the server would also be fine.
I hope, my question is clear.
Please revert with the reply to my query.
Regards
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
OS:Xen Cloud Platform 1.1 (XCP) modified centos, and xen server 5.0 running on intel i5
free -m
total used free shared buffers cached
Mem: 309 136 172 0 1 17
-/+ buffers/cache: 117 191
Swap: 511 7 504
df -h
none 380M 0 380M 0% /de
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 have two servers, server1 and server2. Both of them are identical HP blades, running the exact same OS (RHEL 5.5).
I want to clear all caches via command line on linux, how do you do this?
Mem: 1033200k total, 175560k used, 857640k free, 5880k buffers
Swap: 2097144k total, 0k used, 2097144k free, 70804k cached
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