
14 Java Stand-alone Applications on z/OS Volume II
When a Java program makes a request for storage and the JVM is unable to
comply, an allocation failure occurs. This allocation failure triggers the Garbage
Collection process. Garbage Collection is the process of automatically freeing
objects that are no longer referenced by the program.
It is better to avoid very frequent Garbage Collections. Tune the Garbage
Collection frequency by specifying enough heap size for your program. Giving
your program too much heap size will most likely lead to other resource
problems, so try to find some balance.
A good approach would be to use the
verbosegc paramete ...