Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-3064

setrlimit fails in recent versions of Mac OS X

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.6.5.3
    • None
    • couchbase-bucket
    • Security Level: Public
    • None
    • Mac OS X 10.6.5

    Description

      Full details, including a basic fix, in thread:

      http://forums.membase.org/thread/memcached-dying-mac-os-x-due-rlimit-fix

      Essentially, in memcached.c in both moxi and memcached, the setrlimit fails on recent versions of Mac OS X when trying to set the max number of connections. It seems that you can't assume that rlim_cur can be set to rlim_max, and you can't change rlim_max. This seems a bit broken to me (and I'm an Apple fanboy!).

      There's a brief note at the bottom of the setrlimit man page.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          Dustin, can you take a look at this and schedule appropriately?

          sean Sean Lynch (Inactive) added a comment - Dustin, can you take a look at this and schedule appropriately?
          trond Trond Norbye added a comment -

          This doesn't seem to be a problem anymore? (at least I've been running 2.0 on my macosx lion box)

          trond Trond Norbye added a comment - This doesn't seem to be a problem anymore? (at least I've been running 2.0 on my macosx lion box)

          Bulk closing all invalid bugs that are duplicate, user error, invalid. Please feel free to reopen them if you feel otherwise

          raju Raju Suravarjjala added a comment - Bulk closing all invalid bugs that are duplicate, user error, invalid. Please feel free to reopen them if you feel otherwise

          People

            dustin Dustin Sallings (Inactive)
            quentinsf Quentin Stafford-Fraser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty