# Error sending data to APM server

**URL:** <https://discuss.elastic.co/t/error-sending-data-to-apm-server/183278>\
**Category:** APM\
**Tags:** java, server\
**Created:** [May 29, 2019, 8:42am UTC](https://discuss.elastic.co/t/error-sending-data-to-apm-server/183278 "2019-05-29T08:42:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gidi\_Kalef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gidi_kalef/32/43651_2.png) [@Gidi\_Kalef](https://discuss.elastic.co/u/Gidi_Kalef)\
**Post date:** [May 29, 2019, 8:42am UTC](https://discuss.elastic.co/t/error-sending-data-to-apm-server/183278/1 "2019-05-29T08:42:49Z")

</div>

Hi Guys ,  
im using APM server 6.6  
Kibana 6.6  
Elastic 6.6

And elastic java apm agent: elastic-apm-agent-1.6.1.jar

I Added the following parameters to my entrypoint when i run java application in docker:

**java -javaagent:/elastic-apm/elastic-apm-agent-1.6.1.jar -Delastic.apm.service\_name=alerts\_eureka-server -Delastic.apm.server\_url=http://apm-sever:8200 -jar /eureka-server.jar**

but when i look into the docker logs i got the following message:  
**2019-05-29 08:33:59.131 [apm-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error sending data to APM server: Read timed out, response code is -1**

Just to mention that the application run in java container

when i ran curl -I [http://apm-sever:8200](http://apm-sever:8200)  
it is stuck with out respond .

in my apm-sever i configured

apm-server:

# Defines the host and port the server is listening on. use "unix:/path/to.sock" to listen on a unix domain socket.

host: "0.0.0.0:8200"

do you see any reason?

---

<div class="post-metadata">

**Author:** ![Gidi\_Kalef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gidi_kalef/32/43651_2.png) [@Gidi\_Kalef](https://discuss.elastic.co/u/Gidi_Kalef)\
**Post date:** [May 29, 2019, 10:27am UTC](https://discuss.elastic.co/t/error-sending-data-to-apm-server/183278/2 "2019-05-29T10:27:55Z")

</div>

Fixed ,  
thanks guys

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [May 29, 2019, 11:08am UTC](https://discuss.elastic.co/t/error-sending-data-to-apm-server/183278/3 "2019-05-29T11:08:37Z")

</div>


