prevent crashing when running out of database connections

Type atlassian
Reporter ssbarnea
Modified 2017-02-17T04:32:50


One common total crash for Confluence is when it does run out of database connection.

Any reliable web application should be able to resist to a peak in number of request and not to fully crash when this happens.

This is also a security issue because it means that anyone could easily bring the server down just by issuing requests to it.

The correct behavior is to stop processing new requests when this happens and to respond with HTTP 503, also logging an ERROR.