# APM agent installation on applications running as a service without jar files

**URL:** <https://discuss.elastic.co/t/apm-agent-installation-on-applications-running-as-a-service-without-jar-files/271733>\
**Category:** APM\
**Tags:** java\
**Created:** [April 30, 2021, 2:58am UTC](https://discuss.elastic.co/t/apm-agent-installation-on-applications-running-as-a-service-without-jar-files/271733 "2021-04-30T02:58:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![divakar\_maradana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divakar_maradana/32/81900_2.png) [@divakar\_maradana](https://discuss.elastic.co/u/divakar_maradana)\
**Post date:** [April 30, 2021, 2:58am UTC](https://discuss.elastic.co/t/apm-agent-installation-on-applications-running-as-a-service-without-jar-files/271733/1 "2021-04-30T02:58:20Z")

</div>

HI Team,

We are having an use-case to install APM agent on Applications running as a service(Bitbucket/Jira applications), we have researched on elastic documentation but couldn't find a solution to install APM agent without jar files. kindly help us to resolve this issue.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/d/ede96b62982548646bc33c5d61c65ca327853a4e.jpeg)

FYI: we referred to below link along with other official blogs.

[https://www.elastic.co/guide/en/apm/agent/java/current/configuration.html](https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.elastic.co%2Fguide%2Fen%2Fapm%2Fagent%2Fjava%2Fcurrent%2Fconfiguration.html&data=04%7C01%7Cdivakar.maradana%40infosys.com%7C728181bbb84848e5324408d90ac6c622%7C63ce7d592f3e42cda8ccbe764cff5eb6%7C0%7C0%7C637552671115899170%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=l9g0R1p1ZnsqfbNG6uzFGeWUc%2FhL1RXjWhCx3tdW2Lw%3D&reserved=0)

Thanks  
Divakar

---

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [April 30, 2021, 6:36am UTC](https://discuss.elastic.co/t/apm-agent-installation-on-applications-running-as-a-service-without-jar-files/271733/2 "2021-04-30T06:36:39Z")

</div>

Hi @divakar_maradana ,

So if I understand correctly, you are running a bitbucket / Jira instance on your server, but it's a packaged application that is installed as a local service. Is that right ?

There are two options in this case:

- use the [runtime attachment CLI](https://www.elastic.co/guide/en/apm/agent/java/current/setup-attach-cli.html) tool that allows to attach to any running JVM
- modify the startup scripts of those services to include `-javaagent` option, it's usually located close to where `-Xmx ____` and `-Xms____ ` parameters are being set to control JVM memory usage. You should be able to find more details in Jira/Bitbucket documentation for those.

---

<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:** [May 28, 2021, 6:36am UTC](https://discuss.elastic.co/t/apm-agent-installation-on-applications-running-as-a-service-without-jar-files/271733/3 "2021-05-28T06:36:56Z")

</div>

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