I need to use hibernate in my projects and I need a better code completion when editing HTML file or JSF file, so I installed Jboss Tools from the Eclipse Marketplace. I use this combo since 2010 , but since last update I am experiencing some random "out of memory error" in eclipse. I've edited the config file to enhance the heap and the perm space, but even with more then 3gb dedicated, the error still persist.
Is anyone experiencing this? Has anyone found a solution?
I think there are a lot of people with the same issue, because even after a fresh installation of both ide and plug-in the issue persists.
On google I can't find anything useful and I don't think the solution is not incrementing the heap much more, because the memory inspector shows an usage of less then 300MB and my heap is 3GB at the moment. When the error occurs the heap space is blown up instantly from 300MB to 3GB and after a bunch of second the ide shows the error popup. After the error, the heap became less than 300MB.
NOTE: The issue is manifesting with jdk 1.7, 1.8 (all the updates of this and last year) and on a Windows PC (it happens with both Windows 7 and Windows 8/8.1 )
I did some intense investigation on the issue. I found that wasn't causal! The issue would ALWAYS happen while editing an HTML file whith some inline JS.
So what's the problem? The problem is the JS validator. Disabling the JS validator on compile solve the issue (it's not a true solution but it's the only way I found at the moment).
I think that HTML validator and JS validator interfere each other causing some loop leading to an OutOfMemoryException on Eclipse.