Grokking Java Interview Questions
Vote

0% completed

​

JVM Flags and GC Tuning

A container has a memory limit of 512 MB, and a Java service runs in it without any memory flag. The JVM sets the maximum size of the heap to 128 MB, which is 25 percent of the limit. The other 384 MB are available for everything outside the heap, which is often more than a small service needs. With one flag, -XX:MaxRAMPercentage=75, the maximum becomes 384 MB.

The four questions start with the flags that set such limits. They continue with the log of the collector and a method for tuning, and the last question explains the numbers of the container.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content