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
Nicolas,
Take a look at the tuning guide
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
Use JConsole to monitor memory use in Wowza.
Richard
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.
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
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