Skip to main content

How to allocate more memory to the Flexi server?

Increasing Memory for ABRA Flexi Server

Written by Petr Pech

If you work extensively with the REST API or web access, the application server may run out of memory. This error typically manifests as an OutOfMemory or Heap Space error.

The default memory size is 2 GB.

How to add more memory?

You need to append the parameter -Xmx4g (where 4g is the memory size) at the end to override the default value.

Windows

Edit the server.txt file located in the C:\Program Files (x86)\Winstrom\ or C:\Program Files\Winstrom\ directory.

Add the parameter -Xmx4g.

Mac OS X

Create the file /etc/default/flexibee and add:

FLEXIBEE_SERVER_JAVA_ARGS="${FLEXIBEE_SERVER_JAVA_ARGS} -Xmx4g"

Linux

Edit the file /etc/default/flexibee and add:

FLEXIBEE_SERVER_JAVA_ARGS="${FLEXIBEE_SERVER_JAVA_ARGS} -Xmx4g"

Java memory configuration is in most cases individual and depends on how the respective Java application is used. If you would like to learn more about how Java manages memory and how to configure its various parameters, you can refer to the following resource.

When making more advanced changes to the parameters, we recommend monitoring the current memory usage and garbage collection using this tool.

Did this answer your question?