Learning goals of this exercise
In this exercise you will learn:
Background for this exercise
Please see Exercise 1 for an overview of running
the javaperf GUI launcher.
Applications often have
different requirements. Perhaps overall throughput is most
important. Perhaps minimizing GC pause times is important.
That's why the JVM gives you a choice of different garbage collection
algorithms. In this exercise we will experiment with using the
concurrent garbage collector as described in the
Tuning
Garbage Collection with the 5.0 Java™ Virtual Machine
document.
Your application may simply
perform better with the throughput collector or the low pause time
collector. The best way to find out is to test it!
Steps to follow
compiler=-server
|
. You will see the Java 2D Demo application start.... Immediately click on the "Transforms" tab.
Then click into the "Shear" area so it fills the entire window.![[Stop]](Stop.png)
Summary
The concurrent collector can reduce the GC pause times for your application.
How should survivor spaces
be sized and how should you set the maximum tenuring threshold to take
advantage of them? That is the subject of the next exercise,
Exercise 14.
Next Steps
This lab documentation is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.