Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.2
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None

      Description

      According to the bug reporter, the client can OOM leaking vbucket objects, and those owing (likely) to a bug in Netty.

      From the bug reporter:
      Using sdk 1.0.1 and couchbase (enterprise) 1.8, my application
      (basically a TapClient which runs "dump" method) had OutOfMemory and
      "Too many open files" issues.
      By dumping memory with jmap, it seemed that jvm memory was full of
      VBucket object, also there was a correlation between the number of
      VBucket and each tapclient.dump call (each calls brings like 2048 new
      elements).

      This is surely related to some changes in
      spymemcached2.8+couchbase1.0.1 as I had no issue with spymemcached
      2.7.3.
      It seems that those VBucket where related to CouchbaseConnection
      object, which were (at least) referenced in some org.jboss.netty
      classes, like org.jboss.netty.channel.AbstractChannel.
      I had no time to check in the Netty community, but it seems that
      replacing sdk default netty jar with the latest 3.3.1 solves the
      issue, as the number of
      Vbucket is no longer running up.

      Anyone facing the same issue? Is it safe to use this netty version?
      Eventually, if this issue is confirmed, it could be time to update the
      sdk zip file downloadable by the site.

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

        Activity

        ingenthr Matt Ingenthron created issue -
        Hide
        wferrara Walter added a comment -

        It seems it maybe connected to
        https://issues.jboss.org/browse/NETTY-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#issue-tabs
        by the way, it also seems that TapConnectionProvider.java open a CouchbaseConnectionFactory but never shutdown it.
        I'm going to add a patch of that file which at least until now, it seems to do the trick.

        Show
        wferrara Walter added a comment - It seems it maybe connected to https://issues.jboss.org/browse/NETTY-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#issue-tabs by the way, it also seems that TapConnectionProvider.java open a CouchbaseConnectionFactory but never shutdown it. I'm going to add a patch of that file which at least until now, it seems to do the trick.
        Hide
        wferrara Walter added a comment -

        this keeps the number of VBucket object under control.

        Show
        wferrara Walter added a comment - this keeps the number of VBucket object under control.
        wferrara Walter made changes -
        Field Original Value New Value
        Attachment TapConnectionProvider.patch [ 12418 ]
        ingenthr Matt Ingenthron made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        ingenthr Matt Ingenthron made changes -
        Workflow jira [ 16218 ] Couchbase SDK Workflow [ 38304 ]

          People

          • Assignee:
            rags Raghavan Srinivas (Inactive)
            Reporter:
            ingenthr Matt Ingenthron
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes