# How to hot load agent?

**URL:** <https://discuss.elastic.co/t/how-to-hot-load-agent/208411>\
**Category:** APM\
**Tags:** java\
**Created:** [November 19, 2019, 1:43am UTC](https://discuss.elastic.co/t/how-to-hot-load-agent/208411 "2019-11-19T01:43:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![andywzhang](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@andywzhang](https://discuss.elastic.co/u/andywzhang)\
**Post date:** [November 19, 2019, 1:43am UTC](https://discuss.elastic.co/t/how-to-hot-load-agent/208411/1 "2019-11-19T01:43:32Z")

</div>

How to heat load agent?  
I am going to request the code update of the post-control agent through the backend.

---

<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:** [November 19, 2019, 6:06am UTC](https://discuss.elastic.co/t/how-to-hot-load-agent/208411/2 "2019-11-19T06:06:10Z")

</div>

Not sure what you are looking for.  
The agent can be [attached](https://www.elastic.co/guide/en/apm/agent/java/current/setup-attach-cli.html) to a running JVM.  
There is no way to update/upgrade or "detach" the agent without restarting the JVM, but we are aiming there.  
I hope this helps.

---

<div class="post-metadata">

**Author:** ![andywzhang](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@andywzhang](https://discuss.elastic.co/u/andywzhang)\
**Post date:** [November 19, 2019, 6:45am UTC](https://discuss.elastic.co/t/how-to-hot-load-agent/208411/3 "2019-11-19T06:45:12Z")

</div>

We also want to implement hot loading for agent. Do you have any ideas? Thank you very much.

---

<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:** [November 19, 2019, 8:22am UTC](https://discuss.elastic.co/t/how-to-hot-load-agent/208411/4 "2019-11-19T08:22:00Z")

</div>

Please describe in greater details what it is exactly you are looking for.  
I assumed "hot loading" means runtime attachment of the agent, but seems it does not for you, so you will need to help me out here 🙂

---

<div class="post-metadata">

**Author:** ![andywzhang](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@andywzhang](https://discuss.elastic.co/u/andywzhang)\
**Post date:** [November 19, 2019, 10:11am UTC](https://discuss.elastic.co/t/how-to-hot-load-agent/208411/5 "2019-11-19T10:11:33Z")

</div>

dynamic update agent without restart jvm

---

<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:** [November 19, 2019, 11:46am UTC](https://discuss.elastic.co/t/how-to-hot-load-agent/208411/6 "2019-11-19T11:46:05Z")

</div>

Not possible, perhaps in future.

---

<div class="post-metadata">

**Author:** ![andywzhang](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@andywzhang](https://discuss.elastic.co/u/andywzhang)\
**Post date:** [November 20, 2019, 12:43am UTC](https://discuss.elastic.co/t/how-to-hot-load-agent/208411/7 "2019-11-20T00:43:23Z")

</div>

ok，thankyou

---

<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:** [December 10, 2019, 8:43pm UTC](https://discuss.elastic.co/t/how-to-hot-load-agent/208411/8 "2019-12-10T20:43:26Z")

</div>

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