4 Replies Latest reply on Feb 19, 2013 6:02 AM by Nicklas Karlsson

    A script to shutdown JBoss, once and for all

    D. Alvarado Newbie



      I'm using JBoss AS 7.1.1.Final.  Does anyone have a script that will stop a running JBoss server process, no matter what?  I have tried this



      sh jboss-cli.sh --connect --command=:shutdown


      but this doesn't always work.  I haven't pin-pointed all the times when it doesn't work, but for example, once my server died with an OutOfMemroy permGen space error, and the above was useless.


      So, very grateful for any scripts you have that will stop any running JBoss server. In my installation, I haven't changed any of the default ports, but I have enabled port 8787 for Eclipse debugging.


      Thanks, - Dave