Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1668

“Memory leak” about permgen

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.3.5
    • Fix Version/s: None
    • Component/s: jmx, server
    • Labels:
      None

      Description

      For each connection, a ConnectionBean will be created to represent this connection at finishSessionInit:

      ...
      jmxConnectionBean = new ConnectionBean(this, zk);
      MBeanRegistry.getInstance().register(jmxConnectionBean, zk.jmxServerBean);
      ...
      ObjectName oname = makeObjectName(path, bean);
      ...
      return new ObjectName(beanName.toString());
      ...
      _canonicalName = (new String(canonical_chars, 0, prop_index)).intern();

      So, for every connection, it takes dozens of bytes at permgen. With connection established constantly, the usage of permgen will increase continuously.

      Is it reasonable or necessary to manage each connection with ConnectionBean?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tokoot tokoot
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: