How to stop Bamboo from shutting itself down and restarting

Still need help?

The Atlassian Community is here for you.

Ask the community

If the Bamboo server is shutting itself down and restarting multiple times during the day, there might be a problem with Bamboo's service wrapper.

Symptoms

Bamboo Server (running from the command line or running as a Windows service) starts up fine, but after some random period, the wrapper fails and kills the Bamboo instance. The same behavior can happen to Bamboo remote agent if the wrapper is used. These errors might be logged:

..
ERROR  | wrapper  | 2012/09/12 10:44:34 | JVM appears hung: Timed out waiting for signal from JVM.
ERROR  | wrapper  | 2012/09/12 10:44:34 | JVM did not exit on request, terminated

OR

INFO   | wrapper  | 2009/01/28 15:24:34 | Wrapper Process has not received any CPU time for 11 seconds.  Extending timeouts.
..
INFO   | jvm 1    | 2009/01/28 15:28:17 | 2009-01-28 15:28:17,299 INFO [ActiveMQ ShutdownHook] [TransportConnector] Connector vm://bamboo Stopped
INFO   | jvm 1    | 2009/01/28 15:28:17 | 2009-01-28 15:28:17,721 INFO [ActiveMQ ShutdownHook] [BrokerService] ActiveMQ JMS Message Broker (bamboo, ID:BSYTEST5-4449-1233174172549-1:0) stopped
STATUS | wrapper  | 2009/01/28 15:28:18 | <-- Wrapper Stopped

Cause

Bamboo's service wrapper comes with a timeout that specifies the interval at which the JVM is pinged. A response is expected during that interval. If the JVM is too busy, it will not respond to the ping in time.

wrapper.ping.timeout defines the timeout in seconds. 0 means that it will never time out. The default value of this setting is 30 seconds.

Resolution

Increase the timeout in the wrapper's configuration. To do this, add the following line to the <Bamboo-Install>/conf/wrapper.conf file if it does not exist and restart the Bamboo instance (the same can be done for a Bamboo remote agent by editing the <Bamboo-Agent-Home>/conf/wrapper.conf file if the remote agent is having the same problem).


wrapper.ping.timeout=90

If any elastic agents are running, ensure that they are shut down before restarting the Bamboo server. If the elastic instances are not shutdown before restarting, they will continue to run and become orphaned from your Bamboo server.



Last modified on Jun 3, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.