EasyXLS

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:

java -mx512m

How to configure the extra mx parameter depends on the environment used by the application like Eclipse, JBuilder, ColdFusion server, Tomcat, and so on.

For more details see:

https://community.oracle.com/message/6462037

Contact us for any other reasons

If none of the above, contact us at support@easyxls.com with details about your application configuration and the full error message.


Available for: Professional, Excel Writer, Excel Reader, Express Excel Writer
Go to top

EasyXLS Excel libraries:

Java
Java Excel Library
full Java version to import, export or convert Excel files
Java Excel Writer
Java version to create and export Excel files
Java Excel Reader
Java version to read and import Excel files
Java Express Excel Writer
limited Java version to create and export Excel files in predefined formats
Download EasyXLS™ Excel Library for Java

File formats:

MS Excel 97 - 2003
MS Excel 2007 - 2019
MS Excel 2021
Office 365
XLSXXLSMXLSBXLS
XMLHTMLCSVTXT