Patent ID: 7716451

Claim:
A method for memory tuning for garbage collection and central processing unit (CPU) utilization optimization, the method comprising: benchmarking an application across multiple different candidate heap sizes to accumulate garbage collection metrics; utilizing the garbage collection metrics accumulated during benchmarking to compute both CPU utilization and total garbage collection time for each of a selection of candidate heap sizes; matching one of the candidate heap sizes to a desired CPU utilization and garbage collection time; and, applying the matched one of the candidate heap sizes to a host environment; wherein CPU utilization for each selected candidate heap size is computed as a number of CPU seconds used for garbage collection at a corresponding candidate heap size divided by a number of threads involved in the garbage collection; and wherein total garbage collection time for each selected candidate heap size is computed as a base garbage collection time divided by a number of threads involved in the garbage collection combined with an average sweep time for the garbage collection.