|
|
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.
In Exercise 4 we
examined how having a poor NewRatio between young gen and the overall
heap size can cause performance degradation. In this exercise we
will determine when we simply do not have enough space.
Steps to follow
compiler=
|
. You will see the Java 2D Demo application start.... ![[Stop]](Stop.png)
![[Exercise05-Java2DemoLog]](Exercise05-Java2DemoLog.png)
Summary
How do you know old gen is
really too small? You application may not start, it may hang, or
it may crash. You will almost certainly see out of memory errors
in the log file. You probably will notice that most of the CPU
utilization is very high, spending nearly all of its time in GC.
Why
is a heap that is too small a
problem? Obviously if the application cannot start or run at all you have a big problem.
Next Steps
This lab documentation is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.