|
From: Leif M. <lei...@ta...> - 2009-08-01 06:01:36
|
James, UNIX OSs normally kill all processes launched by a terminal session when that terminal is closed to prevent zombie processes from being left around. When you run "jboss console", you are telling the Wrapper to run the Wrapper directly within that terminal so the console output can be viewed directly. If you want the Wrapper to remain after the terminal is closed, the Wrapper must detach itself and run as a daemon process. This is done by running "jboss start". You can then stop the Wrapper by running "jboss stop". Hope this helps, Cheers, Leif On Sat, Aug 1, 2009 at 8:03 AM, James Dekker<jam...@gm...> wrote: > Hello there, > > I am having trouble running JBoss as a service on a remote Fedora 8 > (32 bit) server through which I access by doing SSH... > > Have installed JBoss 5.1.0 GA under the root user and didn't create a > jboss user. > > Installed the wrapper from Tanuki Software and followed the > instructions... > > http://wrapper.tanukisoftware.org/doc/english/integrate-simple-nix.html > > My wrapper.conf looks like this: > > wrapper.java.command=/usr/java/jdk/bin/java > wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp > wrapper.java.classpath.1=/usr/jboss-5.1.0.GA/lib/wrapper.jar > wrapper.java.classpath.2=/usr/jboss-5.1.0.GA/bin/run.jar > wrapper.java.classpath.3=/usr/java/jdk/lib/tools.jar > wrapper.java.library.path.1=/usr/jboss-5.1.0.GA/lib/ > wrapper.java.additional.auto_bits=TRUE > > # Java Additional Parameters > wrapper.java.additional.1=-Dprogram.name=run.sh > wrapper.java.additional.2=-Dorg.jboss.resolver.warning=true > wrapper.java.additional.3=-Dsun.rmi.dgc.client.gcInterval=3600000 > wrapper.java.additional.4=-Dsun.rmi.dgc.server.gcInterval=3600000 > wrapper.java.additional.5=-Djboss.bind.address=0.0.0.0 > wrapper.java.additional.6=-Xdebug-Xrunjdwp:transport=dt_socket > wrapper.java.additional.7=-Djava.net.preferIPv4Stack=true > > # Initial Java Heap Size (in MB ) > wrapper.java.initmemory=128 > #-Xms128m -Xmx512m -XX:MaxPermSize=256m > # Maximum Java Heap Size (in MB) > wrapper.java.maxmemory=256 > > # Application parameters. Add parameters as needed starting from 1 > wrapper.app.parameter.1=org.jboss.Main > > Now, when I go to $JBOSS_HOME/bin and type in jboss console > > It runs and I am able to launch a browser and see the JBoss Management > Console by doing this: > > http://serveripaddress:8080 > > But since I am logging into this server using SSH, whenever I close > the SSH terminal bash shell's window, > > It shutdowns and I am unable to view the jBoss Management Console: > > http://serveripaddress:8080 > > "Page cannot be displayed".... > > Is there a way to keep JBoss running by being able to close the remote > SSH session? > > Would appreciate if someone could help me with this or point me in the > right direction... > > -James |