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

“Memory leak” about permgen

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 3.3.5
    • None
    • jmx, server
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: