# New Threads are blocked after enabling elastic agent

**URL:** <https://discuss.elastic.co/t/new-threads-are-blocked-after-enabling-elastic-agent/213145>\
**Category:** APM\
**Tags:** java\
**Created:** [December 27, 2019, 6:49am UTC](https://discuss.elastic.co/t/new-threads-are-blocked-after-enabling-elastic-agent/213145 "2019-12-27T06:49:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![muraliperla](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@muraliperla](https://discuss.elastic.co/u/muraliperla)\
**Post date:** [December 27, 2019, 6:49am UTC](https://discuss.elastic.co/t/new-threads-are-blocked-after-enabling-elastic-agent/213145/1 "2019-12-27T06:49:02Z")

</div>

**APM Agent language and version** :  
I am facing two issues while working with elastic apm agent on a java application.  
1)Some of our java application processes uses java.util.concurrent.ExecutorService to create Threads, But when we are enabling apm java agent, new threads are not able to launch ,what could be the possible causes ?  
2) Application child threads are created by ExecutorService are wrapped by a elastic search class \<co.elastic.apm.agent.impl.async.SpanInScopeCallableWrapper\>  
What could be the possible causes for both issues ?

---

<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:** [December 29, 2019, 4:06am UTC](https://discuss.elastic.co/t/new-threads-are-blocked-after-enabling-elastic-agent/213145/2 "2019-12-29T04:06:43Z")

</div>

Hi and welcome to the forum.  
Please avoid asking the same questions in two different channels.  
You can add the requested info to the GitHub issue you opened and we'll take it from there.  
Thanks.

---

<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:** [January 19, 2020, 12:06am UTC](https://discuss.elastic.co/t/new-threads-are-blocked-after-enabling-elastic-agent/213145/3 "2020-01-19T00:06:45Z")

</div>

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