Autorefresh reloads images causing performance issue

Article ID:204955700
1 minute readKnowledge base

Issue

  • Autorefresh causes performance issue.

  • JENKINS-19828.

  • Static images get loaded when page autorefresh enabled.

  • You are receiving the following error:

2020-12-12 07:30:27.568+0000 [id=18] WARNING hudson.Functions#configureAutoRefresh: Failed to record auto refresh status in telemetry
java.lang.IllegalStateException: Expected 1 instance of jenkins.telemetry.impl.AutoRefresh but got 0
at hudson.ExtensionList.lookupSingleton(ExtensionList.java:451)
at hudson.Functions.configureAutoRefresh(Functions.java:655)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Resolution

The auto refresh capability has been removed since Jenkins 2.235.1 to address performance issues. If you are running an earlier version of Jenkins and not able to upgrade, here are a few ways to workaround the caching issues:

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.