We have been using AppDynamics along with CA API Gateway v10.0 for some time now without any issues.
When we upgraded the Gateways to v10.1 w/AppDynamics the Gateway's ssg service stopped working.
During troubleshooting the only solution found was to disable AppDynamics. It was discovered that the issue was with java.
We opened a ticket with AppDynamics and with customer support did the following:
Troubleshooting steps Performed with AppDynamics vendor support:
Jul 18, 2022 4:26:10 PM com.l7tech.server.boot.GatewayMain main
WARNING: Error starting server : access denied ("java.util.PropertyPermission" "com.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize" "read")
java.security.AccessControlException: access denied ("java.util.PropertyPermission" "com.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize" "read")
Release : 10.1
Component : API GATEWAY
The JVM profilers used by APM tools are intrusive by definition , security permissions are needed
AppDynamics AppAgent (Java Agent) w/XML Gateway v10.1 Fix
Required components and versions:
Layer7 API Gateway version 10.1 CR01
Layer7 API Gateway internal database upgraded to 10.1 schema
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)
Steps:
default_java_opts="$default_java_opts -Dappdynamics.agent.tierName=<tier-name>"
default_java_opts="$default_java_opts -Dappdynamics.agent.nodeName=<hostname>"
default_java_opts="$default_java_opts -Dappagent.start.timeout=1"
default_java_opts="$default_java_opts -Dappdynamics.delegate.parent.classes=org.w3c.*,org.apache.xerces.*,org.xml.*,javax.xml.*"
default_java_opts="$default_java_opts -Dappagent.usebootstrap.as.parent=false"
default_java_opts="$default_java_opts -Dappdynamics.agent.use.stderr=file:/opt/app/appdynamics/app-agent/agent_boot.log"
default_java_opts="$default_java_opts -Dappdynamics.agent.use.agent.classloader.context=false"
#default_java_opts="$default_java_opts -Dappdynamics.agent.log4j2.disabled=true"
#default_java_opts="$default_java_opts --add-reads java.xml=ALL-UNNAMED"
permission java.security.AllPermission;
permission java.lang.RuntimePermission "getClassLoader";
};
https://knowledge.broadcom.com/external/article?articleId=16296