Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-6372

KahaDB reader pool not releasing unused open files till deletion - too many open files

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.13.0
    • Fix Version/s: 5.14.0
    • Component/s: KahaDB
    • Labels:
      None

      Description

      Leading to:

      java.io.FileNotFoundException: .../kahadb/db-2300.log (Too many open files)

      Kahadb has an accessor pool of random access files and a periodic cleanup. However the cleanup does not work as expected.
      Only on journal gc does the pool get purged.
      This issue can arise with very large amounts of journal files that are paging and on recovery when the entire journal needs to be replayed.
      In essence, currently there needs to be fd per journal data file.
      The workaround is to increase the nofiles (max open files) for the broker process.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gtully Gary Tully
                Reporter:
                gtully Gary Tully
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: