I use both java agent and java agent public in app,and deploy in jboss.But after a few minutes.The app is down.
Hi, do you have a crash report for the JVM ? There should be a hs_err_pid_xxx
in /tmp
folder.
Also, we recently discovered that some Java7 JVMs tend to crash when G1GC garbage collector is enabled, in the future agent will self-disable to prevent such crashes (https://github.com/elastic/apm-agent-java/pull/1440). G1GC was an experimental feature in Java7 and has been made GA and usable by default only on Java9.
Also, could you provide the agent configuration that you are using ?
Yes,that's follow and have some solutions?
export JAVA_OPTS="$JAVA_OPTS -javaagent:/opt/app/elk/elastic-apm-agent-1.16.0.jar"
export JAVA_OPTS="$JAVA_OPTS -Delastic.apm.service_name=jboss-service"
export JAVA_OPTS="$JAVA_OPTS -Delastic.apm.application_packages=com.*"
export JAVA_OPTS="$JAVA_OPTS -Delastic.apm.server_urls=http://xx.xx.xx.xx:8200"
Thus,We use jdk1.7 and use ParallelGC
Do you set it explicitly, or is it the default? If not the default, try without this setting.
Another thing to try is upgrade to the latest Java 7, if you are not using it already.
Not much we can do without the crash log and without the full command line you are using.
I use ByteBuddy+Java Agent public API implement a customer plugin.And it's ok in test enviroment.But it's crash in prod enviroment.Some suggestions?
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.