One of our customers reported intermittent problems with slow page loading. Looking at the slow-request logs, we saw that the majority of them were caused by pages waiting for the Pipeline Maven Administrative Monitor to run:
We can see this on loading the main page, job pages, and even build log pages. The plugin has the default configuration, and actually is not being used by the customer, so this doesn't seem related to plugin config or number of jobs. The customer confirms that only administrative users experience the slow page loading, so that seems to confirm that the admin monitor is the issue.
This admin monitor check runs some SQL queries against the default H2 in-memory database and raises a warning if there are too many entries in it, suggesting that they use an external DB instead. The results of this check should probably be cached, instead of running the full check on every page load.
May be related to https://issues.jenkins-ci.org/browse/JENKINS-62358
Pipeline Maven 3.7.1
|Resolution||Fixed [ 1 ]|
|Status||Open [ 1 ]||Closed [ 6 ]|