Skip to content

[JENKINS-19828] Kill or rework auto refresh #14976

Closed

Description

@jenkins-infra-bot

The auto_refresh query parameter (and associated hudson_auto_refresh cookie) not only wreaks havoc on forms or any other pages that forget to add norefresh=true, it can cause serious performance issues in large Jenkins installations if some team members naïvely turn on auto refresh on the dashboard or some other expensive page and then go home for the night. Options:

1. Delete this (mis)feature, adding back in more AJAXy behaviors to various pages upon request.
2. Allow a Jenkins administrator to disable it for a given installation.
3. Keep it, but make the Refresh time (Functions.configureAutoRefresh) increase exponentially after each automatic refresh, resetting to 10s only after an explicit page load (if these can be somehow distinguished).


Originally reported by jglick, imported from: Kill or rework auto refresh
  • status: Closed
  • priority: Major
  • component(s): core
  • label(s): 2.0-rejected, auto-refresh, performance
  • resolution: Fixed
  • resolved: 2020-08-31T16:35:01+00:00
  • votes: 15
  • watchers: 13
  • imported: 2025-11-24
Raw content of original issue

The auto_refresh query parameter (and associated hudson_auto_refresh cookie) not only wreaks havoc on forms or any other pages that forget to add norefresh=true, it can cause serious performance issues in large Jenkins installations if some team members naïvely turn on auto refresh on the dashboard or some other expensive page and then go home for the night. Options:

1. Delete this (mis)feature, adding back in more AJAXy behaviors to various pages upon request. 2. Allow a Jenkins administrator to disable it for a given installation. 3. Keep it, but make the Refresh time (Functions.configureAutoRefresh) increase exponentially after each automatic refresh, resetting to 10s only after an explicit page load (if these can be somehow distinguished).

Activity

  1. jenkins-infra-bot commented on Oct 1, 2013

    @jenkins-infra-bot
    Author
  2. jenkins-infra-bot commented on May 31, 2014

    @jenkins-infra-bot
    Author
    danielbeck:
    • Original comment link
    • Raw content of original comment:

      Auto-refresh is a piece of crap and needs to go.

      It also breaks dialogs not designed to work with it (see linked issue), and cancels JS dialogs.

    Auto-refresh is a piece of crap and needs to go.

    It also breaks dialogs not designed to work with it (see linked issue), and cancels JS dialogs.

  3. jenkins-infra-bot commented on Jul 7, 2014

    @jenkins-infra-bot
    Author
    oleg_nenashev:

    Config AutoRefresh Plugin may be extended to support approaches #2 and #3
    https://wiki.jenkins-ci.org/display/JENKINS/Config+AutoRefresh+Plugin
    BTW, seems the changes in the core would be required as well

    It's also possible to implement a ViewProperty::isAutomaticRefreshEnabled() to manage auto-refreshes in view layouts (JENKINS-21191 provides similar feature for custom views)

  4. jenkins-infra-bot commented on Jul 7, 2014

    @jenkins-infra-bot
    Author
    danielbeck:
    • Original comment link
    • Raw content of original comment:

      Isn't "1" why we're discussing Servlet 3 to get SSE?

    Isn't "1" why we're discussing Servlet 3 to get SSE?

  5. jenkins-infra-bot commented on Jul 7, 2014

    @jenkins-infra-bot
    Author
    oleg_nenashev:
    • Original comment link
    • Raw content of original comment:

      > Isn't "1" why we're discussing Servlet 3 to get SSE?

      I suppose this is a question to Jesse. Could you give a link to this discussion?

      Additional approach: 4. Alter the default behavior in layout.jelly (disable autorefresh if norefresh is unspecified)

    > Isn't "1" why we're discussing Servlet 3 to get SSE?

    I suppose this is a question to Jesse. Could you give a link to this discussion?

    Additional approach:
    4. Alter the default behavior in layout.jelly (disable autorefresh if norefresh is unspecified)

  6. jenkins-infra-bot commented on Jul 8, 2014

    @jenkins-infra-bot
    Author
    danielbeck:
    • Original comment link
    • Raw content of original comment:

      http://jenkins-ci.org/content/thinking-about-moving-servlet-30 says (with many inline links):

      Jenkins devs are thinking about ways to update page contents post load, for example so that the list view will keep updating as stuff happens. WebSocket was discussed as an option, and then server-side events, which seems to be the current favorite.

    http://jenkins-ci.org/content/thinking-about-moving-servlet-30 says (with many inline links):

    Jenkins devs are thinking about ways to update page contents post load, for example so that the list view will keep updating as stuff happens. WebSocket was discussed as an option, and then server-side events, which seems to be the current favorite.

  7. jenkins-infra-bot commented on Jul 18, 2014

    @jenkins-infra-bot
    Author
    jglick:
    • Original comment link
    • Raw content of original comment:

      Yeah I would really advocate the first option.

    Yeah I would really advocate the first option.

  8. jenkins-infra-bot commented on Sep 2, 2014

    @jenkins-infra-bot
    Author
    danielbeck:

    Config AutoRefresh Plugin is on its own, as documented on https://wiki.jenkins-ci.org/display/JENKINS/Features+controlled+by+system+properties

    No compatibility guarantee
    In general, these switches are often experimental in nature, and subject to change without notice. If you find some of those useful, please file a ticket to promote it to the official feature.

  9. jenkins-infra-bot commented on Sep 15, 2014

    @jenkins-infra-bot
    Author
    danielbeck:
    • Original comment link
    • Raw content of original comment:

      Not sure which to resolve as Duplicate here. While the other is older, this one has more (bad) options.

    Not sure which to resolve as Duplicate here. While the other is older, this one has more (bad) options.

  10. jenkins-infra-bot commented on Oct 12, 2015

    @jenkins-infra-bot
    Author
    dam321:
    • Original comment link
    • Raw content of original comment:

      how can we turn off auto refresh ...as we do not have aut refresh enabled but our jenkins instace keeps refreshing every 20 seconds all pages in jenkins does the same. version 1.624

    how can we turn off auto refresh ...as we do not have aut refresh enabled but our jenkins instace keeps refreshing every 20 seconds all pages in jenkins does the same.
    version 1.624

  11. jenkins-infra-bot commented on Oct 12, 2015

    @jenkins-infra-bot
    Author
    jglick:
    • Original comment link
    • Raw content of original comment:

      dam321 please take it to the Jenkins users’ list rather than adding noise to the JIRA issue.

    dam321 please take it to the Jenkins users’ list rather than adding noise to the JIRA issue.

  12. jenkins-infra-bot commented on Sep 19, 2016

    @jenkins-infra-bot
    Author
    batmat:
    • Original comment link
    • Raw content of original comment:

      As a user, it's been years I always disable this. The few times I've used it, it's screwed a form I was filling in and so on. So we should indeed either:

      • simply kill it in the main code,
      • or offer a simple way for people to simply disable it totally. Like Oleg says: if the UI has a value of 0 e.g., just do not display the field at all. We could probably even use it as a progressive strategy to kill it: do that, plus define the default to 0 for new installs? And in the meantime, make a poll about that on the users list to take the temperature?

    As a user, it's been years I always disable this. The few times I've used it, it's screwed a form I was filling in and so on.
    So we should indeed either:

    • simply kill it in the main code,
    • or offer a simple way for people to simply disable it totally. Like Oleg says: if the UI has a value of 0 e.g., just do not display the field at all. We could probably even use it as a progressive strategy to kill it: do that, plus define the default to 0 for new installs? And in the meantime, make a poll about that on the users list to take the temperature?
  13. jenkins-infra-bot commented on Jan 27, 2017

    @jenkins-infra-bot
    Author
    ssbarnea:
    • Original comment link
    • Raw content of original comment:

      Why was this rejected from 2.0? This "feature" is only creating bugs and should not exist at all. There are other ways to implement refresh whenever this is needed, a generic page refresh is a disaster for so many config pages.

      A web page should never reload itself completely, it does it usually points to bad implementation. I guess the reason why this feature-bug exists is only because it is older than jQuery itself.

    Why was this rejected from 2.0? This "feature" is only creating bugs and should not exist at all. There are other ways to implement refresh whenever this is needed, a generic page refresh is a disaster for so many config pages.

    A web page should never reload itself completely, it does it usually points to bad implementation. I guess the reason why this feature-bug exists is only because it is older than jQuery itself.

  14. jenkins-infra-bot commented on Jan 27, 2017

    @jenkins-infra-bot
    Author
    danielbeck:
    • Original comment link
    • Raw content of original comment:

      Why was this rejected from 2.0?

      2.0 was a specific release 9 months ago and already was behind schedule with the changes that did make it in. This was simply out of scope for that. And given the traction Blue Ocean has I doubt we'll ever develop a replacement in core, the best I expect we'll do is kill it off. However…

      This "feature" is only creating bugs and should not exist at all. There are other ways to implement refresh whenever this is needed, a generic page refresh is a disaster for so many config pages.

      It's opt in. And apparently, the people who do that don't want to go without it, despite all the brokenness.

    Why was this rejected from 2.0?

    2.0 was a specific release 9 months ago and already was behind schedule with the changes that did make it in. This was simply out of scope for that. And given the traction Blue Ocean has I doubt we'll ever develop a replacement in core, the best I expect we'll do is kill it off. However…

    This "feature" is only creating bugs and should not exist at all. There are other ways to implement refresh whenever this is needed, a generic page refresh is a disaster for so many config pages.

    It's opt in. And apparently, the people who do that don't want to go without it, despite all the brokenness.

  15. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original duplicates from Jira: JENKINS-484]

  16. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original relates_to from Jira: JENKINS-10583]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions