Java environment

The Java Runtime Engine (JRE) used by webPDF can be found in the "jre/" subfolder. As of this writing, OpenJDK 11 is the implementation being 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

 

 

hint

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="-Xmx2048m -Xms1024m ..."

 

webpdf.service

 

ExecStart=/opt/webpdf/jre/bin/java -Xmx2048m -Xms1024m ...

 

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