# Java APM agent not sending data to Server

**URL:** https://discuss.elastic.co/t/java-apm-agent-not-sending-data-to-server/142962
**Category:** APM
**Created:** [August 3, 2018, 6:36pm UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data-to-server/142962 "2018-08-03T18:36:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)
#### Post date: [August 3, 2018, 6:36pm UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data-to-server/142962/1 "2018-08-03T18:36:11Z")

</div>

We are trying to test out the Beta of java APM agent. We get 200 health checks from the agent when looking at the server logs but no data is being sent. is there a step we are missing.

-javaagent:/usr/lib/elastic-apm-agent-0.6.0.jar   
-Delastic.apm.server\_url=http://apm-host:8200   
-Delastic.apm.service\_name=appname   
-Delastic.apm.active=true   
-Delastic.apm.capture\_body=all   
-Delastic.apm.application\_packages=com.company   
-Delastic.apm.logging.log\_level=DEBUG   
-Delastic.apm.logging.log\_file=/tmp/apm.log   
-Delastic.apm.instrument=true   
$OPTIONS"

that is our agent config. Any help is greatly appreciated.

---

<div class="post-metadata">

### Author: ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)
#### Post date: [August 6, 2018, 1:40pm UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data-to-server/142962/2 "2018-08-06T13:40:23Z")

</div>

anyone have any suggestions?

---

<div class="post-metadata">

### Author: ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)
#### Post date: [August 6, 2018, 4:18pm UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data-to-server/142962/3 "2018-08-06T16:18:28Z")

</div>

Hi and thanks for trying out the Java agent. I’m sorry it’s not working for you out of the box.

Could you attach the agent debug logs here? Also, which frameworks and application Server are you using?

---

<div class="post-metadata">

### Author: ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)
#### Post date: [August 6, 2018, 4:56pm UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data-to-server/142962/4 "2018-08-06T16:56:25Z")

</div>

Hello Felix,

Thanks for reaching out . We tried using jetty but no information was showing up in ES or Kibana. We are just trying to get GC time, count and cpu utilization. By application server do you mean APM-server( we are using latest version)? We are running this all on CentOS 7.4 .

 ![logs](https://us1.discourse-cdn.com/elastic/original/3X/2/8/28cd891baeace5ad6397f9ab2b60907e31273655.png)

---

<div class="post-metadata">

### Author: ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)
#### Post date: [August 13, 2018, 10:29am UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data-to-server/142962/5 "2018-08-13T10:29:35Z")

</div>

Turned out the problem was that you were using Jetty's `AbstractHandler` instead of the `ServletContextHandler`. I have updated the documentation about the [supported servers](https://www.elastic.co/guide/en/apm/agent/java/current/intro.html#supported-app-servers). I have also improved the [troubleshooting docs](https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html#trouble-shooting-logging) which hopefully makes it easier in the future to detect that something is not supported yet.

---

<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: [September 3, 2018, 6:29am UTC](https://discuss.elastic.co/t/java-apm-agent-not-sending-data-to-server/142962/6 "2018-09-03T06:29:41Z")

</div>

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