|
|
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.
If the -server option is
better for server oriented workloads, are there any other server
oriented options? The answer to this is yes:
the option is -XX:+AggresiveHeap. This option is described in the Java 1.4.2 whitepaper and in the Tuning Guide for 1.4.2.
The idea of this option is that, in conjunction with -server, users have a simple way of telling the JVM that the application is a server workload.
Steps to follow
-server -XX:+AggresiveHeap
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)
system.gc() calls (based on our experience in Exercise 9).Summary
When should you use -server -XX:+AggresiveHeap?
Whenever you have a server oriented workload it is a good idea to test
these options. Even though these options are often used together
they can be used completely independently.
But the heap sizes are
wildly oversized? But perhaps I don't want the parallel
collector? You can still get some of the benefits of
AggressiveHeap by selectively overriding the things you do and don't
want... In fact, that is the subject of Exercise 12.
Next Steps
This lab documentation is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.