DWP Advanced/MyIT - Tuning JVM Settings

Version 1
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    BMC Digital Workplace Advanced


    APPLIES TO:

    DWP Advanced



    QUESTION:

    This will depend on the concurrent users on the system.

    Please, take a look to the below docs for more information on the matter.

    https://docs.bmc.com/docs/display/dwpadv1811/BMC+Digital+Workplace+Configuration+Settings
    https://docs.bmc.com/docs/display/dwpadv1811/Sizing+and+scalability+considerations


    ANSWER:

     

    NOTE:
    This will work on OpenJDK11 and Oracle JRE 1.8, not JDK with JRE.

      
    The following version will not work properly with these settings and will cause multiple issues with DWP My Activity.  
       

    /usr/java/jdk1.8.0_191-amd64/jre/bin/java

       

    java version "1.8.0_191"

       

    Java(TM) SE Runtime Environment (build 1.8.0_191-b12)

       

    Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

      
       


    These are the minimum required values. Increase these two as needed:

      

    -Xms6144m

      

    -Xmx6144m

      


    Please, make sure you have something like this:

    WINDOWS

    -
    Go to  C:\Program Files\Apache Software Foundation\Tomcat8.5\bin\
    -Double click on tomcat8w
    -Go to the JAVA Tab


    NOTE:  You need to replace the paths with your current Tomcat paths.

    In Java Options tab, add the below:

    -Dcatalina.home=C:gram Files\Apache Software Foundation\Tomcat8.5-Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat8.5}
    -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat8.5\endorsed
    -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat8.5\temp
    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
    -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat8.5\conf\logging.properties
    -Xms6144m
    -Xmx6144m
    -XX:NewRatio=2
    -XX:+UseCompressedOops
    -XX:+UseConcMarkSweepGC
    -XX:+UseParNewGC
    -XX:+IgnoreUnrecognizedVMOptions
    -XX:MaxMetaspaceSize=1024m
    -XX:MetaspaceSize=512m
    -XX:NewSize=512m
    -XX:MaxNewSize=1024m
    -XX:+CMSParallelRemarkEnabled
    -XX:+UseCMSInitiatingOccupancyOnly
    -XX:CMSInitiatingOccupancyFraction=70
    -XX:+ScavengeBeforeFullGC
    -XX:+CMSScavengeBeforeRemark
    -XX:ErrorFile=C:\Program Files\Apache Software Foundation\Tomcat8.5.0\logs\hs_err_pid%p.log
    -XX:+HeapDumpOnOutOfMemoryError
    -XX:HeapDumpPath=C:\Program Files\Apache Software Foundation\Tomcat8.5\logs

      
    Initial Pool Memory: 6144 
    Maximum Memory Pool: 6144 
    Thread Stack Size: 512 

    -Click Apply and OK 
    -Restart Tomcat 


    LINUX

    -
    Edit  /opt/apache/tomcat8.5/bin/setenv.sh 


    #Place this file to your %CATALINA_BASE%/bin
    # Do not try to setup following as env variables. They need to be configured in %CATALINA_BASE%/bin/setenv.sh 
    export CATALINA_OPTS="-Dlog4j.configuration=file:${CATALINA_BASE}/external-conf/log4j-config.xml  
      -Xmx6144m
    -Xms6144m
    -XX:NewRatio=2
    -XX:+UseCompressedOops
    -XX:+UseConcMarkSweepGC
    -XX:+UseParNewGC
    -XX:MetaspaceSize=512m
    -XX:NewSize=512m
    -XX:PermSize=512m
    -XX:MaxNewSize=1024m
    -XX:+ScavengeBeforeFullGC
     
      -XX:+IgnoreUnrecognizedVMOptions 
      -XX:+CMSParallelRemarkEnabled
    -XX:+CMSScavengeBeforeRemark
    -XX:+UseCMSInitiatingOccupancyOnly
    -XX:CMSInitiatingOccupancyFraction=70
    -XX:MaxMetaspaceSize=512m
    -XX:+HeapDumpOnOutOfMemoryError"
    export CLASSPATH=${CATALINA_BASE}/external-conf${CLASSPATH}
    export JAVA_OPTS="$JAVA_OPTS -Datsso.log.dir=$CATALINA_BASE/logs"
    export JAVA_OPTS="$JAVA_OPTS -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true"
    export JAVA_OPTS="$JAVA_OPTS -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true"
    export JAVA_OPTS="$JAVA_OPTS -Dlogback.ContextSelector=JNDI"
    export CATALINA_OPTS="$CATALINA_OPTS -Dorg.springframework.boot.logging.LoggingSystem=none"
    export CATALINA_OPTS="$CATALINA_OPTS -XX:+IgnoreUnrecognizedVMOptions"
      
    export JAVA_HOME=/usr/java/jre1.8.0_92 
    export JRE_HOME=/usr/java/jre1.8.0_92 
    export JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.config.file=/opt/apache/tomcat8.5/conf/logging.properties" 

    -Save 
    -Restart Tomcat 

     


    Article Number:

    000166463


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles