APM java agent

I am having so much trouble getting data from java process to my apm server

apm server 7.14, elk version 7.14

I have attached elastic-apm-agent-1.24.0.jar to my java process but nothing shows up in my apm server

ps -ef |grep apm

root 6 1 2 16:47 ? 00:00:24 /usr/local/openjdk-11/bin/java -Duser.dir=/opt/ Dhttps.port=9443 -javaagent:/opt/lib/elastic-apm-agent-1.24.0.jar -Delastic.apm.service_name=my-java-monitoring -Delastic.apm.application_packages=org.example,org.another.example -Delastic.apm.server_url=http://elkdev01:8200

server is running fine as I can log in to kibana and go to apm and it loads up.

elastic-apm-agent-1.24.0.jar file exist, docker container is able to start

how do I debug this out? where is the log files?
I know something is wrong with this docker container for sure.

Hi @elasticforme ,

Have you tried the troubleshooting steps described in documentation ?

From the command line you shown, it seems the agent is properly attached. There must be some extra messages to the standard output when the JVM starts (unless you also set the log_file configuration option).

Once you have this output, you can increase the log level if needed by setting-Dlog_level=debug.

Also, there seem to be a typo in your command above Dhttps.port=9443 should be replaced by -Dhttps.port=9443 as there is a missing -, but this option is not used by the agent itself and likely only by your application.

it did work. I was trying to find out how to turn on that debugging. as soon as it turn on we show error message it was something to do with how container was setup.
And then sys admin was able to fix that. Now I can see some data. Now real fun starts to find out how all gets imported in elk and how do I tell the rest of the story.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.