Re: What is using the memory
- From: "Herta Van den Eynde" <herta.vandeneynde@xxxxxxxxx>
- Date: Fri, 29 Jun 2007 01:18:32 +0200
On 28/06/07, George Thompson <george@xxxxxxx> wrote:
> On 26/06/07, George Thompson <george@xxxxxxx> wrote:Not sure if that helps you, but "Mapped" refers to devices, files, and
>> Running RHEL4
>>
>> We are uing weblogic which has three java proceses. The sum of the
>> percentage memory used of these processes is about 42% .
>>
>> ps -aux | grep java | gawk '{ print $11, $4}'
>> /opt/od-home/OpenDeployNG/jre/bin/java 0.3
>> /opt/java/liveJava/bin/java 24.2
>> /opt/java/liveJava/bin/java 18.1
>>
>>
>> If I do ps -aux and add up all the %cpu coulums it totals about 45%. Yet
>> when i look at sar -r
>>
>> sar -r | gawk '{ print $1, $2, $5}' | head
>> 12:00:01 AM %memused
>> 12:10:01 AM 99.76
>> 12:20:01 AM 99.72
>>
>> It seems to think the memory is 99% used. But I cant see any other
>> processes in the process table using any significant memory.
>>
>> Here is the contents of /proc/meminfo . I dont fully understand what all
>> the entries mean.
>>
>> [root@web1]/etc# cat /proc/meminfo
>> MemTotal: 8164748 kB
>> MemFree: 164748 kB
>> Buffers: 108356 kB
>> Cached: 478412 kB
>> SwapCached: 38628 kB
>> Active: 3690740 kB
>> Inactive: 409064 kB
>> HighTotal: 0 kB
>> HighFree: 0 kB
>> LowTotal: 8164748 kB
>> LowFree: 164748 kB
>> SwapTotal: 16779884 kB
>> SwapFree: 16643592 kB
>> Dirty: 2508 kB
>> Writeback: 0 kB
>> Mapped: 3529560 kB
>> Slab: 185824 kB
>> CommitLimit: 20862256 kB
>> Committed_AS: 7658544 kB
>> PageTables: 13484 kB
>> VmallocTotal: 536870911 kB
>> VmallocUsed: 271300 kB
>> VmallocChunk: 536599035 kB
>> HugePages_Total: 0
>> HugePages_Free: 0
>> Hugepagesize: 2048 kB
>> [root@weblogic1]/etc#
>>
>> Our customer is asking us to explain what is using the memory and we
>> have
>> no answer.
>>
>> George
>
> If you'd like a more detailed explanation than Joseph's reply, check
> out http://gentoo-wiki.com/FAQ_Linux_Memory_Management or use your
> favorite web browser and search for "linux memory management".
>
> Kind regards,
>
> Herta
>
Thanks, in this case the big user of memory appears to be the "Mapped"
entry in meminfo. I have neither seen or read anything which explains the
rather large value !
G
libraries which have been mmaped (memory mapped) into pagetables.
(Cf. http://en.wikipedia.org/wiki/Mmap)
Without knowing your application, it'd be hard to judge whether
3529560 kB out of 8164748 kB is reasonable or not.
Kind regards,
Herta
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- What is using the memory
- From: George Thompson
- Re: What is using the memory
- From: Herta Van den Eynde
- What is using the memory
- Prev by Date: Re: What is using the memory
- Next by Date: Re: Best Motherboard?
- Previous by thread: Re: What is using the memory
- Next by thread: PPTP Clients Running Behind a RH EL 4 Firewall
- Index(es):
Relevant Pages
- Re: [PATCH 0/8][for -mm] mem_notify v6
... > Here's a test program that allocates memory and frees on notification.
... CommitLimit: 63804 kB ... VmallocChunk: 908976 kB ... (Linux-Kernel) - Re: Possible Bug in VM accounting (Committed_AS) on x86_64 architecture ?
... malloc() returns -ENOMEM. ... VmallocChunk: 536601679 kB ... It
allocates memory of different sizes (not that it matters much due ... for 32 bit architecture?
... (Linux-Kernel) - RE: la la la la ... swappiness
... memory out the way we want it, the only rogue player is the tar update ...
desperate and not only set swappiness to zero but I've also tried setting ... VmallocChunk:
113584 kB ... (Linux-Kernel) - Re: [RFC 0/6] Backing Store for sysfs
... I guess some cache entries aged dropped out of existence. ... I guess more cache
entries will be removed if I put memory pressure on the ... SwapFree: 1355416 kB
... VmallocChunk: 4294137796 kB ... (Linux-Kernel) - Re: 3GB out of 4GB on RHEL4 U2
... Article Reference Article ID: 6229 ... the BIOS: ... In BIOS I
can see total 4GB memory ... > VmallocChunk: 61940 kB ... (RedHat)