1 Reply Latest reply on Nov 16, 2005 8:33 PM by Adrian Brock

    Jboss Wrapper Restarts without warning

    eafigbo Newbie

      We are running 4 instances of jboss 4.0.3 on one linux server. We manage the instances using tanuki java service wrapper version 3.1.2.
      Over time we have noticed some disturbing behavior. Every once in a while one of the appserver instance restarts. The main problem is that not all the child processes of the instance are killed when it shuts down and this makes the appserver instance not to start up cleanly due to port contention with the stale child processes.

      i would be grateful for any assistance.

      below is a section from my wrapper configuration file:

      #********************************************************************
      # Wrapper Properties
      #********************************************************************
      # Java Application
      set.JAVA_HOME=/usr/java/j2sdk
      wrapper.java.command=%JAVA_HOME%/bin/java

      set.JBOSS_CONFIG=all
      set.JBOSS_HOME=/usr/local/appservers/jboss4_b
      set.JBOSS_LOG=%JBOSS_HOME%

      # Use new ticker
      wrapper.use_system_time=FALSE

      # Java Main class
      wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp

      # Java Classpath (include wrapper.jar) Add class path elements as
      # needed starting from 1
      wrapper.java.classpath.1=%JBOSS_HOME%/lib/wrapper.jar
      wrapper.java.classpath.2=%JBOSS_HOME%/bin/run.jar
      wrapper.java.classpath.3=%JAVA_HOME%/lib/tools.jar

      # Java Library Path (location of Wrapper.DLL or libwrapper.so)
      wrapper.java.library.path.1=%JBOSS_HOME%/lib

      # Java Additional Parameters
      wrapper.java.additional.1=-Dprogram.name=run.sh
      wrapper.java.additional.2=-Djava.endorsed.dirs=%JBOSS_HOME%/lib/endorsed
      wrapper.java.additional.3=-Djboss.partition.name=SocketWorks_B_TEMP
      wrapper.java.additional.4=-Djboss.partition.udpGroup=228.1.2.10
      wrapper.java.additional.5=-server


      # Initial Java Heap Size (in MB)
      wrapper.java.initmemory=128

      # Maximum Java Heap Size (in MB)
      wrapper.java.maxmemory=512

      # Application parameters. Add parameters as needed starting from 1
      wrapper.app.parameter.1=org.jboss.Main
      wrapper.app.parameter.2=-c
      wrapper.app.parameter.3=%JBOSS_CONFIG%

      # Port which the native wrapper code will attempt to connect to
      #wrapper.port=1777

      wrapper.startup.timeout=300
      wrapper.ping.timeout=300
      wrapper.shutdown.timeout=300
      wrapper.disable_shutdown_hook=TRUE
      wrapper.request_thread_dump_on_failed_jvm_exit=TRUE

      #********************************************************************
      # Wrapper Logging Properties
      #********************************************************************
      # Format of output for the console. (See docs for formats)
      wrapper.console.format=PM

      # Log Level for console output. (See docs for log levels)
      wrapper.console.loglevel=INFO

      # Log file to use for wrapper output logging.
      wrapper.logfile=%JBOSS_LOG%/server.log

      # Format of output for the log file. (See docs for formats)
      wrapper.logfile.format=LPTM

      # Log Level for log file output. (See docs for log levels)
      wrapper.logfile.loglevel=INFO

      # Maximum size that the log file will be allowed to grow to before
      # the log is rolled. Size is specified in bytes. The default value
      # of 0, disables log rolling. May abbreviate with the 'k' (kb) or
      # 'm' (mb) suffix. For example: 10m = 10 megabytes.
      wrapper.logfile.maxsize=2m

      # Maximum number of rolled log files which will be allowed before old
      # files are deleted. The default value of 0 implies no limit.
      wrapper.logfile.maxfiles=0

      # Log Level for sys/event log output. (See docs for log levels)
      wrapper.syslog.loglevel=INFO

      wrapper.filter.trigger.1=java.lang.OutOfMemoryError

      wrapper.filter.action.1=RESTART

      wrapper.filter.trigger.2=too many open files

      wrapper.filter.action.2=RESTART

      #********************************************************************
      # Wrapper NT Service Properties
      #********************************************************************
      # WARNING - Do not modify any of these properties when an application
      # using this configuration file has been installed as a service.
      # Please uninstall the service before modifying this section. The
      # service can then be reinstalled.

      # Name of the service
      wrapper.ntservice.name=@app.name@

      # Display name of the service
      wrapper.ntservice.displayname=@app.long.name@

      # Description of the service
      wrapper.ntservice.description=@app.description@

      # Service dependencies. Add dependencies as needed starting from 1
      wrapper.ntservice.dependency.1=

      # Mode in which the service is installed. AUTO_START or DEMAND_START
      wrapper.ntservice.starttype=AUTO_START

      # Allow the service to interact with the desktop.
      wrapper.ntservice.interactive=false