Copyright © 2004, Aonix
25
How to Pace Garbage Collection
•Objective: make sure the garbage collector gets enough CPU time, and no more, to always stay ahead of the allocation needs of your application
•Technique:
–Determine maximum live-memory needs of application
–Measure the steady state allocation rate of application
–Measure total CPU time required to perform GC (bounded for the PERC VM)
–Perform schedulability analysis and configure the VM to dedicate appropriate CPU time to GC
–Heuristic refinement: Monitor parameters continuously and make configuration adjustments as necessary