Results 1 to 6 of 6

Thread: slow memory leak

  1. #1
    Join Date
    Oct 2011
    Posts
    26

    Default slow memory leak

    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

  2. #2
    Join Date
    Sep 2011
    Posts
    1,931

    Default

    Hi
    Which GC are you using?

    Jason

  3. #3

    Default

    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.

  4. #4
    Join Date
    Oct 2011
    Posts
    26

    Default

    Quote Originally Posted by randall View Post
    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

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Nicolas,

    Take a look at the tuning guide
    http://www.wowza.com/forums/content....ormance-tuning

    And take a look at JMX/JConsole
    http://www.wowza.com/forums/content....tart-guide#jmx

    Use JConsole to monitor memory use in Wowza.

    Richard

  6. #6

    Default

    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

Posting Permissions

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