摘要 |
A method to reduce the latency caused by garbage collection in a Java Virtual Machine (JVM) wherein different machines (MC 1, MC 2, MC 3 ) are running consecutive tasks (P 1 , P 2 , P 3 ) of an application. Because instances of a garbage collector (GC 1 , GC 2 , GC 3 ) have to run on each machine and interrupt the task running then on that machine, their starts are synchronized to optimize the impact on the latency of the application's response. In other words, because the tasks of the application run successively on different machines, the garbage collector (GC) affects the operation of only one machine by starting all its instances simultaneously on all the machines, i.e. by synchronizing the instances of the GC tasks. Each machine may be of the multi-processor type (CPU 1 , CPU 2 , CPU 3 ) whereby the operation of all the processors is interrupted when an instance of the garbage collector is running on one of these processors.
|