# Stop collecting data from host using java apm agent(1.7.0)

**URL:** <https://discuss.elastic.co/t/stop-collecting-data-from-host-using-java-apm-agent-1-7-0/193293>\
**Category:** APM\
**Tags:** java, server\
**Created:** [August 1, 2019, 10:14am UTC](https://discuss.elastic.co/t/stop-collecting-data-from-host-using-java-apm-agent-1-7-0/193293 "2019-08-01T10:14:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rijash](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@rijash](https://discuss.elastic.co/u/rijash)\
**Post date:** [August 1, 2019, 10:14am UTC](https://discuss.elastic.co/t/stop-collecting-data-from-host-using-java-apm-agent-1-7-0/193293/1 "2019-08-01T10:14:30Z")

</div>

**Elasticsearch version** : 7.2.0

**APM Server version** : 7.2.0

**APM Agent language and version** : elasticapm-java 1.7.0

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

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

{"log":"2019-08-01T09:50:29.455Z\u0009ERROR\u0009[request]\u0009beater/intake\_handler.go:94\u0009error handling request\u0009{"request\_id": "f9a2907a-1904-41c3-85a1-68aebf2f91ec", "method": "POST", "URL": "/intake/v2/events", "content\_length": -1, "remote\_address": "", "user-agent": "elasticapm-java/1.7.0", "error": "read tcp :8200-\u003e10.10.32.106:55836: i/o timeout"}\n","stream":"stderr","time":"2019-08-01T09:50:29.455880829Z"}

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 2, 2019, 4:54am UTC](https://discuss.elastic.co/t/stop-collecting-data-from-host-using-java-apm-agent-1-7-0/193293/2 "2019-08-02T04:54:46Z")

</div>

Hi and thanks for trying Elastic APM,

It is a little difficult to help with such limited information however the error

`error": "read tcp :8200-\u003e10.10.32.106:55836: i/o timeout"}`

Appears to indicate the agent can not connect to the apm-server

Please provide how you start the Java Application with the agent and what agent configuration parameters you use?

When you start the Application with the agent you should see a line in the log near the beginning that looks like

`2019-08-01 21:54:17.616 [apm-server-healthcheck] INFO co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is available: { "build_date": "2019-07-24T17:14:06Z", "build_sha": "a6b6ca2f36a7b3fd3dfe74840fed0ef9d67cb046", "version": "7.3.0"}`

Do you see that? or does it say something like this which mean the Agent can not connect to the apm-server.

`2019-08-01 21:44:41.422 [apm-server-healthcheck] WARN co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is not available (Connection refused (Connection refused))`

---

<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 2, 2019, 8:00am UTC](https://discuss.elastic.co/t/stop-collecting-data-from-host-using-java-apm-agent-1-7-0/193293/3 "2019-08-02T08:00:03Z")

</div>

Another set of questions:  
Is there a load balancer between the agent and the APM Server? Is that a sporadic error? Does it happen right after starting the application? Only after a certain amount of time?

---

<div class="post-metadata">

**Author:** ![rijash](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@rijash](https://discuss.elastic.co/u/rijash)\
**Post date:** [August 2, 2019, 9:02am UTC](https://discuss.elastic.co/t/stop-collecting-data-from-host-using-java-apm-agent-1-7-0/193293/4 "2019-08-02T09:02:32Z")

</div>

Thanks for your prompt response here.

We are not using any load balancer. It was working fine after the set-up , it completely stop collecting the data after sometime with the error message as i mentioned.

---

<div class="post-metadata">

**Author:** ![rijash](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@rijash](https://discuss.elastic.co/u/rijash)\
**Post date:** [August 2, 2019, 9:05am UTC](https://discuss.elastic.co/t/stop-collecting-data-from-host-using-java-apm-agent-1-7-0/193293/5 "2019-08-02T09:05:50Z")

</div>

We are running the basic default configuration for agent by following the below approach.

[https://www.elastic.co/guide/en/apm/agent/java/current/setup-javaagent.html](https://www.elastic.co/guide/en/apm/agent/java/current/setup-javaagent.html)

---

<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 2, 2019, 9:24am UTC](https://discuss.elastic.co/t/stop-collecting-data-from-host-using-java-apm-agent-1-7-0/193293/6 "2019-08-02T09:24:54Z")

</div>

Do you have the agent logs available for this timeframe?

---

<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:** [August 23, 2019, 5:25am UTC](https://discuss.elastic.co/t/stop-collecting-data-from-host-using-java-apm-agent-1-7-0/193293/7 "2019-08-23T05:25:04Z")

</div>

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