Child pages
  • Tuning the Server

Versions Compared

Key

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

...

Java has 2 distinct operating modes: client mode and server mode. When running in server mode, the startup of the Java process will take longer and initial execution of code will be slower, but after a while the application will perform faster. the The server mode is best suited for the Servoy Application Server.

Java will Whether or not a Java Virtual Machine supports client and/or server mode depends on the hardware, see [http://download.oracle.com/javase/6/docs/technotes/guides/vm/server-class.html|http://download.oracle.com/javase/6/docs/technotes/guides/vm/server-class.html].

If the JVM supports servermode, it will automatically detect if the machine it is running on is a "capable" machine and automatically run in server or client mode depending. The definition of "capable" may differ from Java version to java Java version. For Java 6 this means a 2CPU, 2Gb memory machine (http://download.oracle.com/javase/6/docs/technotes/guides/vm/server-class.html )..

Checking whether or not a Servoy Application Server runs in client or server mode can be seen on the Servoy Admin page, under "Servoy Server Home" > "Servoy Server Status" > "JDK Information":
* Server mode: java.vm.name=Java HotSpot(TM) 64-Bit Server VM
* Client mode: java.vm.name=Java HotSpot(TM) Client VM

It is possible to enforce the Servoy Application Server to run in server mode (assuming the JVM is capable to operate in server mode), an extra startup argument can be added to the startup of the Servoy Application Server.

In servoy_server.sh/bat:

When using the Service wrapper:

Note
JVM servermode on windows 32-bit
JVM servermode on windows 32-bit

On Windows 32 bit environments

however

, the Java Runtime Environment does not include support for server mode. In order to take advantage of server mode optimizations on 32 bit windows systems, it is required to install Java Development Kit (JDK)

When running

...

Memory

Processes in Java, like the Servoy Application Server, need to be told explicitly the maximum of memory they are allowed to use. This setting, the maximum heap size, is important to adjust to the load the Servoy Application Server is to handle.

...