Odd OS-level memory reporting for Java
Todd Lipcon
todd at cloudera.com
Thu Jan 7 18:24:22 UTC 2016
Note that linux counts mapped files as RSS if they're paged in. Maybe try
something like summing up the various different memory types from
/proc/<pid>/smaps ? eg:
$ cat /proc/$(pgrep java)/smaps | perl -mData::Dumper -n -e 'if
(/(.+):\s+(\d+) kB/) { $sum{$1} += $2; } END { print
Data::Dumper::Dumper(\%sum); }'
$VAR1 = {
'Rss' => 475148,
'Shared_Dirty' => 20,
'Locked' => 0,
'MMUPageSize' => 2128,
'Shared_Clean' => 9660,
'Size' => 2860292,
'Private_Dirty' => 459248,
'KernelPageSize' => 2128,
'Swap' => 0,
'Referenced' => 472196,
'Anonymous' => 459240,
'Pss' => 465681,
'AnonHugePages' => 444416,
'Private_Clean' => 6220
};
On Thu, Jan 7, 2016 at 9:18 AM, Yu Zhang <yu.zhang at oracle.com> wrote:
> With 8u66, can you switch to g1gc and see if it has the same issue? Trying
> to understand if it is G1GC vs CMS, or different jdk version
>
> Thanks,
> Jenny
>
> On 1/7/2016 9:08 AM, Shawn Heisey wrote:
>
> It is probably worth mentioning that I have another Linux machine
> running Java 8u66 and Solr 5.3 with CMS GC (the same settings that I
> just listed for my Win7 desktop machine) is **not** showing the same SHR
> and RES inflation:
>
>
>
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>
>
--
Todd Lipcon
Software Engineer, Cloudera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20160107/38c23556/attachment.html>
More information about the hotspot-gc-use
mailing list