Huge resident size despite small heap

Stefan Reich stefan.reich.maker.of.eye at googlemail.com
Mon Mar 28 15:31:14 UTC 2022


Hi Shawn - interesting, but that's not it...
https://botcompany.de/images/1103113

SHR is 63 MB, RES 7440 MB

On Mon, 28 Mar 2022 at 17:22, Shawn Heisey <java at elyograg.org> wrote:

> On 3/27/22 15:14, Stefan Reich wrote:
> > I am noticing that a long running server process eventually (after a
> > few days) grows enormously in its resident size. Right now it is at 7
> > GB. Performing a GC doesn't get it any lower.
>
> I've seen this with Java before, specifically with Solr.  In "top" the
> RES size for the Solr process would get abnormally huge.  But I also saw
> SHR get large.  Subtracting SHR from RES would yield the expected amount
> of memory usage.
>
> I know it has to be a reporting problem, not a case of Java taking more
> than it was allowed.  I know this because when I took the entire output
> from "top" into consideration (including the disk cache) it all added up
> to a lot more memory than the machine actually had.  But if I viewed
> actual memory usage as RES minus SHR, it would all add up correctly.
>
> I've also seen this on Windows servers.
>
> Thanks,
> Shawn
>
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> https://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>


-- 
== Gaz.AI ==
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20220328/e2ffdf27/attachment.htm>


More information about the hotspot-gc-use mailing list