Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-785

org.apache.drill.exec.rpc.bit.ListenerPool leak suspects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.1.0-m1
    • 0.4.0
    • Execution - RPC
    • None

    Description

      the drillbit down for every 7 or 8 day. i print the gc details and find a lot of full gc before down. I dump the heap and analysis with mat and find the ListenerPool may have problem.
      Below is the full message in mat leak suspects:
      One instance of "org.apache.drill.exec.rpc.bit.ListenerPool" loaded by "sun.misc.Launcher$AppClassLoader @ 0x638052d50" occupies 3,484,931,208 (98.72%) bytes. The memory is accumulated in one instance of "java.util.concurrent.ConcurrentHashMap$Segment[]" loaded by "<system class loader>".

      Keywords
      java.util.concurrent.ConcurrentHashMap$Segment[]
      org.apache.drill.exec.rpc.bit.ListenerPool
      sun.misc.Launcher$AppClassLoader @ 0x638052d50

      Then i quick look at ListenerPool and does not find any place to remove object from the listeners. Does this is a problem?

      Attachments

        1. memoryleak.jpg
          74 kB
          griffin li
        2. DRILL-785-org.apache.drill.exec.rpc.bit.ListenerPool.patch
          2 kB
          Aditya Kishore

        Activity

          People

            adityakishore Aditya Kishore
            Tired griffin li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: