Stopping the application server

Stopping the application server can be done in several ways. Sending an interrupt signal (Ctrl + C) will interrupt the server abruptly, so it's not a recommended option.

So it is sending a kill -9 signal from the terminal against the application server process which is an extreme option to be used when the application server is not responsive through management channels.

The recommended approach is to connect through the Command Line Interface and execute the shutdown command:

  1. Execute jboss-cli.sh from JBOSS_HOME/bin.
  2. Once in the command line prompt, execute the connect command:
    [disconnected /] connect 127.0.0.1:9990
    Connected to 127.0.0.1:9990 
    
  3. Now issue the shutdown command that will stop the application server: ...

Get Mastering JBoss Enterprise Application Platform 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.