Too many open files

Solution Verified - Updated -


  • We are receiving the 'Too many open files' exception in our server logs:

    Socket accept failed Too many open files
            at Method)
            at Source)
            at Source)
            ... filename (Too many open files)
            at Method)
  • Too many open files -- Need RCA

    <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default[2]" on, failure count: 1, failing for 0 seconds, Too many open files>
  • Facing the below error on server :

    19:57:22,988 ERROR [DiskStore] ticketCache: Could not create disk store. Initial cause was /tmp/path/ (Too many open files) /tmp/path/ (Too many open files)
        at Method)
        at net.sf.ehcache.Cache.createDiskStore(
        at net.sf.ehcache.Cache.initialise(
        at net.sf.ehcache.CacheManager.addCacheNoCheck(
        at net.sf.ehcache.CacheManager.addCache(
        at org.springframework.cache.ehcache.EhCacheFactoryBean.afterPropertiesSet(
  • WAR/EAR deployment fails:

    "/deployment=deployment.ear:add(runtime-name="deployment.ear", content=[{"path"=>"/path/to/deployment/deployment.ear","archive"=>false}], enabled=true)"
        "outcome" => "failed",
        "failure-description" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"deployment.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"deployment.ear\".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment \"deployment.ear\"
        Caused by: WFLYEE0054: Failed to process children for EAR [\"/path/to/deployment/deployment.ear\"]
        Caused by: /jboss-eap-7/standalone/tmp/vfs/deployment/deployment917425a0df51e2b7/library.jar-c42571ac700c1222/library.jar (Too many open files)"}},
        "rolled-back" => true 


  • Red Hat JBoss Enterprise Application Platform (JBoss EAP)
    • 4
    • 5
    • 6
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In