Hello!

I try this:

service red5 status
response: red5-highperf is running

Problem, the crashed OM is not unlink pid file!


The serice is crasher Out of memory error!
[ERROR] [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-10] org.quartz.core.JobRunShell - Job DEFAULT.sessionClearJob threw an unhandled Exception:
java.lang.OutOfMemoryError: PermGen space
[ERROR] [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-10] org.quartz.core.ErrorLogger - Job (DEFAULT.sessionClearJob threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception.
at org.quartz.core.JobRunShell.run(JobRunShell.java:224) ~[quartz-2.1.6.jar:na] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz-2.1.6.jar:na]
java.lang.OutOfMemoryError: PermGen space
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f22911c59c0, pid=22900, tid=139785646311168
#
# JRE version: 6.0_32-b05
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.7-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# j org.springframework.scheduling.quartz.JobMethodInvocationFailedException.<init>(Lorg/springframework/util/MethodInvoker;Ljava/lang/Throwable;)V+5
#
# An error report file with more information is saved as:
# /opt/3.1.0/790/red5/hs_err_pid22900.log
                 -------------
  0  (0x00000000fffff2d8)  [00|00|    2]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 -------------
  1  (0x00000000fffff2f8)  [00|00|    4]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 -------------
  2  (0x00000000fffff318)  [00|00|    5]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 -------------
  3  (0x00000000fffff338)  [00|00|    7]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 -------------
  4  (0x00000000fffff358)  [00|00|    8]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 -------------
  5  (0x00000000fffff378)  [00|00|   10]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 -------------
  6  (0x00000000fffff398)  [00|00|   11]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 [   0x0000000000000000]
                 -------------
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp

This not exactly!

main red5 in init.d:

/etc/init.d# cat red5
#!/bin/bash
# For RedHat and cousins:
# chkconfig: 2345 85 85
# description: Red5 flash streaming server
# processname: red5
# Created By: Sohail Riaz ([email protected])
# Modified by Alvaro Bustos

PROG=red5-highperf
#PROG=red5
RED5_HOME=/opt/red5
DAEMON=$RED5_HOME/$PROG.sh
PIDFILE=/var/run/$PROG.pid

# Source function library
# . /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/red5 ] && . /etc/sysconfig/red5

RETVAL=0

case "$1" in
    start)
    echo $DAEMON
#echo -n $"Starting $PROG: "/usr/lib/libreoffice/program/soffice "-accept=socket,host=127.0.0.1,port=8100,tcpNoDelay=1;urp;" -headless -nodefault -nofirststartwizard -nolockcheck -nologo -norestore & sleep 1
    cd $RED5_HOME
start-stop-daemon --start --chuid nobody --pidfile $PIDFILE --chdir $RED5_HOME --background --make-pidfile --exec $DAEMON >/dev/null 2>/dev/null &
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
        echo $! > $PIDFILE
#        touch /var/lock/subsys/$PROG
    fi
    echo
    ;;
    stop)
        pkill soffice.bin
    cd $RED5_HOME
    sh red5-shutdown.sh
        start-stop-daemon --stop --quiet --pidfile $PIDFILE --name java
        rm -f $PIDFILE
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROG
    ;;
    restart)
    $0 stop
    $0 start
    ;;
    status)
    start-stop-daemon --status --pidfile $PIDFILE
    RETVAL=$?
    [ $RETVAL -eq 0 ] && echo "$PROG is running"
[ $RETVAL -eq 1 ] && echo "$PROG is not running and the pid file exists"
    [ $RETVAL -eq 3 ] && echo "$PROG is not running"
    [ $RETVAL -eq 4 ] && echo "$PROG - unable to determine status"
    ;;
    checkports)
    netstat -anp | grep soffice
    netstat -anp | grep java
    ;;
    *)
    echo $"Usage: $0 {start|stop|restart|force-reload|status|checkports}"
    RETVAL=1
esac

exit $RETVALA



2014-04-10 11:36 keltezéssel, Peter Dähn írta:
Hi Balazs,

I use this little script via cron... so you just need to check if the server in general is alive... this works for me...

/#! /bin/bash//
//DATUM=`date +%Y-%m-%d_%H:%M`//
///sbin/start-stop-daemon --status --pidfile /var/run/red5-highperf.pid//
//RETVAL=$?//
//     if [ $RETVAL -ne 0 ] ; then//
//
// echo "==================================================================================" >> servercheck.log// // echo "$DATUM OpenMeetings died - restart" >> servercheck.log//
//             echo "Stop"//
//             /etc/init.d/red5 stop >> servercheck.log//
//             echo "Start"//
//             /etc/init.d/red5 start >> servercheck.log//
// echo "==================================================================================" >> servercheck.log//
//
//     fi//
//exit 0/

Greetinge Peter

Am 10.04.2014 06:51, schrieb Varga Balázs:
Hello!

Howto check OM server correctly running in network supervisor program eg.: munin, nagios...etc? (Prioritante the ERROR event broken service, java process is crash and zombie, restart.sh is not solving this, require manual kill process and start again)

The checking two method: check om http server runs, response the webpage, another check room service running correctly.

If not running or crashing, call stop/kill and start procedure.

Balazs



Reply via email to