DEVFYI - Developer Resource - FYI

When to Use the Throughput Collector?

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

431. When to Use the Throughput Collector?

Use the throughput collector when you want to improve the performance of your application with larger numbers of processors. In the default collector garbage collection is done by one thread, and therefore garbage collection adds to the serial execution time of the application. The throughput collector uses multiple threads to execute a minor collection and so reduces the serial execution time of the application. A typical situation is one in which the application has a large number of threads allocating objects. In such an application it is often the case that a large young generation is needed

(Continued on next question...)

Other Interview Questions