# JVM Threads Issue

**URL:** <https://community.bloomreach.com/t/jvm-threads-issue/2526>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [April 15, 2021, 6:52am UTC](https://community.bloomreach.com/t/jvm-threads-issue/2526 "2021-04-15T06:52:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mort365](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@Mort365](https://community.bloomreach.com/u/Mort365)\
**Post date:** [April 15, 2021, 6:52am UTC](https://community.bloomreach.com/t/jvm-threads-issue/2526/1 "2021-04-15T06:52:03Z")

</div>

Hi all, I am not a Java expert, but yesterday we had a bloomreach site go down due to the number of Java threads just went sky rocketing…and we had out of memory issues on the containers.  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/022939c57da59f2691cc05068262aa10b9f4d6b1.png)

The rest looked okay…

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/820a93977618e199a933b9c2533d2ec02fd09c71.png)

Can anyone shed some light on jvm threads… what might cause this…?

I just restarted the nodes and all was fine…

J

---

<div class="post-metadata">

**Author:** ![Mort365](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@Mort365](https://community.bloomreach.com/u/Mort365)\
**Post date:** [April 19, 2021, 9:14am UTC](https://community.bloomreach.com/t/jvm-threads-issue/2526/2 "2021-04-19T09:14:12Z")

</div>

Hi all, any one got any thoughts on this..?  
We run bloomreach in a docker container and use the defaults.

# Default JVM heap size variables

ENV JAVA\_MINHEAP 256m

ENV JAVA\_MAXHEAP 512m

# Default tomcat http max threads variable

ENV TOMCAT\_MAXTHREADS 200

We also allow 2gb Ram to the container…

Is it worth tweaking the variables to increase the memory allocation and use more of the container allocated memory?

---

<div class="post-metadata">

**Author:** ![jeroen.hoffman](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeroen.hoffman/32/43_2.png) [@jeroen.hoffman](https://community.bloomreach.com/u/jeroen.hoffman)\
**Post date:** [April 19, 2021, 10:00am UTC](https://community.bloomreach.com/t/jvm-threads-issue/2526/3 "2021-04-19T10:00:06Z")

</div>

That’s hard to say… the defaults normally work well.  
Can you figure out what has caused the OOM by inspecting the memory dump (.hprof file) that has been generated when the OOM occurred? At least if you have specified -XX:+HeapDumpOnOutOfMemoryError on the JVM.

Jeroen

---

<div class="post-metadata">

**Author:** ![Mort365](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@Mort365](https://community.bloomreach.com/u/Mort365)\
**Post date:** [April 19, 2021, 10:07am UTC](https://community.bloomreach.com/t/jvm-threads-issue/2526/4 "2021-04-19T10:07:56Z")

</div>

Hi yes that option is specified, however due to other issues, folder mapping is not exposing the temp folder, so that memory dump is lost ☹
