-
1. Re: how to stop jboss instance gracefully
peterj Jan 4, 2007 3:04 PM (in response to hitenb)ctrl-c works. JBoss registers a signal handler that recognizes the INT signal (produced by ctrl-c) and shuts the server down gracefully.
You could also use the shutdown.bat/sh script. It invokes a method on an mbean to do the shutdown. -
2. Re: how to stop jboss instance gracefully
cronydude Jan 4, 2007 5:21 PM (in response to hitenb)Peter,
The command 'shutdown.sh -S' shuts down the server. This will work perfectly when you have one server instance running. How do I shutdown a particular server instance for example if I have a server named 'myserver'.
Appreciate your time and help. -
3. Re: how to stop jboss instance gracefully
peterj Jan 4, 2007 6:26 PM (in response to hitenb)Try: shutdown -s hostname:9999 -S
where 'hostname' is the ip address or host name of the system running the app server, and 9999 is the JNDI port.
For example, these two command are equivalent:
shutdown -S
shutdown -s localhost:1099 -S -
4. Re: how to stop jboss instance gracefully
allvan May 23, 2017 9:04 AM (in response to hitenb)Hi, I need some help please. What if the graceful shutdown option when invoking the shutdown.bay file is not working.
Shutdown.bat invokes the jboss-cli.bat file and it's currently none responsive.
We are running JBoss on Windows server.
Another question, how dangerous is it to just do a <CNTRL>+C to initiate a shutdown?
Thank you for the help