Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-53527

libdeps visualizer: backend should have a memory limit option

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Dev Platform 2022-07-25

      Currently the backend will load graphs into memory unlimited, until out of memory occurs and the backend crashes.

       

      The backend should have an option to set the max memory it is allowed to use for graph allocation. Currently each graph is cached as it stored, so that it doesn't need to reload a given graph if the frontend requests analysis for that graph. The load time for a graph is several seconds so its not desirable to always reload them.

       

      The storage of the graphs into the backends application memory should use a least recently used algorithm for removing graph data to make room for new graph data in order to stay under the memory limit. However the algorithm to use is up for debate if any one has better ideas.

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: