# APM-agent:Connection refused

**URL:** <https://discuss.elastic.co/t/apm-agent-connection-refused/170666>\
**Category:** APM\
**Created:** [March 4, 2019, 1:32am UTC](https://discuss.elastic.co/t/apm-agent-connection-refused/170666 "2019-03-04T01:32:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hyhong](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@hyhong](https://discuss.elastic.co/u/hyhong)\
**Post date:** [March 4, 2019, 1:32am UTC](https://discuss.elastic.co/t/apm-agent-connection-refused/170666/1 "2019-03-04T01:32:04Z")

</div>

When I start the jboss application in linux OS,then happens the follow error:  
09:19:12,041 INFO [stdout] (apm-reporter) 2019-03-04 09:19:12.041 [apm-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type METRICS with this error: Connection refused

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [March 4, 2019, 7:48am UTC](https://discuss.elastic.co/t/apm-agent-connection-refused/170666/2 "2019-03-04T07:48:56Z")

</div>

Please provide more info- versions of everything (agent, APM server, Elasticsearch, Kibana), setup description, full logs etc.  
You can use the forum template for that.  
Thanks.

---

<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:** [March 25, 2019, 3:49am UTC](https://discuss.elastic.co/t/apm-agent-connection-refused/170666/3 "2019-03-25T03:49:03Z")

</div>

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