Shawn,
On 2/9/23 17:18, Shawn Heisey wrote:
On 2/9/23 12:54, Christopher Schultz wrote:
It would be unusual for the OS to reclaim any of that memory from the
JVM process. Are you looking at OS heap usage, or "JVM heap" usage?
From your description above, it's tough to tell. The tool is called
WRKJVMJOB so presumably it knows what the heck a JVM is, so maybe you
were getting the exact numbers I was recommending.
TL;DR: I have seen Java return memory to the OS.
Oh, that's interesting. I'm somewhat happy to see that happening, honestly.
On the other hand, if the JVM allocates heap, it should probably hold on
to it; it's likely to need it later.
On the Oracle JVM, I think that happens with G1GC when -Xms is less than
-Xmx.
That would make sense. I typically run server processes where Xms == Xmx.
I think G1 is the only collector in Java 8 that does this, but I
can't say that for sure. I don't see anything in the thread about
precise JVM options.
Someone mentioned the J9 JVM, and I don't know if that behaves the same
as Oracle.
I'm sure in this case, it's some wily IBM JVM version, since this is AS/400.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org