Editing the setDomainEnv File for P6

Previous TopicNext TopicContents

Use these instructions if you will deploy P6 in the Admin Server instead of a managed server. To continue configuring WebLogic for P6, edit the setDomainEnv file:

  1. Make a backup copy of the setDomainEnv file in case you need to undo any changes.
  2. Right-click the setDomainEnv file and select Edit.
  3. Locate the line that begins with one of the following:
  4. Add a new JAVA_OPTIONS= line below the line you located to set the Primavera bootstrap variable (it should be all one line with no space between "-" and "Dprimavera").
  5. For improved performance when starting the P6 domain in WebLogic, add the following JVM argument (as all one line) immediately after the Primavera bootstrap variable with one space between them:

    -Djavax.xml.stream.XMLInputFactory=weblogic.xml.stax.XMLStreamInputFactory

  6. (For Unix servers) If you don't have a graphical environment installed, you must set the server's JVM to bypass server-side rendering optimizations. If you don't add the argument, you may not be able to see graphics on pages, and the server logs will report NoClassDefFoundError errors.

    Add this JVM argument (as all one line) immediately after the previous variable with one space between them:

    -Djava.awt.headless=true

    For example, in Unix:

    JAVA_OPTIONS="${JAVA_OPTIONS} -Dprimavera.bootstrap.home=p6home -Djavax.xml.stream.XMLInputFactory=weblogic.xml.stax.XMLStreamInputFactory" -Djava.awt.headless=true

  7. If using the Sun JDK:
    1. Add new memory settings to maximize performance and increase the JVM MaxPermSize setting to avoid Out-of-Memory errors. (The MaxPermSize setting should be set to at least 256m.) To do this, add a USER_MEM_ARGS line so you can set the following values for NewSize, MaxNewSize, MaxPermSize, SurvivorRatio, total Initial size (-Xms), and Maximum heap size (-Xmx):

      -XX:NewSize=256m -XX:MaxNewSize=256m -XX:MaxPermSize=256m -XX:SurvivorRatio=8 -Xms2048m -Xmx2048m

      Add the line immediately below the JAVA_OPTIONS line you created (all one line):

      • In Windows, the line should look similar to the following:

        set USER_MEM_ARGS=-XX:NewSize=256m -XX:MaxNewSize=256m -XX:MaxPermSize=256m -XX:SurvivorRatio=8 -Xms2048m -Xmx2048m

      • In Unix, the line should look similar to the following:

        USER_MEM_ARGS="-XX:NewSize=256m -XX:MaxNewSize=256m -XX:MaxPermSize=256m -XX:SurvivorRatio=8 -Xms2048m -Xmx2048m"

    2. (Optional) If using the Sun JDK and running PX services on a larger database, change the JVM parameters to increase the GC Time Ratio; add the following JVM setting to the USER_MEM_ARGS line (as all one line):

      -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=19

      Notes:

      • Be sure to include a space before the -XX:+ specification. Properties after the bootstrap can be in any order.
      • R8.2 can run publication services through the P6 EPPM Extended Schema. See "Improved Reporting and Publication Services (R8.2)" in the new features guide, or "Configuring P6 for Reporting" and "Working with Publication Services for Reporting" in the Connecting BI Publisher to P6 guide for more information on Publication Services.
      • In Windows, the line should look similar to the following:

        set USER_MEM_ARGS=-XX:NewSize=256m -XX:MaxNewSize=256m -XX:MaxPermSize=256m -XX:SurvivorRatio=8 -Xms2048m -Xmx2048m -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=19

      • In Unix, the line should look similar to the following:

        USER_MEM_ARGS="-XX:NewSize=256m -XX:MaxNewSize=256m -XX:MaxPermSize=256m -XX:SurvivorRatio=8 -Xms2048m -Xmx2048m -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=19"

    3. (Optional) If you are having memory issues on the JVM, collect garbage logs by using the following parameter as all one line immediately after the previous line:

      -Xloggc:path to the log file

      • In Windows, the line should look similar to the following:

        -server -Dprimavera.bootstrap.home=p6home -Djavax.xml.stream.XMLInputFactory=weblogic.xml.stax.XMLStreamInputFactory -XX:MaxPermSize=256m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:SurvivorRatio=8 -Xms2048m -Xmx2048m -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=19 -Xloggc:path to the log file

      • In Unix, the line should look similar to the following:

        -server -Dprimavera.bootstrap.home=p6home -Djavax.xml.stream.XMLInputFactory=weblogic.xml.stax.XMLStreamInputFactory -XX:MaxPermSize=256m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:SurvivorRatio=8 -Xms2048m -Xmx2048m -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=19 -Xloggc:path to the log file

    4. Set the Java Virtual Machine by entering a variable for JAVA_VM. Add the line immediately below the USER_MEM_ARGS line you created.
      • In Windows, the line should look similar to the following:

        set JAVA_VM=-server

      • In Unix, the line should look similar to the following:

        JAVA_VM="-server"

  8. If using the JRockit JDK, modify memory settings to maximize performance. To do this, add a USER_MEM_ARGS line so you can set the following values for total Initial (-Xms) and Maximum heap (-Xmx) size.

    Add the line immediately below the JAVA_OPTIONS line you created (all one line):

  9. Save the changes to the setDomainEnv file and close it.
  10. Stop and restart the Admin Server.

Related Topics

Setting Arguments for P6

Setting Arguments in the WebLogic Administration Console



Legal Notices
Copyright © 1999, 2016, Oracle and/or its affiliates. All rights reserved.

Last Published Thursday, February 04, 2016

PDF Library