Can a Host Controller be killed using "kill -9 PID " command ?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Issue
- What happens if the Host Controller is killed ?
- Is there a possiblitiy to stop a host controller without stopping all jboss servers related to that host controller
Resolution
- In Domain mode, as long as the process controller is not stopped or killed, the host controller will be running.
- When the Process Controller is up and the host controller is killed via the "kill -9 PID" command , a new Host controller will be started within a sec and the servers on the previous host controllers will be reconnected to the new host Controller.
- One can verify the above from the console :
2:18:49,147 INFO [org.jboss.as.process.Host Controller.status] (reaper for Host Controller) JBAS012010: Process 'Host Controller' finished with an exit status of 137
22:18:49,148 INFO [org.jboss.as.process-controller.server] (reaper for Host Controller) JBAS012020: Waiting 1 seconds until trying to restart process Host Controller.
22:18:50,150 INFO [org.jboss.as.process.Host Controller.status] (reaper for Host Controller) JBAS012017: Starting process 'Host Controller'
- If you want to kill just the host controller, "kill -9
" will kill the host-controller and as mentioned previously, a new Host controller will be started within a sec and the servers on the previous host controllers will be reconnected to the new host controller, i.e the servers related to the host controller will not shut down.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
