# slow memory leak

**URL:** <https://community.wowza.com/t/slow-memory-leak/37498>\
**Category:** Wowza Streaming Engine\
**Created:** [July 17, 2012, 10:14am UTC](https://community.wowza.com/t/slow-memory-leak/37498 "2012-07-17T10:14:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_Vanhaute](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@Nicolas\_Vanhaute](https://community.wowza.com/u/Nicolas_Vanhaute)\
**Post date:** [July 17, 2012, 10:14am UTC](https://community.wowza.com/t/slow-memory-leak/37498/1 "2012-07-17T10:14:12Z")

</div>

hi,

I detected there is a slow memory leak of java when wowza is running

when I stop wowza, no issue but when I start it and I let it up during one week, it increases slowly and never releases it

any idea what’s the problem ?

I use :

Wowza Media Server 3 Perpetual Edition 3.1.2 build1624

Java Version: 1.7.0\_05 (64 bits)

and I configured setenv.sh with : JAVA\_OPTS="-Xmx4000M"

my server has :

4 vCPU

4 GB RAM

Regards

Nicolas

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [July 17, 2012, 9:56am UTC](https://community.wowza.com/t/slow-memory-leak/37498/2 "2012-07-17T09:56:52Z")

</div>

Hi

Which GC are you using?

Jason

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [July 18, 2012, 3:52pm UTC](https://community.wowza.com/t/slow-memory-leak/37498/3 "2012-07-18T15:52:28Z")

</div>

Nicolas,

Take a look at the tuning guide

[https://www.wowza.com/docs/how-to-do-performance-tuning](https://www.wowza.com/docs/how-to-do-performance-tuning)

And take a look at JMX/JConsole

[https://www.wowza.com/docs/quick-start-guides](https://www.wowza.com/docs/quick-start-guides)

Use JConsole to monitor memory use in Wowza.

Richard

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [July 17, 2012, 3:14am UTC](https://community.wowza.com/t/slow-memory-leak/37498/4 "2012-07-17T03:14:25Z")

</div>

Nicolas,

Why do you think there is a memory leak? You’d need a good understanding of Jconsole and Java GC to identify such a thing. Java doesn’t necessarily lower committed memory after a GC run.

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [July 18, 2012, 7:44am UTC](https://community.wowza.com/t/slow-memory-leak/37498/5 "2012-07-18T07:44:56Z")

</div>

Look into these settings to understand how Java frees up allocated RAM:

-XX:MaxHeapFreeRatio=

-XX:MinHeapFreeRatio=

You can lower your heap size if you’d like more RAM to be available: -Xmx2000M

---

<div class="post-metadata">

**Author:** ![Nicolas\_Vanhaute](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@Nicolas\_Vanhaute](https://community.wowza.com/u/Nicolas_Vanhaute)\
**Post date:** [July 18, 2012, 8:49am UTC](https://community.wowza.com/t/slow-memory-leak/37498/6 "2012-07-18T08:49:20Z")

</div>

> Nicolas,
> 
> Why do you think there is a memory leak? You’d need a good understanding of Jconsole and Java GC to identify such a thing. Java doesn’t necessarily lower committed memory after a GC run.

Hi Randall,

I can see memory leak because each day when I do a “top”, I can see that java is using each day more and more memory.

Sorry I’m not a java expert, so tell me how to know GC used ?

And again, it’s just because of “top” command that I see this memory usage increases… if it’s normal, np, it was just a question 🙂

Regards

Nicolas
