java.net.SocketException: 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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 807596, 1 year ago
Too many open files
via opensearchserve by madantmohan
, 1 year ago
Too many open files
via Terracotta Project Issue Tracker by Eric Dahl, 1 year ago
Too many open files
java.net.SocketException: Too many open files
at java.net.Socket.createImpl(Socket.java:447)
at java.net.Socket.getImpl(Socket.java:510)
at java.net.Socket.setSoTimeout(Socket.java:1105)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:116)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:178)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at au.org.ala.biocache.util.HttpUtil$.postBody(HttpUtil.scala:23)
at au.org.ala.biocache.load.RemoteMediaStore$.alreadyStored(MediaStore.scala:200)
at au.org.ala.biocache.load.RemoteMediaStore$.save(MediaStore.scala:269)
at au.org.ala.biocache.load.DataLoader$$anonfun$processMedia$1.apply(DataLoader.scala:316)
at au.org.ala.biocache.load.DataLoader$$anonfun$processMedia$1.apply(DataLoader.scala:295)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at au.org.ala.biocache.load.DataLoader$class.processMedia(DataLoader.scala:295)
at au.org.ala.biocache.load.DwcCSVLoader.processMedia(DwcCSVLoader.scala:72)
at au.org.ala.biocache.load.DataLoader$class.load(DataLoader.scala:257)
at au.org.ala.biocache.load.DwcCSVLoader.load(DwcCSVLoader.scala:72)
at au.org.ala.biocache.load.DwcCSVLoader.loadFile(DwcCSVLoader.scala:275)
at au.org.ala.biocache.load.DwcCSVLoader$$anonfun$loadDirectory$1.apply(DwcCSVLoader.scala:125)
at au.org.ala.biocache.load.DwcCSVLoader$$anonfun$loadDirectory$1.apply(DwcCSVLoader.scala:123)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at au.org.ala.biocache.load.DwcCSVLoader.loadDirectory(DwcCSVLoader.scala:123)
at au.org.ala.biocache.load.DwcCSVLoader$$anonfun$load$1.apply(DwcCSVLoader.scala:105)
at au.org.ala.biocache.load.DwcCSVLoader$$anonfun$load$1.apply(DwcCSVLoader.scala:97)
at au.org.ala.biocache.load.DwcCSVLoader.load(DwcCSVLoader.scala:97)
at au.org.ala.biocache.load.Loader.load(Loader.scala:161)
at au.org.ala.biocache.load.Loader$$anonfun$main$4.apply(Loader.scala:65)
at au.org.ala.biocache.load.Loader$$anonfun$main$4.apply(Loader.scala:65)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at au.org.ala.biocache.load.Loader$.main(Loader.scala:64)
at au.org.ala.biocache.cmd.CMD2$.main(CMD2.scala:134)
at au.org.ala.biocache.cmd.CMD2.main(CMD2.scala)

Users with the same issue

7 times, 2 weeks ago
3 times, 2 weeks ago
Once, 11 months ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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