java.io.IOException: Too many open files

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

If the directory ../.foo/bar/ doesn't exist, you can't create a file there, so make sure you create the directory first.

File f = new File("somedirname1/somedirname2/somefilename");
if (!f.getParentFile().exists())
    f.getParentFile().mkdirs();

Solutions on the web

via Oracle Community by Raja Kummathi, 1 year ago
via Oracle Community by 178170, 1 year ago
via Google Groups by Zhi Zheng, 7 months ago
via dell.com by Unknown author, 1 year ago
via Google Groups by Serban Alexe, 2 years ago
java.io.IOException: Too many open files
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1704)
at java.io.File.createTempFile(File.java:1792)
at weblogic.nodemanager.util.ConcurrentUnixFile.write(ConcurrentUnixFile.java:38)
at weblogic.nodemanager.common.StateInfoWriter.writeStateInfo(StateInfoWriter.java:45)
at weblogic.nodemanager.common.StateInfo.save(StateInfo.java:152)
at weblogic.nodemanager.NMService.writeStateInfo(NMService.java:214)
at weblogic.nodemanager.NMService.propertyChange(NMService.java:200)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
at weblogic.management.runtime.RuntimeMBeanDelegate._postSet(RuntimeMBeanDelegate.java:381)
at weblogic.t3.srvr.ServerRuntime.updateRunState(ServerRuntime.java:413)
at weblogic.t3.srvr.T3Srvr.setState(T3Srvr.java:206)
at weblogic.t3.srvr.T3Srvr.setFailedState(T3Srvr.java:327)
at weblogic.t3.srvr.T3Srvr.initializeAdmin(T3Srvr.java:919)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:585)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469)
at weblogic.Server.main(Server.java:71)

Users with the same issue

Once, 3 weeks ago
Once, 1 month ago
Once, 1 month ago
4 times, 2 months ago
Once, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.