Opentelemetry and Appdynamics agent causing exceptions in JFR recordings #8060
Unanswered
ashishsanodia-harness
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hopefully fixed with #8065 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
We have multiple java applications which are configured to use opentelemetry java agent, Appd java agent and JFR. JFR recordings for these applications being captured at certain interval.
While analysing JFR recordings we are seeing lots of "java.lang.IllegalAccessError" under exceptions section. These are being thrown because of AppDynamics agent not exporting some packages. Also count of these exception are very high which is resulting in very big JFR recording files.
Exceptions:
Steps to reproduce:
java -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./heapdump -Xloggc:mygclogfilename.gc -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=40 -XX:MaxGCPauseMillis=1000 -Dfile.encoding=UTF-8 -Dotel.traces.exporter=none -Dotel.metrics.exporter=none -XX:NativeMemoryTracking=summary -XX:ErrorFile=hs_err_pid%p.log -XX:StartFlightRecording=disk=true,name=jfrRecording,maxage=30s,dumponexit=true,filename=jfr_dumponexit.jfr,settings=default.jfc -XX:FlightRecorderOptions=repository=./repo,maxchunksize=2m --add-reads jdk.jfr=ALL-UNNAMED -javaagent:AppServerAgent-1.8-21.11.2.33305/javaagent.jar -Dappdynamics.jvm.shutdown.mark.node.as.historical=true -Dappdynamics.agent.nodeName=spring-web-app-local -javaagent:opentelemetry-javaagent.jar -Dotel.service.name=spring-web-app-local -Dotel.traces.exporter=none -Dotel.metrics.exporter=none -jar spring-boot-hello.jar
I had discussion with AppDynamics team as well they suggested couple of configuration changes which resolved first 3 errors but 4th is still not resolved.
class io.opentelemetry.javaagent.instrumentation.apachehttpclient.v4_0.ApacheHttpClientRequest (in unnamed module @0x5befbac1) cannot access class org.apache.http.client.methods.HttpUriRequest (in module com.appdynamics.appagent) because module com.appdynamics.appagent does not export org.apache.http.client.methods to unnamed module @0x5befbac1
Also AppDynamics team suggested
-Dotel.instrumentation.apache-httpclient.enabled=false
But this will disable all our apache-httpclient instrumentation.So here I am. Can you please help with this?
Beta Was this translation helpful? Give feedback.
All reactions