We don’t recommend going beyond 10GB of Java heap space. I would certainly look at seeing if you can replicate this without any custom modules being involved in the mix.
You could also look at adding the following to [wowza-install-path]/conf/Tune.xml (within the tag)
It may provide some insight if it happens again. If it is replicable within the core Wowza product without any custom code enabled then I’d suggest raising this as a support ticket, quoting this forum thread. The heap dump file would also be very useful.
If you check your access logs (found in your [install-dir]/logs, and you find SKIP messages, this normally means that your hardware/OS is struggling to keep up with your transcoding process. This would depend on the quality of the video that you are ingesting and decoding, and the quality of the output bit rate renditions that you are encoding. If you find these, you might want to tune your server using our Tuning guide.
I was running into the same problems, with 32G of memory. The only custom module running is a slight modification of the one found here: http://thewowza.guru/application-http-provider-manager/, which as far as I can tell shouldn’t be doing anything for most of the time. Our setup at the moment is running about 14 live streams across 2 applications.
The problem for me seems to have started once I turned on the transcoder add-on (transrating audio on 1 stream, and 1 stream involving a full transcoding, though the latter stream is sometimes not connected). After running for 2-3 days (often over a weekend), Wowza throws the “Unexpected exception.: java.lang.OutOfMemoryError: Java heap space|” error. The real problem is that Wowza basically crashes, but gives no sign of it: all streams show up as connected and recording, even though they had not been working for about a day and a half as of this morning.