To add the javaagent command in Oracle Coherence:

  1. In the <coherence_home>/bin/cache-server.sh file, update the following:

    $JAVAEXEC -server -showversion $JAVA_OPTS -javaagent:<agent_home>/javaagent.jar -cp "$COHERENCE_HOME/lib/coherence.jar" com.tangosol.net.DefaultCacheServer $1
    CODE
  2. Restart the application server to have the changes take effect.