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

Create system memory monitor

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Dev Platform 2022-06-27, Dev Platform 2022-07-11
    • 168

      System memory will be monitored by constantly checking used memory via psutil. The interval for checking will be 0.1 seconds. This should get a good approximation of peak system memory usage without too much overhead. All the memory values over time will be stored, and can be used to diagnose system state concurrent with actions taking place at given time intervals or generating memory over time visuals. From this data we can also calculate the peak system memory, min system memory, and average memory. Because each system may be different in its ambient memory use, we use the difference of the peak memory vs the starting memory or min memory to find a baseline value from which to compare other build variants with.

       

       

      Json format:
      {
       system_memory: 
      	{
      	 mem_over_time:{[
      		timestamp: <datetime timestamp>(3),
                 memory: <long>(3)
      	 ]}
       min: <long>(2),
      	 max: <long>(2),
      	 arithmetic_mean: <long>(2),
      	 start_mem: <long>(2)
      }
      }
      
      
      

       

            Assignee:
            richard.samuels@mongodb.com Richard Samuels (Inactive)
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: