We have this weird issue, where git ls -remote command will suddenly start timing out.
There will be no error logged in bitbucket server, issue will be resolved for some time after the service is restarted.