Fine tuning the JVM
If you are working on a Java/J2EE project one thing that you need to keep in mind is the check on memory and running the web/app server with proper memory parameters. When the JVM (Java Virtual Machine) detects that the garbage collector cannot clear anymore objects because there is none that has no reference and the physical memory limit available for the JVM has been reached, the JVM throws a out of memory error and the application crashes. The optimal mode in which your application can run in the production environment is through fine tuning the JVM parameters. Any J2EE application server has to be started with the java command only just like how you would run a HelloWorld program. A specific class is the starting point to the whole application server. For example this document “Tuning Java Virtual Machines (JVMs)” talks about the fine tuning of JVM for performance in BEA Weblogic server. The concept is almost the same and can be applied for any application server.











