Results 1 to 4 of 4

Thread: out of memory with 64gb of ram...

  1. #1

    Default out of memory with 64gb of ram...

    i have a recurring memory issue illustrated with the following error log:

    java.sql.SQLException: java.lang.OutOfMemoryError: Java heap space
    i've implemented somes mysql connections in my custom module. running ubuntu 14, 64gb of ram. java heap size set to 10240MB

    could it be related to my mysql functions ? would it be safe to increase the heap size, or 10240 is the maximum ?

    also, this error usually occurs after this: (its a edge / origin config. the errors and displayed logs occurs on the origin server)

    LB XMLParser: xmlParse() Timed out reading from 'http://xx.xx.xx.xx:1935/loadbalancerInterface?command=AAAAd5zxHRe9ucZsWWA2x7dhguH8Ox5eXEme%252BNHHPVNrBs0Rh%252Be7LsmBfQGTA%252Fb%252FpKU215RAhMog%250ArWNjfTgYzIrTIeVKEAgW%252FKpd%252BA0wBqO%252BSEHaE61I1%252BrQBakyjGYm7pX2YVrWf9dSZpQK0YCl675F%250AJVaOZV%252BNJrSyRQ%253D%253D': Read timed out|at Method)|at|at|at|at|
    any clue about something i might have done wrong ?

    i understand that the timeout could be netword related, but a bit suprising considering that both edge and origins are in the same datacenter

    thank you for your advices

  2. #2



    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 <VMOptions> tag)

    <VMOption>-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="${com.wowza.wms.AppHome}/logs"</VMOption>
    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.


  3. #3
    Join Date
    Jan 2015


    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:, 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.
    Last edited by mjanderson235; 05-11-2015 at 10:55 AM.

  4. #4
    Join Date
    Jan 2015



    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.


Similar Threads

  1. How many GB ram do i need? and how to calculate?
    By oomworld in forum General Forum
    Replies: 1
    Last Post: 07-28-2014, 05:55 AM
  2. Wowza memory RAM consumption increasing on
    By carlosjpr in forum Performance Tuning Discussion
    Replies: 14
    Last Post: 07-12-2013, 06:51 AM
  3. Concurrent live streaming limit - 2xE5645+16g ram vs 1xE3-1245+8g ram
    By braliao in forum Performance Tuning Discussion
    Replies: 5
    Last Post: 12-06-2011, 07:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts