Modifying setDomainEnv for Applications Deployed on Administration Servers
Use these instructions for each P6 EPPM application that you deploy on an administration server.
To edit the setDomainEnv file:
- Navigate to
<WebLogic_Home>/user_projects/<Domain_Home>/binand make a backup copy of thesetDomainEnv.cmd(on Windows)setDomainEnv.sh(for UNIX). - Edit the
setDomainEnvfile. - After
%WL_HOME%/common/bin/commEnv.cmd"(on Windows)${WL_HOME}/common/bin/commEnv.sh(on UNIX), enter the following arguments as necessary in the order that they appear:-server-Dprimavera.bootstrap.home=<P6_EPPM_BootStrap_Home>where
<P6_EPPM_BootStrap_Home>is the home directory ofBREBootStrap.xml. If you do not have aBREBootStrap.xmlfile for your P6 EPPM implementation, you can create one by creating a P6 EPPM configuration using the Database Configuration wizard. For more information about using the Database Configuration wizard, see the P6 EPPM Database Administration Guide.-Ddatabase.instance=db_idInclude this argument to establish a default database connection for P6 Team Member, P6 EPPM Web Services, and P6 Integration API if you use more than one database instance. You do not need to set this argument for P6.
-Dweblogic.webservice.i18n.charset=utf-8(Optional) Include this argument to allow WebLogic to process UTF-8 characters.
-Djava.awt.headless=true(With UNIX only) Include this argument if you are deploying P6 EPPM on a non-graphical UNIX environment. This argument sets the server's JVM to bypass server-side rendering optimizations. If you do not add the argument, you may not be able to see graphics on pages and the server logs will report NoClassDefFoundError errors.
-Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory(Optional) Include this argument for improved performance when starting the WebLogic domain.
- -
Xms -Xmx(Optional) Include this argument to set the initial and maximum heap size.
As a general rule, set the initial heap size (
-Xms) equal to the maximum heap size (-Xmx) to minimize garbage collection. -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=19(Optional) Include this argument if you are running Publication Services on a larger database.
-Xloggc:<Log_Path>Include this argument to collect garbage logs if you have memory issues on JVM.
For example:
(With Windows)
-server -Dprimavera.bootstrap.home=<P6_EPPM_Home>-Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory -Xms2048m -Xmx2048m -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=19 -Xloggc:<Log_Path>(With UNIX)
-server -Dprimavera.bootstrap.home=<P6_EPPM_Home> -Djava.awt.headless=true-Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory -Xms2048m -Xmx2048m -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=19 -Xloggc:<path to the log file>Note If you use additional arguments that are not listed here, be sure to list them in the correct sequence for your environment.
- Save and Close the file.
- Restart the admin server.
Related Topics
Configuring WebLogic for P6 EPPM
Creating a Domain with Servers
Adding Applications and Help to Managed Servers
Product-Specific Configurations
Last Published Wednesday, February 25, 2026