In some rare cases, Bitbucket fails to release SSH and HTTP SCM hosting tickets and Git processes are running on the server for a time longer than the timeout.
When inspecting the details of the SCM commands not terminating, they are related to clones.
A restart will reset the ticket count.
Bitbucket will release hosting tickets when necessary.
SCM hosting tickets are not always released.
This can potentially lead to Bitbucket queueing requests and, in extreme cases, rejecting those requests.
One way to identify this is to check for Git commands that have been running since a long time.
Here is an example of such processes:
In this case, collected on the 28th of March, these processes have been running for over 2 days while the the default timeout value (plugin.bitbucket-git.hosting.timeout.execution) is 24 hours.
Also, there is no CPU usage on these processes.
Restart Bitbucket (only the affected node for a Data Center installation) when requests start to queue up or are being rejected.
Upgrade to 6.0.0, 5.13.5, 5.14.3, 5.15.2, 5.16.1 or above.