Chapter 4. JVM Memory
This chapter looks at some of the things we can do to tune the memory settings of the Java Virtual Machine (JVM). We will look at how to perform the following actions:
Increasing the JVM heap size
Setting Xmx and Xms to the same value
Setting the size of the Permanent Generation heap
Calculating the total memory used by your application
Viewing the memory used using JRMC for JRockit
Viewing the memory used using VisualVM for HotSpot
Setting the size of the thread stack