The objective of this workshop is to sensitize the choice of memory spaces of the JVM, based on a generational GC. We have applied the SUN JDK. Set the size of the memory areas of the JVM depends on the application, the creation cycle of application objects and requires an understanding "detailed" the operation of the GC. The parameters to give the JVM of an application supporting a batch are not the same as those of a transactional web application. To illustrate the effects of the size of memory areas of the JVM, we deliberately used a simple example and available: the famous Swing Java2D demo. The principle of the workshop is simple: use the application Java2D (included in the jdk JAVA_HOME%% / demo/jfc/Java2D) with different parameters of the JVM and interpret the results.
Experiments of this can be done on Solaris, Linux and Windows: Where the Sun JDK Hotspot works. Simply install a later version JDK 5.0. The tests were performed with JDK 1.0.0 build 17. Note that the JDK which includes the "demos" is necessary - a JRE is not enough. Set environment variables JAVA_HOME. Download if needed visualgc. Now you're ready to start the workshop. Handling memory spaces of the younger generation.