How to solve the problem "java.io.IOException : Too Many Open Files" in windows

72 views
Skip to first unread message

mathi...@gmail.com

unread,
Jun 15, 2016, 4:02:10 AM6/15/16
to dedupfilesystem-sdfs-user-discuss
ERROR:
        java.io.IOException: maximum number of files reached [1024]. Too many open files
at org.opendedup.sdfs.filestore.DedupFileStore.addOpenDedupFiles(DedupFileStore.java:119)
at org.opendedup.sdfs.io.SparseDedupFile.initDB(SparseDedupFile.java:1198)
at org.opendedup.sdfs.io.SparseDedupFile.getChannel(SparseDedupFile.java:893)
at org.opendedup.sdfs.windows.fs.WinSDFS.getFileChannel(WinSDFS.java:786)
at org.opendedup.sdfs.windows.fs.WinSDFS.access$0(WinSDFS.java:779)
at org.opendedup.sdfs.windows.fs.WinSDFS$WriteThread.run(WinSDFS.java:867)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Sam Silverberg

unread,
Jun 16, 2016, 12:17:04 PM6/16/16
to dedupfilesystem-...@googlegroups.com
Looks like openfiles has been set to 1024 you will need to change this linux parameter. It specifies how to do this in the quickstart guide and below. Hope this helps

sudo su
echo "* hardnofile 65535" >> /etc/security/limits.conf
echo "* soft nofile 65535" >> /etc/security/limits.conf
exit

--
You received this message because you are subscribed to the Google Groups "dedupfilesystem-sdfs-user-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedupfilesystem-sdfs-u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages