# Java Agent Not reporting Data on Tomcat Server

**URL:** https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634
**Category:** APM
**Tags:** java
**Created:** [December 22, 2021, 4:58am UTC](https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634 "2021-12-22T04:58:52Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Pooja1992](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Pooja1992](https://discuss.elastic.co/u/Pooja1992)
#### Post date: [December 22, 2021, 4:58am UTC](https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634/1 "2021-12-22T04:58:52Z")

</div>

Hi,

We have installed Java APM agent for Tomcat Server,but its not reporting data back to the dashboard.  
Pls suggest possible troubleshooting steps for the same.  
We r running Kibana on Premise.

---

<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: [December 22, 2021, 6:53am UTC](https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634/2 "2021-12-22T06:53:03Z")

</div>

Hi @Pooja1992 , welcome to our forum 👋  
Start in our [troubleshooting page](https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html#trouble-shooting-no-data) and see where it takes you.

> [@Pooja1992](#):
>
> but its not reporting data back to the dashboard

Just in case you are not aware, APM requires an APM Server, so you may want to go over our [general APM guide](https://www.elastic.co/guide/en/apm/guide/current/index.html).

---

<div class="post-metadata">

### Author: ![Pooja1992](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Pooja1992](https://discuss.elastic.co/u/Pooja1992)
#### Post date: [December 22, 2021, 10:27am UTC](https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634/3 "2021-12-22T10:27:01Z")

</div>

Hi,

Thanks for the quick assistance.

We tried apm server steps with curl and it is up n running.

Still we r unable to see any data.

Pls let us know whr we can see agent logs and also we r unable to find properties file of an agent so we hv updated settings with env variables.

Can u pls let us know what we r missing.

---

<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: [December 22, 2021, 11:21am UTC](https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634/4 "2021-12-22T11:21:12Z")

</div>

Sorry, I can't assist with each step of the setup.  
Most of what you need is well documented. Some relevant examples:

> **[Troubleshooting | APM Java Agent Reference \[1.x\] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html#trouble-shooting-logging)**

> **[Configuration | APM Java Agent Reference \[1.x\] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/configuration.html)**

---

<div class="post-metadata">

### Author: ![Pooja1992](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Pooja1992](https://discuss.elastic.co/u/Pooja1992)
#### Post date: [December 23, 2021, 5:08am UTC](https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634/6 "2021-12-23T05:08:32Z")

</div>

Hi,

PFB link for the document.Let me know if anything else required.

> **[Download Data package from December 23rd.](https://filetransfer.io/data-package/ySB30ddC#link)**
>
> Size of the data package: 1.06 MB. Free transfer of up to 6 GB of photos, videos and documents. Send large files via email or a link to share. No registration, no ads, just simple file sharing!

Note: We are trying this setup on our own machine(Kibana,Elasticsearch,APM Server,tomcat Server and java application resides on a single machine)

---

<div class="post-metadata">

### Author: ![Pooja1992](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Pooja1992](https://discuss.elastic.co/u/Pooja1992)
#### Post date: [December 27, 2021, 5:03am UTC](https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634/7 "2021-12-27T05:03:26Z")

</div>

Team,

Pls let us know if we are missing anything, we r still struggling with the data reporting part.

Thanks in advance!

---

<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: [December 27, 2021, 7:05am UTC](https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634/8 "2021-12-27T07:05:43Z")

</div>

This is a forum for asking questions on specific issues, we cannot provide full support here.  
Our documentation is full of resources that you need to go through in order to get the most out of our solutions.

Nevertheless, I did go through your setup, so I can provide some advice:  
The major issue is that you didn't understand how the agent is setup through the `-javaagent` argument. If you go through the [relevant setup page](https://www.elastic.co/guide/en/apm/agent/java/current/setup-javaagent.html), you can see that it is added to your application's command line as an additional command line argument. The agent is not a Java application, it attaches to a Java application. With that regard, the [`service_name`](https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-service-name) is not a configuration to your application path.

I hope this is sufficient advice to get you to the next step, but this doesn't replace reading the guides.

Good luck.

---

<div class="post-metadata">

### Author: ![Pooja1992](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Pooja1992](https://discuss.elastic.co/u/Pooja1992)
#### Post date: [December 27, 2021, 9:10am UTC](https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634/9 "2021-12-27T09:10:06Z")

</div>

Thanks a lot, @Eyal_Koren ,

We will try and implement these steps and let you know.

Thanks for your assistance!

---

<div class="post-metadata">

### Author: ![Pooja1992](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Pooja1992](https://discuss.elastic.co/u/Pooja1992)
#### Post date: [January 3, 2022, 6:25am UTC](https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634/10 "2022-01-03T06:25:51Z")

</div>

Hi,  
It's working now.

Data is reporting back to the dashboard.

Pls, let us know where we can check the DB queries in the dashboard.

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: [January 24, 2022, 2:26am UTC](https://discuss.elastic.co/t/java-agent-not-reporting-data-on-tomcat-server/292634/11 "2022-01-24T02:26:47Z")

</div>

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