# Apm agent detach updates

**URL:** <https://discuss.elastic.co/t/apm-agent-detach-updates/202259>\
**Category:** APM\
**Tags:** java\
**Created:** [October 4, 2019, 12:42am UTC](https://discuss.elastic.co/t/apm-agent-detach-updates/202259 "2019-10-04T00:42:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nie/32/55307_2.png) [@Nie](https://discuss.elastic.co/u/Nie)\
**Post date:** [October 4, 2019, 12:42am UTC](https://discuss.elastic.co/t/apm-agent-detach-updates/202259/1 "2019-10-04T00:42:40Z")

</div>

I read the thread about java agent attach dated July. The last comment there was that someone(I guess from Elastic) is making an update on the java-agent-attach that will allow detaching. Is that possible now? If so, how is it done?

---

<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:** [October 6, 2019, 5:42am UTC](https://discuss.elastic.co/t/apm-agent-detach-updates/202259/2 "2019-10-06T05:42:05Z")

</div>

There is a work-in-progress, currently in the POC stage, of making a major change in the agent that will eventually allow "hot-update" and detach as well, but not something in the immediate future.  
Once it is done, we will document what it means.

We already have [the `active` switch](https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-active), maybe it can serve what you are looking for until then.

I hope this helps,  
Eyal.

---

<div class="post-metadata">

**Author:** ![Nie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nie/32/55307_2.png) [@Nie](https://discuss.elastic.co/u/Nie)\
**Post date:** [October 6, 2019, 3:14pm UTC](https://discuss.elastic.co/t/apm-agent-detach-updates/202259/3 "2019-10-06T15:14:34Z")

</div>

Great! Does the attach agent query ELASTIC\_APM\_ACTIVE variable like every minute?

---

<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:** [October 6, 2019, 3:33pm UTC](https://discuss.elastic.co/t/apm-agent-detach-updates/202259/4 "2019-10-06T15:33:03Z")

</div>

Every 30 seconds 🙂

---

<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:** [October 27, 2019, 11:40am UTC](https://discuss.elastic.co/t/apm-agent-detach-updates/202259/5 "2019-10-27T11:40:40Z")

</div>

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