In Oracle's G1 GC document, G1 GC does not recommend tuning JVM options because throughput and latency are stable.
However, I could not find a page in the document that how appropriate server heap size should be. purpose of the server and the amount of traffic vary. It can be a simple Restful API, or it can be a long time consuming task. Therefore, the heap size should be different depending on the server application. Also, if the heap size is insufficient, Full GC will occur multiple times and eventually cause serious problems.
- How do you determine the appropriate initial heap size?
- When should you increase the heap size?
- Are there methods and tools to monitor abnormal signs?