Patent ID: 7672983
Filing Date: 2010-03-02
Classification: G06F

Abstract:
1. A method for tracking activity of a garbage collector with a plurality of garbage collector threads that operate concurrently with an operation of an application program during a time window on a computer system having a number of processors, the method comprising: for each of the plurality of garbage collector threads, computing a percentage of the time window during which that garbage collector thread is scheduled for operation; dividing each percentage computed by the number of processors to obtain a plurality of adjusted percentages; summing the plurality of adjusted percentages to obtain a total overhead percentage; multiplying the total overhead percentage computed by a duration of the time window in order to determine a garbage collection time attributable to the plurality of garbage collector threads during the time window; adjusting the activity of the garbage collector to include the garbage collection time attributable to the plurality of garbage collector threads during the time window and a garbage collection time attributable to a stop-the-world (STW) garbage collection pause; and adjusting a maximum pause time allowed for the STW garbage collection pause.