- Make sure that the heap never pages.
- To optimize memory usage, analyze verbose:gc
trace.
- Aim for less than 10% execution time in GC.
- For optimal performance, the heap should be run with 50% - 60%
occupancy.
- Avoid finalizers.
- Avoid compaction.
- Analyze requests for large memory allocations and devise a
method for reusing the object.
