Workarounds for Ubuntu: IDEA 8.1.3 tons of "Too Many Open Files"?

Since I updated to 8.1.3, I cannot open anything anymore.  The logs show megabytes of messages like the one below.  cat /proc/sys/fs/file-max displays 357324, so it shouldn't be a problem...

Is there a work-around?  I already deleted my "system" folder.



2009-06-19 11:52:06,982 [  77158]   INFO - idea.svn.SvnChangelistListener - svn: '/home/ghexsel/dev/code/apod/node/assets/resources/runtime/common/recordings/english/phrases' is not a working copy
svn: Cannot read from '/home/ghexsel/dev/code/apod/node/assets/resources/runtime/common/recordings/english/phrases/.svn/format': /home/ghexsel/dev/code/apod/node/assets/resources/runtime/common/recordings/english/phrases/.svn/format (Too many open files)
org.tmatesoft.svn.core.SVNException: svn: '/home/ghexsel/dev/code/apod/node/assets/resources/runtime/common/recordings/english/phrases' is not a working copy
svn: Cannot read from '/home/ghexsel/dev/code/apod/node/assets/resources/runtime/common/recordings/english/phrases/.svn/format': /home/ghexsel/dev/code/apod/node/assets/resources/runtime/common/recordings/english/phrases/.svn/format (Too many open files)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
    at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.open(SVNAdminAreaFactory.java:151)
    at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAccess.java:364)
    at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:272)
    at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:299)
    at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:284)
    at org.tmatesoft.svn.core.wc.SVNChangelistClient.setChangelist(SVNChangelistClient.java:324)
    at org.tmatesoft.svn.core.wc.SVNChangelistClient.doRemoveFromChangelist(SVNChangelistClient.java:220)
    at org.jetbrains.idea.svn.SvnChangelistListener.changesRemoved(SvnChangelistListener.java:43)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:87)
    at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:33)
    at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:64)
    at $Proxy46.changesRemoved(Unknown Source)
    at com.intellij.openapi.vcs.changes.DelayedNotificator$MyProxyDispatcher$2.run(DelayedNotificator.java:2)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:636)
2009-06-19 11:52:08,633 [  78809]  ERROR - j.util.io.ResizeableMappedFile - /home/ghexsel/.IntelliJIdea8x/system/caches/records.dat.len (Too many open files)
java.io.FileNotFoundException: /home/ghexsel/.IntelliJIdea8x/system/caches/records.dat.len (Too many open files)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
    at com.intellij.util.io.ResizeableMappedFile.writeLength(ResizeableMappedFile.java:65)
    at com.intellij.util.io.ResizeableMappedFile.force(ResizeableMappedFile.java:92)
    at com.intellij.openapi.vfs.newvfs.persistent.FSRecords$DbConnection.flushSome(FSRecords.java:157)
    at com.intellij.openapi.vfs.newvfs.persistent.FSRecords$DbConnection$3.run(FSRecords.java:1)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:636)

4 comments
Comment actions Permalink

Actually, I just ended up moving all my settings out, starting IDEA, installing the license, closing IDEA, then moving some of the files back into that folder (fonts, settings, error configs, etc).

0
Comment actions Permalink

I don't use Ubuntu for about year, but I remember that you need to edit file /etc/security/limits.conf and write something like : soft nolimit 4096
hard nolimit 65572. Please google this file, you'll get a lot of answers.

0
Comment actions Permalink

I'm running Kubuntu 9.04. The limits.conf file is used by PAM and entries in the file are enforced by the kernel. I would suggest commenting all the lines in that file if the machine is your personal computer. If it's not a multiuser machine there is really no need to set resource limits.

0
Comment actions Permalink

You can find a detailed info on increasing limit of opened files here: http://ubuntuforums.org/showthread.php?t=638597

0

Please sign in to leave a comment.