> i kicked apache, and the number of active connections dropped from ~500 to
> ~100...Â things are much snappier now.
Hiya! I maintain ci.jenkins.io for the Jenkins project (among other things) and
have some snippets of code you can use to help reduce load on the Jenkins
instance, which can lead to performance issues.
Basically we had found that a number of automated requests would access /api/*
paths, which can access Jenkins' tree-based data (this is okay) with an
arbitrarily deep level of the tree (not okay). We would see thousands of
request per day from bots requesting a 100+ depth view on our data model, which
Jenkins would spend many CPU cycles trying to service.
We just bocked a bunch of anonymous request and that solved many of our load
issues not directly related to running Jenkins Pipelines.
I can be found in #jenkins-infra on Freenode as "rtyler" if you have more
questions on how to improve Jenkins performance :)