# Monitoring of an application on a tomcat

**URL:** <https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047>\
**Category:** APM\
**Tags:** java\
**Created:** [April 23, 2021, 7:33am UTC](https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047 "2021-04-23T07:33:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nigmur](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@Nigmur](https://discuss.elastic.co/u/Nigmur)\
**Post date:** [April 23, 2021, 7:33am UTC](https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047/1 "2021-04-23T07:33:17Z")

</div>

Hi everyone,

I am having issues in monitoring a java application inside a tomcat. I am monitoring the tomcat with a java agent and i see everything correctly. But when i install an application on it it seems that i can't monitor it correctly. I don't see business transactions (only the one related to the tomcat) i see only throughput.

Is this normal? Am i missing something?

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 27, 2021, 1:20am UTC](https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047/2 "2021-04-27T01:20:46Z")

</div>

Welcome to our community! 😃

It's not clear what this has to do with Kibana.  
What java agent are you using?

---

<div class="post-metadata">

**Author:** ![Nigmur](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@Nigmur](https://discuss.elastic.co/u/Nigmur)\
**Post date:** [April 27, 2021, 7:05am UTC](https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047/3 "2021-04-27T07:05:22Z")

</div>

Hi,

I am sorry if i put my question in the wrong topic. I am using the "observability -\> APM " that i found in Kibana so i thought it was a kibana question. I am using the Elastic Java agent, the one found here : [APM Java Agent Reference [1.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/index.html)

Hope i explained myselft better!

Thanks for the answer!

---

<div class="post-metadata">

**Author:** ![Nigmur](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@Nigmur](https://discuss.elastic.co/u/Nigmur)\
**Post date:** [May 18, 2021, 12:43pm UTC](https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047/4 "2021-05-18T12:43:39Z")

</div>

Hi, Is anyone able to help me?

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [May 18, 2021, 2:40pm UTC](https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047/5 "2021-05-18T14:40:59Z")

</div>

Hi @Nigmur,  
did you see docs [Manual setup with -javaagent flag | APM Java Agent Reference [1.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/setup-javaagent.html#setup-tomcat)?  
What version of tomcat do you use?  
Do you use supported technologies in your application? [Supported technologies | APM Java Agent Reference [1.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/supported-technologies-details.html)  
And what version of elastic-java-agent do you use?

---

<div class="post-metadata">

**Author:** ![Nigmur](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@Nigmur](https://discuss.elastic.co/u/Nigmur)\
**Post date:** [May 18, 2021, 3:25pm UTC](https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047/6 "2021-05-18T15:25:57Z")

</div>

Hi there!

Thank you very much for your answer!!

Yes i followed the manual, i am using tomcat 9.0.44 (it appears as supported) and elastic java agent version 1.22.0.

Thank you very much again! Have a nice day!

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [May 18, 2021, 3:38pm UTC](https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047/7 "2021-05-18T15:38:08Z")

</div>

@Nigmur, Did you configure `export CATALINA_OPTS="$CATALINA_OPTS -Delastic.apm.application_packages=org.example,org.another.example" ` ?

---

<div class="post-metadata">

**Author:** ![Nigmur](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@Nigmur](https://discuss.elastic.co/u/Nigmur)\
**Post date:** [May 18, 2021, 3:54pm UTC](https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047/8 "2021-05-18T15:54:30Z")

</div>

Hi,

We installed the tomcat as a service and in the tomcat.service properties we have this line:

``````````````````````````````````````````````````````````auto
Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC -javaagent:/opt/elastic-apm/elastic-apm-agent-1.22.0.jar -Delastic.apm.service_name=T
omcat9 -Delastic.apm.application_packages=org.apache.catalina -Delastic.apm.server_url=http://10.1.0.27:8200'
`````````````````````````````````````````````````````````

Thank you!
``````````````````````````````````````````````````````````

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [May 18, 2021, 4:03pm UTC](https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047/9 "2021-05-18T16:03:53Z")

</div>

> [@Nigmur](#):
>
> `Delastic.apm.application_packages=org.apache.catalina`

what packages in your deployed application?  
You should configure `-Delastic.apm.application_packages` with your application packages.

Can you set log level to DEBUG?

> **[Logging configuration options | APM Java Agent Reference \[1.x\] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/config-logging.html#config-log-level)**

What kind of transactions are you await in kibana?  
After deploying application - did you call your application REST, or something else?

---

<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 15, 2021, 4:04pm UTC](https://discuss.elastic.co/t/monitoring-of-an-application-on-a-tomcat/271047/10 "2021-06-15T16:04:26Z")

</div>

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