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

Possible mongos memory leak

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.0-rc2, 2.3.0
    • Affects Version/s: 2.2.0-rc1
    • Component/s: Sharding
    • None
    • Environment:
      CentOS 6.2
    • Linux

      I setup a 2 shard cluster with auth. With a continuous query load of around 1000/sec the mongos process seems to keep chewing up memory until the OS kills the process:

      Out of memory: Kill process 2567 (mongos) score 950 or sacrifice child
      Killed process 2567, UID 502, (mongos) total-vm:8987492kB, anon-rss:7738860kB, file-rss:16kB

      In this case I had upgraded the test server to 8GB of ram to make sure it would still occur and with 8GB it took right around an hour to use up all the memory and swap space before the OS killed it.

        1. investigation-mongos-with-google-profiler.tgz
          195 kB
          Azat Khuzhin
        2. momngos-t1.pdf
          14 kB
          Ben Becker
        3. momngos-t2.pdf
          13 kB
          Ben Becker
        4. momngos-t3.pdf
          13 kB
          Ben Becker
        5. mongos.tgz
          18.67 MB
          Azat Khuzhin

            Assignee:
            benjamin.becker Ben Becker
            Reporter:
            alaphoid Jonathan Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: