Skip to content

Getting 80-100% CPU usage in the browser #270

Closed

Description

@cf-opsmanager-bot

Complex pipeline with ~2 dozen jobs and many resources. The UI is nearly unresponsive and the Chrome task manager says the tab is using 80-100% of the CPU.

Activity

  1. concourse-bot commented on Feb 3, 2016

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. locallycompact commented on Feb 4, 2016

    @locallycompact

    A browser profile reveals that on large pipelines its spends 85% of the CPU time in EdgeTarget.prototype.rankOfFirstAppearance (https://github.com/concourse/atc/blob/master/web/public/graph.js#L849), that seems to happen a lot. Is this recomputing the build graph?

  3. xoebus commented on Feb 4, 2016

    @xoebus
    Contributor

    Yep but that only happens once every 5 seconds or so for about 500ms or so. This admitedly still isn't great but we don't think it's the main cause of the constantly high CPU usage. We're suspecting some machines and browsers don't offload the build animations onto the GPU and instead peg the CPU.

    :webdevelopment:

  4. locallycompact commented on Feb 4, 2016

    @locallycompact

    Have you tried this with a pipeline with ~200-300 resources and build steps? It's easily spending over 4 seconds out of a 5 second cycle in that function alone.

  5. xoebus commented on Feb 4, 2016

    @xoebus
    Contributor

    Nope, never one that big but we have seen constant 90% CPU usage on a small pipeline that can compute that quickly.

    The layout might be cacheable if the pipeline hasn't structurally changed.

  6. matt-royal commented on Feb 18, 2016

    @matt-royal

    One more piece of data that may help: On our iMac running Yosemite, the Chrome tab has ~100% CPU usage, while the same view in Safari is ~50%. The Chrome tab hung regularly and was difficult to navigate, while the Safari tab was mostly smooth with short freezes about every 6 seconds.

  7. concourse-bot commented on Feb 18, 2016

    @concourse-bot

    Hello again!

    All stories related to this issue have been accepted, so I'm going to automatically close this issue.

    At the time of writing, the following stories have been accepted:

    If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary!

  8. Eulerizeit commented on Nov 17, 2016

    @Eulerizeit

    Potentially reopening this. Concourse version: v2.4.0 macbook pro. Chrome task manager indicates the tab is using 25% of CPU when tests are running and 15% when the tests are not. Using Brave Browser doesn't seem to help much.

    Attempted to use https://concourse-summary-crystal.cfapps.io/ thinking it might be the SVG rendering. This managed to reduce the use to 11% which still seems high.

  9. sbkg0002 commented on Sep 26, 2017

    @sbkg0002

    Any news on this? Even on i5 6xxx series machines with 16GB RAM, opening a pipeline takes ~25% CPU.

  10. jama22 commented on Sep 26, 2017

    @jama22

    @sbkg0002 we're always looking at ways to improve the web experience. That said, the Concourse team is looking at redesigning the pipeline view without SVG graphics to make it more efficient. This is a work in progress so look forward to seeing new designs in our issue tracker very soon!

  11. sbkg0002 commented on Sep 27, 2017

    @sbkg0002

    Thanks @jama-pivotal good to hear it is on the radar 👍

  12. added a commit that references this issue on May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions