Child pages
  • Memory Management

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For more information on configuring the Service component, see Running the server as a service

...

Manual start: servoy_server.bat/.sh (or starting it as a Servoy cluster)

...

When starting the Servoy Application Server manually through {serverInstall}\application_server\servoy_server.bat/.sh, the memory settings for the Application Server can be configured inside servoy_server.bat/.sh, by altering the -Xmx value:

Code Block
java -Djava.awt.headless=true -Xmx1280m -Xms64m -XX:MaxPermSize=128m .....

...

Starting in Servoy Cluster: start_servoy_clustered.bat/.sh

...

.

...

.

...

Code Block

-Xmx256m -Xms64m -XX:MaxPermSize=128m
Note
titleSpecifying -Xmx and -Xms values

When specifying the -Xmx and -Xms values, the following needs to be taken into account:

  • The value can only be an integer value
  • The value needs to be places directly behind the parameter, no spaces or equal signs
  • The value needs to be post fixed with the unit: "m" or "M" for megabytes, "g" or "G" for gigabytes
  • When changing the -Xms options,  make sure that the -Xmx option has a higher value
  • Both values need to be lower than the available memory on the machine

By default the servoy server start files (wrapper or sh/batch) files will have the maximum configured of 1280m, it could be that this is to high for small servers, then you could get this errror:

"Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit."

please lower then the Xmx value to something that your server can handle.

...