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

no warning in UI when memcached can't set maxconns (ulimit -n not in effect)


    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: bug-backlog
    • Component/s: UI
    • Security Level: Public
    • Labels:
    • Environment:
      2.0.0 release, Centos 5.8 x86_64
    • Triage:


      There's no warning in the UI when memcached can't set maxconns because of system resource limits. There is a warning in the memcached.log.2.txt file, but no one is going to look there probably.

      Reproduce is easy. Edit /etc/init.d/couchbase-server and comment out "ulimit -n 10240". Ensure hard nofiles limit is not set in /etc/security/limits.conf. Run "/etc/init.d/couchbase-server restart".

      Look in most recent memcached*log*txt file in /opt/couchbase/var/lib/couchbase/logs, and notice this warning:

      Thu Jan 17 14:08:51.673016 PST 3: WARNING: maxconns cannot be set to (10000) connections due to system
      resouce restrictions. Increase the number of file descriptors allowed
      to the memcached user process or start memcached as root (remember
      to use the -u parameter).
      The maximum number of connections is set to 1006.

      Look in UI, at logs tab, etc., and notice no warnings anywhere.

      There may be other conditions that should bubble up to the UI as well, but this is one I have noticed. This doesn't happen often, but some settings (maybe SELinux or something?) may prevent the ulimit from being run or taking effect, and it is important for the admin to know this.

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


        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Also depends on non-poor-man's alerts

        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Also depends on non-poor-man's alerts


          • Assignee:
            don Don Pinto
            TimSmith Tim Smith (Inactive)
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created:

              Gerrit Reviews

              There are no open Gerrit changes