Jboss instances are normally started using run.sh in foreground or background. If the Jboss server is started in the foreground then it can be stopped by using Ctrl-c. Consider a scenario where the Jboss server is started in the background and you want to stop the server. If we kill the Jboss instance then the server will stop abruptly. The correct way of stopping a Jboss instance is by sending 15 signal.
kill -15 PID
PID is the process id of the jboss instance.
15 is the signal which will make the jboss instance to stop perfectly.
e.g. kill -15 1022