I have a java app running in a docker with flags on OpenJDK8: -XX:+UseContainerSupport -XX:MaxRAMPercentage=80.0 -XX:NativeMemoryTracking=summary and I’ve noticed that Code Cache memory allocation …
Tag: jvm-hotspot
Difference between “native” keyword and @HotSpotIntrinsicCandidate annotation
Why use one over another and vice-versa? Which is more performant? Answer The javadoc comments for the @HotSpotIntrinsicCandidate annotation say the following: “The @HotSpotIntrinsicCandidate annotation is specific to the HotSpot Virtual Machine. It indicates that an annotated method may be (but is not guaranteed to be) intrinsified by the HotSpot VM. A method is intrinsified if the HotSpot VM replaces
How to properly set the G1GC options for a server with 22G heap
I’m setting up a new JAVA server, the heap size is set to 22G, and would use the G1GC algorithm. I’ve read all the oracle documents, and believe this is what we need, but still have a few questions: 1&…