Where's my memory going on ?

Asked by Ivan wong

The free command shows I used a lot of memory
free -m
             total used free shared buffers cached
Mem: 63800 62821 978 0 48 2794
-/+ buffers/cache: 59979 3821
Swap: 22989 3270 19719

----------------------------------------------------------
but I use ps_mem.py (https://raw.github.com/pixelb/ps_mem/master/ps_mem.py) to count my app used memory

  2.4 GiB + 2.8 MiB = 2.4 GiB java
---------------------------------
                          2.5 GiB
=================================

root@ubuntu:/tmp# df -h|grep shm
none 32G 0 32G 0% /run/shm

shm used 32G ,app used 2.5G ,slab used 6.5G.
I have no HugePages.
I run 'sync&&echo 3 > /proc/sys/vm/drop_caches'. It doesn't look like I have a huge cache.

So,where's my memory going on ?

My os version:
root@ubuntu:/tmp# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
root@ubuntu:/tmp# uname -r
3.2.0-93-generic

-----------------------------------------------------------
cat /proc/meminfo
MemTotal: 65331452 kB
MemFree: 696240 kB
Buffers: 49860 kB
Cached: 3157536 kB
SwapCached: 358948 kB
Active: 2947712 kB
Inactive: 4528344 kB
Active(anon): 2398892 kB
Inactive(anon): 440084 kB
Active(file): 548820 kB
Inactive(file): 4088260 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 23541752 kB
SwapFree: 20197284 kB
Dirty: 111812 kB
Writeback: 0 kB
AnonPages: 2562660 kB
Mapped: 18768 kB
Shmem: 1540 kB
Slab: 6545040 kB
SReclaimable: 240500 kB
SUnreclaim: 6304540 kB
KernelStack: 3368 kB
PageTables: 25056 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 56207476 kB
Committed_AS: 6508200 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 391884 kB
VmallocChunk: 34325260484 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 94208 kB
DirectMap2M: 12414976 kB
DirectMap1G: 54525952 kB

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

top -n 1

Thanks

Revision history for this message
Ivan wong (ivanwa) said :
#2

Sorry , I only have history picture. Today the server was down .

https://mega.nz/#!FxIQwK4K!EcH1BU4FKxSaQPkki4qlsAOOyP5bBneBIYHlm3C5_0U

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

The output is text. You can just copy and paste it as text as an update....

You are using Java but you aren't using much RAM at all.

I'd suggest reading this:
http://www.linuxatemyram.com

Revision history for this message
Ivan wong (ivanwa) said :
#4

I know the output is text.But today the erver failure, can't boot up. I only have top history picture.

https://mega.nz/#!FxIQwK4K!EcH1BU4FKxSaQPkki4qlsAOOyP5bBneBIYHlm3C5_0U

I have read this : http://www.linuxatemyram.com

I know disk cache eat my memory. But I can't find what's the app eat my memory.

 I use ps_mem.py (https://raw.github.com/pixelb/ps_mem/master/ps_mem.py) to count my app used memory. It only used 2.5G!

Can you help with this problem?

Provide an answer of your own, or ask Ivan wong for more information if necessary.

To post a message you must log in.