2nd Circle of Hell: Lust. Here lies programmers overcome by lust, that created objects over 500 KB in size.
In this chapter, we will begin our performance tour with the Java Virtual Machine (JVM) tuning. As you know, every Java application requires a JVM environment to be executed and the JBoss application server is no exception.
With every new release of Java, many improvements have been made at all levels of the runtime system including in the garbage collector, in the code, in the VM handling of objects and threads, and in the compiler optimizations.
We have now got a much faster Virtual Machine but at the price of enhanced complexity due to the increase of the available algorithms and options. Therefore, our primary goal will be to simplify the management of the Virtual Machine and concentrate our efforts on the fixes that will surely pay good dividends such as Java heap and garbage collector settings.
Summing up, this chapter is organized into...