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

Shards crash fairly frequently when memory is low

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.3, 2.1.0
    • Affects Version/s: 2.0.2
    • Component/s: Sharding, Stability
    • Environment:
      Linux macbeast 2.6.32-37-server #81-Ubuntu SMP Fri Dec 2 20:49:12 UTC 2011 x86_64 GNU/Linux
      Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
    • Fully Compatible
    • Linux

      Another process on the box consumed a ton of memory, and the machine started swapping/thrashing. About a minute later, the shard crashed. I've attached the log file (cleaning out the irrelevant stuff). I would assume that even when the memory is low, the server shouldn't crash.

      This has happened 5 times in the last week. I'm sharing the box with a memory hog, but I still don't think that my database should crash if another user's process goes out of control (or maybe it should, please correct me if I'm wrong).

      There are two files, the mongodb1.log one is what I saw in the shard's log, and mongos.log is what I saw on the mongos log. The config server is on port 27030, the shard that crashed was listening on port 27021.

      On Wednesday at 10:50AM, I tried to kill the shard process (there's a line in the mongodb1.log). That didn't do anything, so I resorted to kill -9.

        1. mongos.log
          1 kB
        2. mongodb1.log
          35 kB

            Assignee:
            greg_10gen Greg Studer
            Reporter:
            jordan.frank@cs.mcgill.ca Jordan Frank
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: