We get the 'resource limits reached' from time to time. We have increased the CPUs and Memory on the VM that Stash is running in. We would like to prevent this from taking us surpise in the furture, and please can you advise on which parameters to monitor, to give us prior warning that we need to 'Scale' Stash before we actually hit the 'Resource Limits reached' error message. For exmaple, is there a DB query we can run (or other command) to get
(i) The number of commits we have had so far in each Stash Project. We have many Stash projects each with many repositories.
(ii) How do we find the size of a repository, and ,map it back to the repository name,
(iii) How do we get an idea of level of concurrent requests we are currently getting, so that we can monitor this and compare to our throttling limits etc. Can we do this by running a query or other means? If we know this information, then ideally we can flag an alert using Monitoring software, to tell our admin team they need to look at increasing Stash resource sizes etc. We are currently using Jenkins CI software, which has the number of executors set to 4.
(iv) What is/are the log message(s) that is/are written to the log file indicating that we are about to, or have a resource limit problem. If we have this, we can check for it in our monitoring software, and if we encounter it, flag an alert accordingly.
(v) Any other ideas?
Any help is much appreciated. Thanks