If you have issues with GC, OOM Exceptions or use the debugger (and have stopped threads) it might possible that the server will not successful shutdown via management interface.
Maybe I should have been more specific in my question. Could someone provide a script to shutdown JBoss 7.1.1.FInal?
Thanks, - Dave
You use the correct command to shutdown a server via the CLI.
I recommend to not use some kind of automatic to kill a JBoss instance if it can not be shutdowned gracefully.
This is not a save method and need human intervention.
Unix version save the PID in a file and a "kill -9" will most probably take care of the not-so-graceful shutdown
I guess something similar can be used in Windows, perhaps by using sysinternals tools for checking which process holds a lock to modules jar and calling pskill on that.