# APM Agent Configuration

**URL:** <https://discuss.elastic.co/t/apm-agent-configuration/233974>\
**Category:** APM\
**Tags:** java\
**Created:** [May 23, 2020, 3:04am UTC](https://discuss.elastic.co/t/apm-agent-configuration/233974 "2020-05-23T03:04:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mhr/32/119834_2.png) [@mhr](https://discuss.elastic.co/u/mhr)\
**Post date:** [May 23, 2020, 3:04am UTC](https://discuss.elastic.co/t/apm-agent-configuration/233974/1 "2020-05-23T03:04:34Z")

</div>

I am new to Elastic APM. I have follow below tutorial to configure tomcat Agent. The problem is Agent is not sending data to APM server. Even application server is also not getting registered in APM server. Please let me know where am i making mistake.

Elastic:7.5.0

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

file setenv.sh  
export CATALINA\_OPTS="$CATALINA\_OPTS -javaagent:/path/to/elastic-apm-agent-1.16.0.jar"  
export CATALINA\_OPTS="$CATALINA\_OPTS -Delastic.apm.service\_name=my-cool-service"  
export CATALINA\_OPTS="$CATALINA\_OPTS -Delastic.apm.application\_packages=org.example"  
export CATALINA\_OPTS="$CATALINA\_OPTS -Delastic.apm.server\_urls=http://ip:8200"

---

<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:** [May 24, 2020, 1:27pm UTC](https://discuss.elastic.co/t/apm-agent-configuration/233974/2 "2020-05-24T13:27:02Z")

</div>

> [@mhr](#):
>
> -javaagent:/path/to/elastic-apm-agent-1.16.0.jar

Did you actually placed the agent jar in the file system and referenced it's actual path? Did you see in the Tomcat logs if it picked up the agent?

> [@mhr](#):
>
> -Delastic.apm.application\_packages=org.example

Use with your actual application's root package.

Did you see anything logged on the agent side?

---

<div class="post-metadata">

**Author:** ![mhr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mhr/32/119834_2.png) [@mhr](https://discuss.elastic.co/u/mhr)\
**Post date:** [May 26, 2020, 8:00am UTC](https://discuss.elastic.co/t/apm-agent-configuration/233974/3 "2020-05-26T08:00:32Z")

</div>

elastic-apm-agent-1.16.0.jar is located in path mentioned. Tomact log also shows that jar is loaded.

---

<div class="post-metadata">

**Author:** ![mhr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mhr/32/119834_2.png) [@mhr](https://discuss.elastic.co/u/mhr)\
**Post date:** [May 27, 2020, 2:59am UTC](https://discuss.elastic.co/t/apm-agent-configuration/233974/4 "2020-05-27T02:59:11Z")

</div>

Resolved. Upgraded Java Version and Agent Permission issue

---

<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:** [May 27, 2020, 5:34am UTC](https://discuss.elastic.co/t/apm-agent-configuration/233974/5 "2020-05-27T05:34:38Z")

</div>

Awesome! I hope you get a lot of value from it!

---

<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:** [June 17, 2020, 1:34am UTC](https://discuss.elastic.co/t/apm-agent-configuration/233974/6 "2020-06-17T01:34:41Z")

</div>

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