Java on Jitterbit private agents
Introduction
The private agent Tomcat server uses version 8 (1.8) of the OpenJDK Java Runtime Environment (JRE). This is provided by the agent installation package.
You can use an alternative JRE, but Jitterbit supports only the bundled one.
This page shows you how to do the following:
Change the default JRE
The provided JRE is in JITTERBIT_HOME/jre
. To use an alternative, follow these steps:
-
Install your JRE.
-
Set the
JRE_HOME
environment variable. How you do this depends on the private agent's platform type:In
/etc/sysconfig/jitterbit
, setJRE_HOME
to the full path of your JRE.Add a system environment variable
JRE_HOME
. Set its value to the full path of your JRE. -
Restart the private agent.
Manage Java KeyStores
The host-based Jitterbit applications (private agents, Design Studio, and Data Loader) use a trusted Java KeyStore file, JITTERBIT_HOME/jre/lib/security/cacerts
, for secure communications. By default, all certificates are accepted. To manage the keystore, use the keytool command, as shown in the following example commands (where JITTERBIT_HOME
is the private agent installation location):
-
List the KeyStore's certificates:
$JRE_HOME/bin/keytool -list \ -keystore JITTERBIT_HOME/jre/lib/security/cacerts
Tip
The default password is
changeit
. -
Validate certificates:
jitterbit-utils --verify-proxy-cert
JitterbitUtils --verify-proxy-cert
-
Change the default KeyStore password to
PASSWORD
:$JRE_HOME/bin/keytool -storepasswd PASSWORD \ -keystore JITTERBIT_HOME/jre/lib/security/cacerts
-
Add certificates from
CERT_FILE
:$JRE_HOME/bin/keytool -importcert -trustcacerts \ -alias ALIAS -file CERT_FILE \ -keystore JITTERBIT_HOME/jre/lib/security/cacerts
Tomcat heap memory
To set the Tomcat server's heap memory, follow these steps:
-
Set the
JAVA_OPTS
environment variable. How you do this depends on the private agent's platform type:In
/etc/sysconfig/jitterbit
, setJAVA_OPTS
to the desired minimum and maximum heap memory sizes using the Java command line options-Xms
and-Xmx
. In the following example, the minimum size is 512 MB, and the maximum is 2048 MB:Exampleexport JAVA_OPTS="-Xms512m -Xmx2048m"
-
Open the Registry Editor and find the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\Jitterbit Tomcat Server\Parameters\Java
-
Open the Options subkey.
- In the Value data field, change the Java options for
-Xms
and-Xmx
. - Click Ok.
-
-
Restart the agent.