CouchDB
  1. CouchDB
  2. COUCHDB-1429

Server stops responding after heavy load against _list function

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.1
    • Fix Version/s: None
    • Component/s: View Server Support
    • Labels:
      None
    • Environment:

      Ubuntu 11.10 on AWS EC2 t1.micro instance, ~512MB memory and no swap

      Description

      Under heavy load, CouchDB crashes and stops responding to all incoming requests.

      To reproduce this, basically:
      1. build-couchdb (1.1.1) on an EC2 t1.micro running Ubuntu
      2. Add the '42' file at the path Blitz.io is looking for (not sure the easiest way to do this natively, I inserted a rule for it at the nginx level)
      3. Run their default rush on a _list function (mine happened to do a fair amount of work,
      doing a Markdown conversion and Mustache templating)
      4. Around about the 40 concurrent user mark in my case, CouchDB dies a terrible horrible death with a
      bunch of zombie couchjs process.

      In this log https://gist.github.com/a059c4db5bce19f1df7f (warning: large!) you'll see the heavy requests being handled but suddenly crashing. The "restart" seen at the end was due to manual intervention from the shell, CouchDB did not gracefully handle the issue.

      I later tried turning on some swap space in case memory was an issue, but didn't seem to have an appreciable effect.

      May be related to the discussion here: http://mail-archives.apache.org/mod_mbox/couchdb-dev/201203.mbox/%3cCAPinO9ek5xAjLLpYufwnRk3hxkn5e-5j59pR6ummdWpMthhuuA@mail.gmail.com%3e

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Nathan Vander Wilt
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development