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.




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




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




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


javaOpt="-Xmx2048m -Xms1024m ..."




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


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