Too many open files on EAP 7.2 from growing amounts of ejb-xa-recovery files

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.2.4

Issue

JBoss server logs an error:

2019-10-31 12:09:34 ERROR [stderr] (default task-366) javax.ejb.EJBException: WFTXN0091: Failed to create xa resource recovery file: ./data/ejb-xa-recovery/20005_00000000000000000000ffff0a3d6fe5b86267965dbab2f700083d9733_00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

the above error is caused by:

2019-10-31 12:09:34 ERROR [stderr] (default task-366) Caused by: java.nio.file.FileSystemException: ./data/ejb-xa-recovery/20005_00000000000000000000ffff0a3d6fe5b86267965dbab2f700083d9733_00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000: Too many open files

Resolution

  • Update to 7.2.6+

Root Cause

This is a bug Content from issues.jboss.org is not included.JBEAP-17933 in EAP server.

Diagnostic Steps

The directory ${jboss.server.data.dir}/ejb-xa-recovery will contain 100s of files that never get deleted.

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.