• How to disable JVM signal-handling

    The -Xrs JVM command-line option allows you to tell the Java Virtual Machine to ignore the SIGSEGV and SIGABRT signals that are generated by the operating system if these signals are preventing your Wowza media server from functioning.

    In Wowza Streaming Engine™ and Wowza Media Server™ software, you can create the -Xrs flag in the [wowza-install]/bin/startup.sh file (or corresponding Windows file) by adding:

    JMXOPTIONS=-Dcom.sun.management.jmxremote=true
    JMXOPTIONS="$JMXOPTIONS -Xrs"
    On the Unix operating system, you can use the sync system call to configure the system to disable handling of the SIGSEGV, SIGFPE, SIGBUS, SIGILL, SIGTRAP, and SIGABRT signals. The command would be:

    -Xrs:sync
    Notes:
    • In each case, you can expect a 2-4 percent performance degradation.

    • The JVM can't generate heap dumps for signals such, as SIGSEGV and SIGABRT, because it no longer intercepts these signals.

    Originally Published: For Wowza Streaming Engine on 01-26-2016.

    If you're having problems or want to discuss this article, post in our forum.