JLupin Next Server starts on the following Java virtual machine parameters:

  1. Main server:

It uses the settings located in start-up files - SERVERHOMEstart
start.cmd, start.sh, start_debug.cmd, start_debug.sh, start_nohup.sh.
Important sections for JVM's parameters configuration are:

For cmd files: SET JAVA_OPTS
For sh files: JAVA_OPTS

In place of the foregoing variables we can enter all variables which are interpreted by JVM.

Default parameters are:
For the cmd files:

SET JAVA_OPTS= -Xms128M -Xmx512M

For the sh files:

JAVA_OPTS="-Xms128M -Xmx512M"
  1. Local applications' servers:

Settings for specific applications are located in the JLupinGlobalMultiProcessConfigurationImpl configuration file in the public JLupinMultiProcessManager getJLupinMultiProcessManager() method.

JLupinLocalServerProcessConfigurator objects are responsible for the configuration of specific applications. Let us observe start-up JVM
parameters (variables which are set by setter methods: primaryJvmOptions (first application start-up), secondaryJvmOptions (parameters used after application restart, after next restart the primaryJvmOptions variables are loaded))

jLupinSecondSampleApplication.setPrimaryJvmOptions("-Xms128M -Xmx256M");
jLupinSecondSampleApplication.setSecondaryJvmOptions("-Xms128M -Xmx256M");

In this function You can set all JVM options as example below:

jLupinSecondSampleApplication.setPrimaryJvmOptions  ("-Xms128M -Xmx256M -XX:NewRatio=3 -XX:ParallelGCThreads=4 -XX:NewSize=3m -XX:+UseLargePages");
jLupinSecondSampleApplication.setSecondaryJvmOptions("-Xms128M -Xmx256M -XX:NewRatio=3 -XX:ParallelGCThreads=4 -XX:NewSize=3m -XX:+UseLargePages");