# Elastic APM JAVA Agent not sending out any information

**URL:** <https://discuss.elastic.co/t/elastic-apm-java-agent-not-sending-out-any-information/193607>\
**Category:** APM\
**Tags:** java\
**Created:** [August 2, 2019, 6:19pm UTC](https://discuss.elastic.co/t/elastic-apm-java-agent-not-sending-out-any-information/193607 "2019-08-02T18:19:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parth](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@Parth](https://discuss.elastic.co/u/Parth)\
**Post date:** [August 2, 2019, 6:19pm UTC](https://discuss.elastic.co/t/elastic-apm-java-agent-not-sending-out-any-information/193607/1 "2019-08-02T18:19:54Z")

</div>

Hello,

I am trying to attach JAVA APM Agent with my SpringBoot Application manually. I am using the generic setup for doing this:

```
java -javaagent:/root/elastic-apm-agent-1.7.0.jar -Delastic.apm.service_name=AZS-FE-APM-AGENT-JAVA -Delastic.apm.application_packages=org. ****** -Delastic.apm.server_urls=http://apm-server-service.mon.svc.cluster.local:8200 -jar amp-azs-fe-1.0.1.jar

```

This application is dockerized & /root is my working directory. I have copied the the elastic-apm-agent, my-application-jar & the startup-script in this working directory.

My startup-script looks something like this:

```
#!bin/busybox
echo "Deploying AzS-FE Application....."
java -javaagent:/root/elastic-apm-agent-1.7.0.jar -Delastic.apm.service_name=AZS-FE-APM-AGENT-JAVA -Delastic.apm.application_packages=org. **** -Delastic.apm.server_urls=http://apm-server-service.mon.svc.cluster.local:8200 -jar amp-azs-fe-1.0.1.jar
echo "Deployment process complete...."
sleep 5
tail -f /root/logs/events.log

```

& my DockerFile looks like this:

```
FROM java:openjdk-8-jre-alpine
RUN cd /root && mkdir logs
COPY target/amp-azs-fe-1.0.1.jar /root/amp-azs-fe-1.0.1.jar
COPY elastic-apm-agent-1.7.0.jar /root/elastic-apm-agent-1.7.0.jar
COPY azs-fe_start.sh /root
ENV LOGROOT /root/logs
WORKDIR /root
ENTRYPOINT ["sh","azs-fe_start.sh"]

```

I feel that somehow Tomcat is not getting instrumented with this agent.

These are the file permissions for the above file in my container:

```
~ # pwd
/root
~ # ls -ltr
total 29656
-rw-r--r-- 1 root root 4857209 Aug 2 16:46 elastic-apm-agent-1.7.0.jar
-rw-r--r-- 1 root root 382 Aug 2 16:46 azs-fe_start.sh
-rw-r--r-- 1 root root 25501343 Aug 2 16:47 amp-azs-fe-1.0.1.jar
drwxr-xr-x 2 root root 4096 Aug 2 16:47 logs
~ #

```

I am pretty sure that I might be missing some bridge variables here. Any suggestions would help. Thanks in advance!

---

<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 3, 2019, 8:17am UTC](https://discuss.elastic.co/t/elastic-apm-java-agent-not-sending-out-any-information/193607/2 "2019-08-03T08:17:03Z")

</div>

Could you upload your debug logs? See also [https://www.elastic.co/guide/en/apm/agent/java/master/trouble-shooting.html](https://www.elastic.co/guide/en/apm/agent/java/master/trouble-shooting.html)

---

<div class="post-metadata">

**Author:** ![Parth](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@Parth](https://discuss.elastic.co/u/Parth)\
**Post date:** [August 5, 2019, 3:12pm UTC](https://discuss.elastic.co/t/elastic-apm-java-agent-not-sending-out-any-information/193607/3 "2019-08-05T15:12:32Z")

</div>

Hello Felix, thanks a lot for responding!

It seems the agent has not even been initiated as per the logs. As the logs that I see are just related to my native application.

Anyways, I can see the agent on Kibana APM UI, the problem is just that it is not sending any data [transactions, events, etc]

Let me debug on my end that if it has to do something with the framework version, I am pretty sure that it shouldn't be the case.

Looking forward to your response!

---

<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 26, 2019, 11:12am UTC](https://discuss.elastic.co/t/elastic-apm-java-agent-not-sending-out-any-information/193607/4 "2019-08-26T11:12:43Z")

</div>

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