Edit setDomainEnv.sh
Modify the setDomainEnv.sh to configure the WebLogic Administration Server and DMWServer. Oracle recommends the following settings for production use. Be careful to insert text as directed before or after the located sections.
-
Stop the Administration Server.
-
Log in to the system, change to the domain\bin directory, and open setDomainEnv.sh in an editing tool.
-
Add a parameter named
-DdmwWebService
to JAVA_OPTIONS and set its value to:-
SSL
if you plan to use HTTPS for InForm adapter web service calls. -
NONSSL
if you plan to use HTTP for InForm adapter web service calls.
Search for the following text:
JAVA_OPTIONS="${JAVA_OPTIONS}"
Add the parameter and value within the quotes. For example:
if [ "${WEBLOGIC_EXTENSION_DIRS}" != "" ] ; then JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.ext.dirs=${WEBLOGIC_EXTENSION_DIRS}" export JAVA_OPTIONS fi JAVA_OPTIONS="${JAVA_OPTIONS} -DdmwWebService=SSL"
export JAVA_OPTIONS # SET THE CLASSPATH
-
-
On one and only one application server, add a parameter named
-DhandleDiscEvent
to JAVA_OPTIONS and set its value toTRUE
, following the instructions in the previous step.This is required to support multiple middle tiers pointing to the same database. Only the server with this parameter set to True will be able to send data from Oracle Thesaurus Management System (TMS) to InForm.
-
Synchronize the DMW WebLogic server clock with the InFormAdapter server clock by adding a parameter named
user.timezone
to JAVA_OPTIONS and set its value to the same timezone used by the InForm Adapter server, using a valid format supported by Java 8; for example:-Duser.timezone=GMT
or
-Duser.timezone=EST
Make sure this parameter is contained within the quotes:
JAVA_OPTIONS="${JAVA_OPTIONS} -Duser.timezone=VALID_TIMEZONE" export JAVA_OPTIONS
-
Locate the following section:
if [ "${USER_MEM_ARGS}" != "" ] ; then MEM_ARGS="${USER_MEM_ARGS}" export MEM_ARGS fi
and add the following text (which may continue to the next page) BEFORE the text shown above:
Note:
If you are using names other than "AdminServer" and "DMWServer," change the text accordingly.
# Set 1024MB for AdminServer if [ "${SERVER_NAME}" == "AdminServer" ] ; then USER_MEM_ARGS="-Xms512m -Xmx1024m -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m " export USER_MEM_ARGS fi #Set 4G for Managed Server if [ "${SERVER_NAME}" == "DMWServer" ] ; then USER_MEM_ARGS="-Xms8192m -Xmx8192m -XX:MetaspaceSize=1024m -XX:MaxMetaspaceSize=1024m -XX:NewSize=1024m -XX:MaxNewSize=1024m -XX:SurvivorRatio=8" export USER_MEM_ARGS fi
Note:
Earlier Oracle DMW releases required different arguments: XX:PermSize instead of XX:MetaspaceSize and XX:MaxPermSize instead of XX:MaxMetaspaceSize. JDK 8 ignores the PermSize arguments and requires the MetaspaceSize arguments. -
Locate the first occurrence of POST_CLASSPATH and add the following after it:
if [ "${POST_CLASSPATH}" != "" ] ; then POST_CLASSPATH="${DOMAIN_HOME}/lib/fndext.jar${CLASSPATHSEP}${DOMAIN_HOME}/lib/runtime12.jar${CLASSPATHSEP}${POST_CLASSPATH}" export POST_CLASSPATH else POST_CLASSPATH="${DOMAIN_HOME}/lib/fndext.jar${CLASSPATHSEP}${DOMAIN_HOME}/lib/runtime12.jar" export POST_CLASSPATH fi
-
Set
PRODUCTION_MODE=true
to run in Server mode. -
If you want to use a date format other than the default format, dd-MMM-yyyy (01-JAN-2016), in the Listings pages, add the parameter
-DlistingDateFormat
to JAVA_PROPERTIES and set it to one of the supported values found inhttp://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
.If the date format has space character in it, you must replace the space with an underscore ( _) character because WebLogic Server on Linux will not start with spaces in a parameter. For example, the following value:
-DlistingDateFormat=yyyy.MM.dd_G_'at'_HH:mm:ss_z"
displays dates as:
2001.07.04 AD at 12:08:56 PDT
-
To be ready to integrate DMW with an electronic data capture system other than InForm, add parameter
-DUseSunHttpHandler
to JAVA_PROPERTIES and set it to True. For example:JAVA_PROPERTIES="-Dplatform.home=${WL_HOME} -Dwls.home=${WLS_HOME} -Dweblogic.home=${WLS_HOME} -DUseSunHttpHandler=true"
-
Locate the first occurrence of EXTRA_JAVA_PROPERTIES and add the following to enable huge pages after it.
EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -XX:+UseLargePages" export EXTRA_JAVA_PROPERTIES
-
Set application module properties:
Note:
The setting
-Djbo.ampool.maxinactiveage=1200000"
creates a session timeout value of 20 minutes. If you prefer a different timeout period, see unresolvable-reference.html.EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Djbo.ampool.doampooling=true -Djbo.ampool.maxavailablesize=expected_maximum_number_of_concurrent_users
-Djbo.ampool.initpoolsize=10 -Djbo.ampool.minavailablesize=10 -Djbo.recyclethreshold=same_as_maximum_number_of_concurrent_users -Djbo.ampool.timetolive=3600000 -Djbo.ampool.maxinactiveage=1200000" export EXTRA_JAVA_PROPERTIES
Parent topic: Install Oracle Thesaurus Management System (Optional)