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@openjdk.java.net
https://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use

Reply via email to