Reputation: 51
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.
Upvotes: 2
Views: 507
Reputation: 533820
I would
How do you determine the appropriate initial heap size?
What is the size the application grows to almost immediately? If you benchmark with larger sizes does it appear to help?
When should you increase the heap size?
WHen after determining your application doesn't have a memory leak, and is reasonably tuned, the server needs more memory or would run faster if it had more memory.
Are there methods and tools to monitor abnormal signs?
For a tool you can run continuously, you could start with jstat
Upvotes: 1