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

too much (virtual) memory allocated on getmore under edge condition

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.7.0
    • Affects Version/s: 2.0.0
    • Component/s: None
    • Fully Compatible

      large BufBuilder (4mb) is malloc'd ahead of acquiring DBRead lock. if thousands of clients, waiting on a slow write, the allocated bytes would be gigabytes.

      this would mostly just be virtual memory i guess, but still not a good thing. (and behavior could vary by operating system virtual memory manager)

            Assignee:
            dwight@mongodb.com Dwight Merriman
            Reporter:
            dwight@mongodb.com Dwight Merriman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: