DEVFYI - Developer Resource - FYI

What is AggressiveHeap?

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

427. What is AggressiveHeap?

The -XX:+AggressiveHeap option inspects the machine resources (size of memory and number of processors) and attempts to set various parameters to be optimal for long-running, memory allocation-intensive jobs. It was originally intended for machines with large amounts of memory and a large number of CPUs, but in the J2SE platform, version 1.4.1 and later it has shown itself to be useful even on four processor machines. With this option the throughput collector (-XX:+UseParallelGC) is used along with adaptive sizing (-XX:+UseAdaptiveSizePolicy). The physical memory on the machines must be at least 256MB before AggressiveHeap can be used.

(Continued on next question...)

Other Interview Questions