Hello,
We have happily been using Stash for almost 5 months, with no real issues. However, I have just had to reboot our Stash Server, and since doing so, Stash has become almost unresponsive.
When digging into it, we are seeing very high CPU usage by the git-upload-pack process. This seems to be triggered when we try to start a build from TeamCity. This process has now been running for over 40 minutes, and doesn't show any sign of stopping. I have read that the need for running this process is to clean up loose objects in the repository, before sending over the wire to clients, like TeamCity. Is my understanding here correct. If so, is there anything that can be done to improve this?
The system, as is, is almost unusable 
I have read also about using git gc to clean up loose objects in the repository, which should make the need for an extensive git-upload-pack less, if this is the case, how can I run this on Stash? Should I also run it on the cloned repository in the TeamCity working folder?
Any guidance you can provide in getting this resolved would be greatly appreciated!
Thanks!
Gary