How can Oracle Unified Directory (OUD) be instrumented with an APM Java agent?

Document ID : KB000056963
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

How can Oracle Unified Directory (OUD) be instrumented with an APM Java agent?

 

Solution:

Per the Oracle Unified Directory documentation Configuring the JVM, Java, and Database Cache Options for Oracle Unified Directory, this should be possible by adding the required agent properties to:

EITHER: The file instance-dir/OUD/config/java.properties in the default.java-args section & then run dsjavaproperties (or dsjavaproperties.bat)

OR: The environment variable OPENDS_JAVA_ARGS

 

Some end-users found that completing a second step was needed:

 

In the file instance-dir/OUD/lib/set-java-home edit the OPENDS_JAVA_ARGS entry as follows:

 

FROM:

elif test "${SCRIPT_NAME}.java-args" = "start-ds.java-args"

  then

    OPENDS_JAVA_ARGS="-server"

    export OPENDS_JAVA_ARGS

 

TO:

  elif test "${SCRIPT_NAME}.java-args" = "start-ds.java-args"

  then

    OPENDS_JAVA_ARGS="-server -javaagent:/oracle/app/apm/Agent.jar -Dcom.wily.introscope.agentProfile=/oracle/app/apm/core/config/IntroscopeAgent.weblogic.profile"

    export OPENDS_JAVA_ARGS