Running the JVM in server mode

The Sun Java Virtual Machine (JVM) used by Content Delivery services can run in Client or Server mode. You can run Java applications using the server virtual machine by modifying the jvm.cfg file

About this task

By default, Java applications and applets run in Client Mode as the service will initially run faster. However, for long-term use it is recommended to run the JVM in Server Mode. Running the JVM in server mode will improve the performance of Windows Services, such as the Content Deployer and the Cache Channel Service.

Procedure

  1. Open jvm.cfg for editing, which is in one of the following subdirectories of your Java home directory (typically found as the value of the JAVA_HOME environment variable on your machine):
    • On a 64-bit installation: lib\amd64\
    • On a 32-bit installation: lib\i386\
  2. Change the following lines:
    -client KNOWN
    -server KNOWN

    to:

    -server KNOWN
    -client KNOWN
  3. Save and close jvm.cfg.

Results

As a result, the server Virtual Machine will be run for all applications with the exception of applications that are run with the -client argument.

Note that you can also configure these options in the registry, see Configuring the JVM for Windows services and .NET Web applications.