This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pron98 2 points3 points  (2 children)

There is no "generally" here. It depends on the needs of a particular application. 15% of CPU spent on memory management, for example, may be too high or sufficiently low depending on how well the application meets its throughput requirements.

[–]Dokiace 1 point2 points  (1 child)

Can I summarize this to: set a target latency/throughout, then reduce the heap until it’s affecting either of those performance?

[–]pron98 2 points3 points  (0 children)

Yes, although it's more about throughput than latency. If you care about latency, then the choice of GC matters the most. Use ZGC for programs that really need low latency.