[jbosstools-issues] [JBoss JIRA] (JBIDE-20707) Forge runs out of inotify watches on Fedora 21

George Gastaldi (JIRA) issues at jboss.org
Wed Sep 16 15:41:00 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-20707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109581#comment-13109581 ] 

George Gastaldi commented on JBIDE-20707:
-----------------------------------------

It works on Fedora 22. This is the output of my {{ulimit -a}} (factory default):

{code}
-t: cpu time (seconds)              unlimited
-f: file size (blocks)              unlimited
-d: data seg size (kbytes)          unlimited
-s: stack size (kbytes)             8192
-c: core file size (blocks)         0
-m: resident set size (kbytes)      unlimited
-u: processes                       4096
-n: file descriptors                1024
-l: locked-in-memory size (kbytes)  64
-v: address space (kbytes)          unlimited
-x: file locks                      unlimited
-i: pending signals                 46746
-q: bytes in POSIX msg queues       819200
-e: max nice                        0
-r: max rt priority                 0
-N 15:                              unlimited
{code}

During loading, Furnace (Forge runtime) opens a lot of files (addons mostly) and probably the {{ulimit}} might be set to a low value. The workaround is to set the {{ulimit}} to unlimited.


> Forge runs out of inotify watches on Fedora 21
> ----------------------------------------------
>
>                 Key: JBIDE-20707
>                 URL: https://issues.jboss.org/browse/JBIDE-20707
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: forge
>    Affects Versions: 4.3.0.CR1
>            Reporter: Jan Richter
>            Assignee: George Gastaldi
>             Fix For: 4.3.0.CR1, 4.3.1.Final
>
>
> Starting Forge on Fedora 21 produces the following error:
> {noformat}
> WARNING: File monitoring could not be started.
> 16:41:20 java.io.IOException: User limit of inotify instances reached or too many open files
> 16:41:20 	at sun.nio.fs.LinuxWatchService.<init>(LinuxWatchService.java:64)
> 16:41:20 	at sun.nio.fs.LinuxFileSystem.newWatchService(LinuxFileSystem.java:47)
> 16:41:20 	at org.jboss.forge.furnace.impl.FurnaceImpl.<init>(FurnaceImpl.java:152)
> 16:41:20 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 16:41:20 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> 16:41:20 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 16:41:20 	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> 16:41:20 	at java.lang.Class.newInstance(Class.java:442)
> 16:41:20 	at org.jboss.forge.furnace.se.FurnaceFactory.getInstance(FurnaceFactory.java:63)
> 16:41:20 	at org.jboss.tools.forge.core.furnace.FurnaceProvider.createFurnace(FurnaceProvider.java:78)
> 16:41:20 	at org.jboss.tools.forge.core.furnace.FurnaceProvider.startFurnace(FurnaceProvider.java:110)
> 16:41:20 	at org.jboss.tools.forge.core.furnace.FurnaceRuntime.start(FurnaceRuntime.java:80)
> 16:41:20 	at org.jboss.tools.forge.ui.util.ForgeHelper$1.runInWorkspace(ForgeHelper.java:52)
> 16:41:20 	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
> 16:41:20 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> {noformat}
> Forge then refuses to start properly, Eclipse gets stuck on the launching forge progress dialog. The inotify watch limit is set to default (8192 I think) which really should be enough.
> So far we established, that this happens on Fedora 21 or occasionally on 20 (which is not supported anymore). 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list