I am using the latest ELK stack along with APM. My problem is I want to configure the APM java agent to my spring boot application. Currently I am running the spring boot as init.d service. Does anybody know how to pass javaagent parameter in .conf file spring boot init.d service. When I pass using JAVA_OPTS variable in the .conf, it didn't detect, the application started normally without any trace of javaagent attaching to the spring application.
The java agent is working fine for me when I run my application jar file from command line
It turned out to be a non-issue now. The agent was throwing an error saying it cannot able to connect to APM server(as the remote APM server was down). This error log was written in an another log file under /tmp folder, but the application continued running without an issue. I failed to notice this. Now after the starting the APM, it worked fine. Thanks again.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.