Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72308

Massive slowdown with Firefox due to usage of locale and time formatting (js) when using Pipeline Stage View Plugin

      Hi,

      I'm experiencing massive slowdown with Jenkins in its web interface.

      I've had a quick look and it seems to be related to ICU's usage for formatting date and time.

      Here's a Firefox profile:

      https://share.firefox.dev/47mWWnJ

      We are currently using Jenkins version 2.427

      Cheers,

      Alex

          [JENKINS-72308] Massive slowdown with Firefox due to usage of locale and time formatting (js) when using Pipeline Stage View Plugin

          Alexandre added a comment -

          Maybe the problem is that the js code creates a formatter each time it needs one.

          If so, one solution could be to have a single global formatter that you can re-use.

          Alexandre added a comment - Maybe the problem is that the js code creates a formatter each time it needs one. If so, one solution could be to have a single global formatter that you can re-use.

          Mark Waite added a comment -

          I installed Firefox 119.0.1 on my Windows computer and did not see any slowdown on the Jenkins 2.426.1 release candidate that I'm using. I did not see any slowdown on Jenkins 2.414.3 using ci.jenkins.io with Firefox 119.0.1.

          Can you describe your configuration in more detail so that others can duplicate the issue?

          Mark Waite added a comment - I installed Firefox 119.0.1 on my Windows computer and did not see any slowdown on the Jenkins 2.426.1 release candidate that I'm using. I did not see any slowdown on Jenkins 2.414.3 using ci.jenkins.io with Firefox 119.0.1. Can you describe your configuration in more detail so that others can duplicate the issue?

          Markus Winter added a comment -

          Could it be that you see this slowdown when looking a the full log of a run that has timestamps enabled, where the log is big (>5MiB)?

          Markus Winter added a comment - Could it be that you see this slowdown when looking a the full log of a run that has timestamps enabled, where the log is big (>5MiB)?

          Alexandre added a comment -

          Which information exactly do you need?
          I run an up to date archlinux.
          My locale is `en_US.UTF-8`.

          Alexandre added a comment - Which information exactly do you need? I run an up to date archlinux. My locale is `en_US.UTF-8`.

          Alexandre added a comment -

          I get the slowdown when looking at the build overview, not even displaying a single log.

          Alexandre added a comment - I get the slowdown when looking at the build overview, not even displaying a single log.

          Alexandre added a comment -

          I have this issue on Jenkins pipelines using the classic interface, I don't know if other type of tasks triggers it.
          If I look at the same job from the blue ocean, then it isn't slow.

          Alexandre added a comment - I have this issue on Jenkins pipelines using the classic interface, I don't know if other type of tasks triggers it. If I look at the same job from the blue ocean, then it isn't slow.

          Alexandre added a comment -

          This is how the screen looks:

          Alexandre added a comment - This is how the screen looks:

          Alexandre added a comment -

          I believe that yes, Jenkins is time stamping the logs.
          How to turn that off?

          Alexandre added a comment - I believe that yes, Jenkins is time stamping the logs. How to turn that off?

          Alexandre added a comment -

          I've tried to install firefox via flatpak and run it (it doesn't share the settings with the one from archlinux), and it was equally slow.

          Alexandre added a comment - I've tried to install firefox via flatpak and run it (it doesn't share the settings with the one from archlinux), and it was equally slow.

          Markus Winter added a comment - - edited

          As you're not accessing the log, the timestamps in the logs are not a problem then.

          Markus Winter added a comment - - edited As you're not accessing the log, the timestamps in the logs are not a problem then.

          Alexandre added a comment -

          I'm uninstalling blue ocean, I could see that it had some i18n modules, maybe that'll solve the problem.

          Alexandre added a comment - I'm uninstalling blue ocean, I could see that it had some i18n modules, maybe that'll solve the problem.

          Alexandre added a comment -

          Uninstalling blue ocean didn't fix it.

          Alexandre added a comment - Uninstalling blue ocean didn't fix it.

          Markus Winter added a comment -

          try uninstalling stage view plugin

          Markus Winter added a comment - try uninstalling stage view plugin

          Alexandre added a comment -

          Yeah the stage view was causing all the problems, now it is fast again!

          Alexandre added a comment - Yeah the stage view was causing all the problems, now it is fast again!

          Alexandre added a comment -

          We'll be using the graph view from now on.

          Alexandre added a comment - We'll be using the graph view from now on.

          Markus Winter added a comment -

          Did you start your Jenkins with -Dcom.cloudbees.workflow.rest.external.JobExt.maxRunsPerJob with a high value?

          normally this is set to 10 so it should not have a big impact, but when you have a high value here then that could impact performance as all it needs to display so many runs

          Markus Winter added a comment - Did you start your Jenkins with -Dcom.cloudbees.workflow.rest.external.JobExt.maxRunsPerJob with a high value? normally this is set to 10 so it should not have a big impact, but when you have a high value here then that could impact performance as all it needs to display so many runs

          Alexandre added a comment -

          I have no idea, I'm not responsible for starting Jenkins.
          Can I find out from the web interface?

          Alexandre added a comment - I have no idea, I'm not responsible for starting Jenkins. Can I find out from the web interface?

          Mark Waite added a comment -

          The "Manage Jenkins" / "System information" page includes the list of system properties. If that is defined, it would be listed as a system property.

          Mark Waite added a comment - The "Manage Jenkins" / "System information" page includes the list of system properties. If that is defined, it would be listed as a system property.

          Alexandre added a comment -

          We have no special configuration, it is using the default settings.

          Alexandre added a comment - We have no special configuration, it is using the default settings.

            Unassigned Unassigned
            abique Alexandre
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: