Over the last 3-4 days i have noticed Java using all available RAM, to the point of the system crashing. A system reboot fixes it. I have watched the RAM from a reboot and it starts off very low and escalates quickly.
I get this error just before loss of video: Unexpected exception.: java.lang.OutOfMemoryError: Java heap space|
I set the Heap size to 4Gb which is between development and production. It appears that the Wowza server completely ignores this heap size and allocates all RAM to it anyway. I have seen from the usage graph that after about an hour after reboot the heap and the memory are both clipping on the red line.
The system is a 64-bit Win7 machine, with an i7 3.5Ghz processor and 8Gb of RAM. There are 6 incoming UDP streams of 1.8Mb per stream. Wowza software is 4.0.6.
It is worth noting that we have a nearly identical system that is running the same script, same parameters, same load, but on an i3/4GB RAM machine (Wowza 4.1.0) and it barely breaks a sweat.
There is something not right here. Could we be getting garbage video from the encoder in such a volume that the GC cant get rid of it? would there be other symptoms?