Follow the guidelines below to configure the dedicated job services server using p6services.jar:
- Copy the p6services.jar from the p6home directory where you installed P6 to a node that will use job services.
- Ensure a supported JRE is in the system path. (See the Tested Configuration for supported JREs.)
- Open a new command line or terminal window.
- Navigate to the folder where p6services.jar was copied (for example, c:\jobservices).
- Run the services application by entering
java -Xms<MEMORY SIZE> –Xmx<MEMORY SIZE> –jar p6services.jar
in the window. (See the P6 EPPM Performance and Sizing Guide for the correct value for the <MEMORY SIZE> setting for your environment. The settings in the example are the recommended values.)The line should look similar to the following:
java -Xms4096m –Xmx4096m –jar p6services.jar
If you are using Sun JDK, it should look similar to the following:
java -server -Xms4096m –Xmx4096m –jar p6services.jar
- If a BREBootStrap.xml file is in the USER_HOME, you can specify the location to the BREBootstrap.xml file by adding the following line:
Note:
- USER_HOME refers to your home directory. For example, in Windows it could be C:\Users\<USER_NAME> or C:\Documents and Settings\<USER_NAME>; in UNIX, it could be /home/<USER_NAME>.
- If this is the first time you are launching p6services.jar, and a BREBootStrap.xml file does not exist in the USER_HOME, the database configuration wizard will launch. Skip to the next step.
–Dprimavera.bootstrap.home=
<BOOTSTRAP_LOCATION>The line should look similar to the following:
java -Xms4096m –Xmx4096m –Dprimavera.bootstrap.home=
<BOOTSTRAP_LOCATION>-jar p6services.jar
where <BOOTSTRAP_LOCATION> is the location where the BREBootStrap.xml is located (for example, C:/USER_HOME).
- If your organization needs to use Unicode characters, add to the JAVA_OPTS variable -Dfile.encoding=UTF-8
The line should look similar to the following:
java -Xms4096m –Xmx4096m –Dprimavera.bootstrap.home=
<BOOTSTRAP_LOCATION>-Dfile.encoding=UTF-8 -jar p6services.jar
where <BOOTSTRAP_LOCATION> is the location where the BREBootStrap.xml is located (for example, C:/USER_HOME).
- If this is the first time you are launching p6services.jar, and a BREBootStrap.xml file does not exist in the <USER_HOME> directory (or <BOOTSTRAP_HOME> directory if the primavera.bootstrap.home is specified), the database configuration wizard will launch.
Follow the steps in Changing Database Connection Settings for P6.
Create a new configuration when The Installer has detected... dialog box appears and give this new configuration a distinct name. For example, if you chose "P6 Users" for the configuration name for the server accepting user traffic, name the new configuration "P6 Job Services."
Note: Create a new configuration for Job Services to ensure optimal database performance. Job Services could slow down performance if it is part of the same configuration.
- In the Primavera P6 Administrator:
- Locate the Services/Enable All Services setting for the configuration created for the job services server (for example, P6 Job Services). Set the setting to true to enable all services.
- Locate the Services/Enable All Services setting for the configuration created for user traffic (for example, P6 Users). Set the setting to false to disable all services.