Using Java Agent Jars
In Adeptia Connect, you can use external Java Agents for different purposes such as monitoring the JVM level parameters like object creation, garbage collection, thread execution, and so on.Â
To introduce a Java Agent jar in Adeptia Connect,
- Place the Java Agent jar in the javaagent folder in the shared PVC, as shown in the example below. /shared/javaagent/<Java Agent JAR name>
In the JAVA_OPTS environment variable, set javaagent:/app/javaagent/<Java Agent JAR name> as the Java Agent path. For example, if the name of the Java Agent JAR is ddjavaagent.jar, the value for the JAVA_OPTS variable looks like the one given below:
-Xms512M -Xmx2048M -Djdk.tls.useExtendedMasterSecret=false -javaagent:/app/javaagent/ddjavaagent.jar- Restart the deployment of the microservice that is using this jar.