Why do I get "java.lang.OutOfMemoryError" exception in Java
The following error might occur at runtime when using EasyXLS Excel library for Java:
Exception in thread "<thread name>" java.lang.OutOfMemoryError: Java heap space
Reason: Java Virtual Machine not set to use enough memory
Java Runtime Environment (JRE) uses 64M of memory at runtime by default and your computer performances are not used at maximum potential. The memory heap size must be increased by using -mx option when running the Java application. Run the application with:
How to configure the extra mx parameter depends on the environment used by the application like Eclipse, JBuilder, ColdFusion server, Tomcat, and so on.