# Java memory heap

**URL:** <https://community.wowza.com/t/java-memory-heap/53390>\
**Category:** Wowza Streaming Engine\
**Tags:** java\
**Created:** [May 22, 2019, 12:55pm UTC](https://community.wowza.com/t/java-memory-heap/53390 "2019-05-22T12:55:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LogicaHost\_Solucoes](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@LogicaHost\_Solucoes](https://community.wowza.com/u/LogicaHost_Solucoes)\
**Post date:** [May 22, 2019, 12:55pm UTC](https://community.wowza.com/t/java-memory-heap/53390/1 "2019-05-22T12:55:58Z")

</div>

Hello, I have a problem with increasing Java memory heap, the 10 GB limit and the wowza server stop.

as temporary solution I need to increase the memory to 20 GB

but a message:

There are problems with the information you entered. Correct the problems listed below and try again.  
Java Heap Size must be between 512MB and 10GB.

Thank you for your help

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [May 22, 2019, 8:32pm UTC](https://community.wowza.com/t/java-memory-heap/53390/2 "2019-05-22T20:32:18Z")

</div>

This will be past the Wowza Streaming Engine Manager limit on what can be set and you’ll need to add these values in the Server.xml located in:

[install-dir]/conf

Change this:

```auto
 <HandlerThreadPool>
      <PoolSize>${com.wowza.wms.TuningAuto}</PoolSize>
  </HandlerThreadPool>
  <TransportThreadPool>
      <PoolSize>${com.wowza.wms.TuningAuto}</PoolSize>
  </TransportThreadPool>

```

to this:

```auto
 <HandlerThreadPool>
      <PoolSize>1920</PoolSize>
  </HandlerThreadPool>
  <TransportThreadPool>
      <PoolSize>1280</PoolSize>
  </TransportThreadPool>

```

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [May 22, 2019, 8:33pm UTC](https://community.wowza.com/t/java-memory-heap/53390/3 "2019-05-22T20:33:40Z")

</div>

For 96 GB of RAM I would recommend a 24 GB heap. This will need to be set in the Tune.xml located in:  
[install-dir]/conf

Change this:

```auto
<HeapSize>${com.wowza.wms.TuningHeapSizeDevelopment}</HeapSize>

```

To this:

```auto
<HeapSize>24000M</HeapSize>

```

Save and restart the Wowza Streaming Engine service for changes to take effect.  
[https://www.wowza.com/docs/how-to-start-and-stop-wowza-streaming-engine-software](https://www.wowza.com/docs/how-to-start-and-stop-wowza-streaming-engine-software)

If the above settings do not help, please submit a support ticket and the engineers will walk you though it. Hope this helps you.

---

<div class="post-metadata">

**Author:** ![LogicaHost\_Solucoes](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@LogicaHost\_Solucoes](https://community.wowza.com/u/LogicaHost_Solucoes)\
**Post date:** [May 22, 2019, 9:17pm UTC](https://community.wowza.com/t/java-memory-heap/53390/4 "2019-05-22T21:17:28Z")

</div>

I andd

and restart the wowza, the following message:

Wowza Streaming Engine Manager could not connect to the Wowza Streaming Engine service([http://localhost:8087](http://localhost:8087)). Verify that the Wowza Streaming Engine service has started and is running.
