# APM agent does not start sending any events

**URL:** https://discuss.elastic.co/t/apm-agent-does-not-start-sending-any-events/355921
**Category:** APM
**Tags:** java
**Created:** [March 21, 2024, 4:24pm UTC](https://discuss.elastic.co/t/apm-agent-does-not-start-sending-any-events/355921 "2024-03-21T16:24:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kk-mats](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kk-mats/32/132876_2.png) [@kk-mats](https://discuss.elastic.co/u/kk-mats)
#### Post date: [March 21, 2024, 4:24pm UTC](https://discuss.elastic.co/t/apm-agent-does-not-start-sending-any-events/355921/1 "2024-03-21T16:24:00Z")

</div>

**Kibana version** : 7.6

**Elasticsearch version** : 7.6

**APM Server version** : 7.6

**APM Agent language and version** : Java 17 with agent ver 1.48.1

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:  
download

**Fresh install or upgraded from other version?**  
Fresh install

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.  
No

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

I'm trying to use apm agent as a javaagent with Payara 6  
but the agent does not send any data to apm server.

I have already confirmed connectivity between app server and apm server by curl apm server and got 200 response. Other app built with spring boot and elastic agent on different VM instance are working without any issue and we can see traces on Kibana as expected while it is using the same apm server.

Also, following trouble shooting guide, I changed agent's log level to trace but no warn or error logs were output. It seems that info logs that should be output are also missing.

**Provide logs and/or server output (if relevant)**:

```auto
[main] DEBUG co.elastic.apm.agent.util.ExecutorUtils - A new thread named `elastic-apm-configuration-reloader` was created. The original context class loader of this thread (jdk.internal.loader.ClassLoaders$AppClassLoader@1d44bcfa) has been overridden
[main] TRACE co.elastic.apm.agent.util.ExecutorUtils - Stack trace related to thread creation:
java.lang.Throwable: null
        at co.elastic.apm.agent.util.ExecutorUtils.logThreadCreation(ExecutorUtils.java:141) [elastic-apm-agent-1.48.1.jar:1.48.1]
        at co.elastic.apm.agent.util.ExecutorUtils$SingleNamedThreadFactory.newThread(ExecutorUtils.java:130) [elastic-apm-agent-1.48.1.jar:1.48.1]
        at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:630) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:920) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1593) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:346) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:632) [?:?]
        at co.elastic.apm.agent.impl.ElasticApmTracerBuilder.scheduleReloadAtRate(ElasticApmTracerBuilder.java:201) [elastic-apm-agent-1.48.1.jar:1.48.1]
        at co.elastic.apm.agent.impl.ElasticApmTracerBuilder.build(ElasticApmTracerBuilder.java:154) [elastic-apm-agent-1.48.1.jar:1.48.1]
        at co.elastic.apm.agent.impl.ElasticApmTracerBuilder.build(ElasticApmTracerBuilder.java:134) [elastic-apm-agent-1.48.1.jar:1.48.1]
        at co.elastic.apm.agent.bci.ElasticApmAgent.initialize(ElasticApmAgent.java:165) [elastic-apm-agent-1.48.1.jar:1.48.1]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
        at co.elastic.apm.agent.premain.AgentMain.loadAndInitializeAgent(AgentMain.java:157) [elastic-apm-agent-1.48.1.jar:1.48.1]
        at co.elastic.apm.agent.premain.AgentMain.init(AgentMain.java:98) [elastic-apm-agent-1.48.1.jar:1.48.1]
        at co.elastic.apm.agent.premain.AgentMain.premain(AgentMain.java:47) [elastic-apm-agent-1.48.1.jar:1.48.1]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
        at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:491) [?:?]
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:503) [?:?]
[elastic-apm-configuration-reloader] DEBUG co.elastic.apm.agent.impl.ElasticApmTracerBuilder - Beginning scheduled configuration reload (interval is 30 sec)...
[elastic-apm-configuration-reloader] DEBUG co.elastic.apm.agent.impl.ElasticApmTracerBuilder - Finished scheduled configuration reload
[elastic-apm-configuration-reloader] DEBUG co.elastic.apm.agent.impl.ElasticApmTracerBuilder

```

ElasticApmTracerBuilder logs continued after the line above.

---

<div class="post-metadata">

### Author: ![Jack\_Shirazi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_shirazi/32/91641_2.png) [@Jack\_Shirazi](https://discuss.elastic.co/u/Jack_Shirazi)
#### Post date: [March 22, 2024, 3:00pm UTC](https://discuss.elastic.co/t/apm-agent-does-not-start-sending-any-events/355921/2 "2024-03-22T15:00:31Z")

</div>

Payara 6 is [not currently supported](https://www.elastic.co/guide/en/apm/agent/java/current/supported-technologies-details.html) by the agent so you would need to add in trace capturing using one of the various mechanisms such as [adding trace calls to your code](https://www.elastic.co/guide/en/apm/agent/java/current/apis.html), or [annotate the code](https://www.elastic.co/guide/en/apm/agent/java/current/public-api.html#api-annotation) or specifying [which methods to trace](https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-trace-methods), or [adding your own plugin](https://www.elastic.co/guide/en/apm/agent/java/current/plugin-api.html)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 19, 2024, 3:00pm UTC](https://discuss.elastic.co/t/apm-agent-does-not-start-sending-any-events/355921/3 "2024-04-19T15:00:43Z")

</div>

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