Child pages
  • Memory Management

Versions Compared

Key

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

...

The Perm Space is the space used by Java to store objects that are long lived. As such this space will .....the loaded classes and other static things, so if you have many plugins and support libs, it is possible that this should be increased. The setting related to the Java Perm Space is only the following.

...

Code Block
wrapper.java.additional.4=-XX:MaxPermSize=128m
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=32
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=2561280

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

...

Code Block
java -Djava.awt.headless=true -Xmx256mXmx1280m -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 configures of 1280m, it could be that this is to high for small servers, and you 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."
By default the servoy server start files (wrapper or sh/batch) files will have the maximum configures of 1280m, it could be that this is to high for small servers, and you 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 your server can handle.

32bit Java Memory assignment limitation

...