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

Memory usage on dashboard, activity pages after browser is open a long time

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None
    • Blue Ocean 1.2-beta2, Blue Ocean - Candidates

      There have been occasional reports of high memory usage when keeping blue ocean open in a tab for many many hours. 

      It isn't clear what page yet, but it is worth investigating: 

       

      • Dashboard main page
      • Activity page for a given build

       

      Ideally in cases where there are running builds. What should be noted is if there is monotonically increasing memory usage for the tab. If there is - likely candidates are SSE events loading data into a store (something like mobx) which probably should be more of a buffer... 

       

       

          [JENKINS-45094] Memory usage on dashboard, activity pages after browser is open a long time

          Michael Neale created issue -
          Michael Neale made changes -
          Epic Link New: JENKINS-35749 [ 171790 ]

          Michael Neale added a comment -

          cliffmeyers kzantow - do you have tips for how to sniff out things we suspect could leak space - I am thinking some of the stores that load based on events of things - they probably just keep appending right? 

          Michael Neale added a comment - cliffmeyers kzantow - do you have tips for how to sniff out things we suspect could leak space - I am thinking some of the stores that load based on events of things - they probably just keep appending right? 
          Michael Neale made changes -
          Summary Original: Memory usage on dashboard, activity pages New: Memory usage on dashboard, activity pages after browser is open a long time
          Michael Neale made changes -
          Sprint New: Blue Ocean 1.3 [ 296 ]

          Ken Rachynski added a comment -

          My experience has been with Safari on macOS Sierra.

          I switched my Jenkins site to Blue ocean and set myself a reminder in IRC that I had (tang^) and noticed after 2.5 hours I had 2.5 GB of RAM in use. By the end of my day (7 hours of running Safari), the tab was at 4.5 GB. 

          My day was one of watching the dashboard, looking at activity pages, bouncing back to classic view for administration.

          Ken Rachynski added a comment - My experience has been with Safari on macOS Sierra. I switched my Jenkins site to Blue ocean and set myself a reminder in IRC that I had (tang^) and noticed after 2.5 hours I had 2.5 GB of RAM in use. By the end of my day (7 hours of running Safari), the tab was at 4.5 GB.  My day was one of watching the dashboard, looking at activity pages, bouncing back to classic view for administration.

          Cliff Meyers added a comment -

          Chrome Dev Tools -> Memory, take heap snapshots before and after (I would imagine that a few hours elapsed time would be plenty). We want to look for anything with an unusually high "object counts" of course.

          It could be the data cache, although those objects are usually small compared to anything you find in the DOM. My guess might be that there could be DOM elements leaking when navigating between views.

          krachynski did you happen to open the run details much during your use of the app?

          Cliff Meyers added a comment - Chrome Dev Tools -> Memory, take heap snapshots before and after (I would imagine that a few hours elapsed time would be plenty). We want to look for anything with an unusually high "object counts" of course. It could be the data cache, although those objects are usually small compared to anything you find in the DOM. My guess might be that there could be DOM elements leaking when navigating between views. krachynski did you happen to open the run details much during your use of the app?

          Ken Rachynski added a comment -

          Yes I did. I was trying to debug build errors and had to read the logs. 

          Ken Rachynski added a comment - Yes I did. I was trying to debug build errors and had to read the logs. 

          Michael Neale added a comment -

          krachynski did you leave it open while build running? or just open once at end? 

          Michael Neale added a comment - krachynski did you leave it open while build running? or just open once at end? 

          Ken Rachynski added a comment -

          Both. Sometimes I'd watch for the error message; sometimes I'd get pulled into a distraction of some sort and look after a job was complete. 

          Ken Rachynski added a comment - Both. Sometimes I'd watch for the error message; sometimes I'd get pulled into a distraction of some sort and look after a job was complete. 

            Unassigned Unassigned
            michaelneale Michael Neale
            Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: