Getting java.io.FileNotFoundException: /JBOSS/standalone/log/server.log - due to too may files open error in JBoss EAP.

Solution Unverified - Updated -

Issue

  • Application transaction stuck due to too many files open error in JBoss.
  • Application transaction working fine after restarting JBoss service for some time but after it gets below error.
java.lang.RuntimeException: java.io.FileNotFoundException: /JBOSS/jboss-eap-6.4/standalone/log/server.log-19-Apr-2017 (Too many open files)
    at org.jboss.as.logging.LogFileResourceDefinition$4.execute(LogFileResourceDefinition.java:170) [jboss-as-logging-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

Caused by: java.io.FileNotFoundException: /JBOSS/jboss-eap-6.4/standalone/log/server.log-19-Apr-2017 (Too many open files)
    at java.io.FileInputStream.open(Native Method) 

Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host xx.xx.xx.xx, port xx has failed. Error: "Too many open files. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port and that no firewall is blocking TCP connections to the port.".

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content