Chapter 8. Java problem determination 131
– The other reason that can result into an OutOfMemory situation is Java
heap fragmentation. One way to avoid this is to start with a small minimum
heap (Xms). It is better to set Xms far lower than Xmx, or to leave Xms at
the default value (although this may not help with all fragmentation
issues).
– Memory leaks also result in Java heap exhaustion. Generally this is an
application bug, but it is also possible that JVM could be causing a
memory leak. The best way to start the analysis of these issues is to
analyze the heapdump generated. There are various tools available to
analyze the heapdumps; refer to the following site:
http://www-1.ibm.com/support/docview.wss?uid=swg24009436
A detailed description ...