Kibana version: 7.3.1
Elasticsearch version: 7.3.1
APM Server version: 7.9.3
APM Agent language and version: Java 1.18.1
Browser version: Chrome 86.0.4240.111
Original install method (e.g. download page, yum, deb, from source, etc.) and version: from source (Windows)
Fresh install or upgraded from other version? Docker compose for the stack, fresh install for APM Server
Is there anything special in your setup? No special configuration. All the stack is build with a docker-compose, except for APM.
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
Hi everybody!
I'm trying to monitor the apache karaf container used under Talend Open Studio for ESB (v 7.2.1).
I've configured the APM server in the right way and it is reacheable by Kibana, nevertheless I've some problems configuring the APM agent, in particular, attaching it to the .jar process of the karaf.
I've tried both with the main karaf jar file (org.apache.karaf.main-4.2.4) located under /container/lib/boot/ folder and with the wrapper installed within the karaf itself, which .jar file is located under /container/lib/wrapper (karaf-wrapper).
Is there a way to configure the agent correctly?
I'm always getting the same error reported below:
1 PS C:\talend\TOS_ESB-20190620_1446-V7.2.1\Runtime_ESBSE\container\lib\wrapper> java -javaagent:C:\Users\daniele.uboldi\Downloads\jar\agents\elk\elastic-apm-agent-1.18.1.jar -Delastic.apm.service_name=Main -Delastic.apm.server_url=http://localhost:8020 -Delastic.apm.secret_token= -Delastic.apm.application_packages=org.apache.karaf.wrapper -jar karaf-wrapper-main.jar
2 2020-11-02 11:18:27,899 [main] INFO co.elastic.apm.agent.util.JmxUtils - Found JVM-specific OperatingSystemMXBean interface: com.sun.management.OperatingSystemMXBean
3 2020-11-02 11:18:27,910 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.18.1 as karaf-wrapper-main on Java 1.8.0_251 Runtime version: 1.8.0_251-b08 VM version: 25.251-b08 (Oracle Corporation) Windows 10 10.0
4 2020-11-02 11:18:27,915 [main] WARN co.elastic.apm.agent.configuration.StartupInfo - To enable all features and decrease startup time, please configure application_packages
5 2020-11-02 11:18:29,848 [elastic-apm-server-healthcheck] INFO co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is available: { "build_date": "2020-10-16T08:02:43Z", "build_sha": "af7b123f289d79c34c9da11471803f457eafa5c0", "version": "7.9.3"}
6 2020-11-02 11:18:30,033 [main] INFO co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state
7 Errore: impossibile trovare o caricare la classe principale .apm.service_name=Main
8 2020-11-02 11:18:30,053 [elastic-apm-init-instrumentation-shutdown-hook] INFO co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to STOPPED state
For those who are not italian, line 7 is:
Error: unable to find or load the main class .apm.service-name=Main
Can anyone give me some help?