« November 2005 | Main | April 2006 »

February 23, 2006

Resolving OutOfMemory exceptions

If you are hitting OutOfMemory problems using FireStorm/DAO then it is because the Java Virtual Machine (JVM) does not have enough memory allocated.

If you are using Windows platform then you can use the following command line parameters to control how much memory to give the JVM. This example specifies an initial size of 256MB and a maximum size of 512MB but you may want to use larger numbers.

firestorm.exe -J-Xms256M -J-Xmx512M

If you want to launch using the jar files directly and bypass the .exe (or if you are on Linux/Mac) you will need to ensure that you have log4j and jdom jars (that ship with FireStorm/DAO) in your classpath and use the command line:

java -Xms256M -Xmx512M -jar firestorm.jar