Java Out Of Memory ExceptionsPermanent link for this heading

Last update: 13 September 2018

InformationPermanent link for this heading

Each Fabasoft Folio Kernel instance starts it's own Java Environment to process Java code and also 3rd-party Java libraries. Although the Java environment is running inside of the Fabasoft Folio Kernel process, it has it's own memory management.

If the Java environments runs out of memory processing a request, an error message similar to java.lang.OutOfMemoryError: Java heap space is thrown to the Eventlog or Webservice log. This occurs when the Java environment has to handle large amounts of data.

Situations where this error may occur:

  • Converting documents, e.g. conversions to PDF on the conversion server
  • Merging PDF documents, e.g. for the PDF overview on the web server
  • Handling large amounts of data within SOAP calls

With Fabasoft environment variables it is possible to control the size of Java's heap (memory) size.

SolutionPermanent link for this heading

The default memory limit used by the Fabasoft Folio Kernel is 512 MByte (before 2016 UR7: 256 MB). To adjust this limit, create the following Fabasoft Environment variable.

Best practice to create new Fabasoft Environment variables is to edit the coomk.upd and cooprep.upd files on your server (web, conversion,...):


For the changes to take effect, please restart all Fabasoft Kernel instances on the server. You can further enlarge the limit to fit your needs. The Java memory management will use as many memory as requested. Java's garbage collector will reduce the actually assigned memory if it is not used anymore.

DetailsPermanent link for this heading

This Java environment is started with the following memory default parameters:

Initial minimum heap size: 64 MByte (corresponds to the Java parameter -Xms64m)

Maximum heap size: 512 MByte (before 2016 UR7: 256 MB) (corresponds to the Java parameter -Xmx512m)

All Fabasoft Environment variables, including all Java memory parameters, are listed in the Fabasoft White Paper "Fabasoft Folio Environment Variables" included in your installation kit.

Download PDF

Download PDF