How to set a JVM property for all the Jobs executed by a JobServer on Windows

Problem Description

In some cases, it is necessary to set a JVM property, for example -Dfile.encoding=UTF-8, for all Jobs executed by a JobServer.

 

Solution

For the JobServer Windows Service created by the installer:

  1. Edit the wrapper.conf file located in the folder \jobserver\TalendServices\conf, and add the line:
    wrapper.app.env._JAVA_OPTIONS=-Dfile.encoding=UTF-8

    Under the paragraph:

    #*******************************************************************
    # Application environment properties.
    #*******************************************************************
    # Adds an environment to the application

    Example:

    #*******************************************************************
    # Application environment properties.
    #*******************************************************************
    # Adds an environment to the application
    wrapper.app.env._JAVA_OPTIONS=-Dfile.encoding=UTF-8
  2. Restart the JobServer.

 

For a JobServer created with jsl_static64.exe:

  1. In the file jsl_static64.ini, add the following to the beginning of the file:
    [defines]
    _JAVA_OPTIONS=-Dfile.encoding=UTF-8
    export=_JAVA_OPTIONS
  2. Restart the JobServer.
Version history
Revision #:
4 of 4
Last update:
‎09-29-2018 12:18 AM
Updated by: