Skip to main content
Version: 9.0

Java environment

The Java Runtime Engine (JRE) used by webPDF can be found in the "jre/" subfolder. Actually the OpenJDK is used.

Following are the configuration options for the Java VM (JVM) that webPDF needs in order to run.

Windows

In Windows, the JVM needs to be configured with the two files with the ".vmoptions" extension (ASCII files). These two files are found in the server's installation directory.

webPDF.vmoptions - Java settings when the server is run as a normal (console) application (under Windows or Linux).
webPDF.service.vmoptions - Java settings when the server is run as a Windows service.

These files contain the (line-by-line) options for the Java Virtual Machine (JVM).

Example: The following two settings are used to set the memory settings for the JVM ("-Xmx" and "-Xms" options).

# Memory settings  
-Xmx4096m
-Xms512m
tip

If you want to convert large files or run many converter instances at the same time, you will have to change this memory setting.

Linux

The settings for the JVM for webPDF in Linux are configured directly in webpdf.sh or webpdf.service (depending on the init system being used). You will find the following line there:

webpdf.sh
javaOpt="-Xmx4096m -Xms1024m ..."
webpdf.service
ExecStart=/opt/webpdf/jre/bin/java -Xmx4096m -Xms1024m ...

You can use this line to customize the settings for the Java environment.