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.
For most applications
tuning the permanent generation is optional. However if you want
to optimize your application for memory consumption then tuning the
perm gen will be a very important step. Remember, the space used
by the perm gen is NOT counted when you set the maximum heap (with
-Xmx).
Steps to follow
compiler=
|
. You will see the Java 2D Demo application start.... ![[Stop]](Stop.png)
Summary
How do you know when the
perm gen is too small? If the application doesn't start or
crashes with an out of memory exception.
Why
is a perm gen that is too small a
problem? If the permanent generation is too small there won't be
enough room for the JVM to load the jars and classfiles that comprise
the application itself. Even if the there is enough memory on the
heap, the JVM can't operate without enough space to dynamically
interpret (profile hotspots and possibly compile) your application code.
Next Steps
This lab documentation is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.