I have Eclipse Kepler and NodeEclipse plugin installed. For NodeEclipse's performance reasons I have disabled content assistant for JavaScript files.
Problem: Whenever I copy or cut some lines in JS files (ctrl+c / ctrl+x), the CPU usages goes 100% and the eclipse process eats up all memory (>1GB). I think some GC thrashing is happening. Increasing JVM max memory more is an option, but isn't 1GB enough for eclipse?
This could be some memory leak. Is this specific problem with Nodeclipse? Are there any workarounds/settings in eclipse to diable?
Edited:
When I double click a variable, CPU pumps to 100% for 3-4 seconds, comes down. I have mark occurences already disbled. This is happending only for route/*.js files and not for public folder. Investigating more, I find that commenting line containing require('<package-name>')
solves this problem, why?
found the solution:
go to Window>Preferences>JavaScript>Editor>Mark Occurrences and unselect the checkboxes. That should do it.
Reason for this problem:
When u press ctrl for copy/paste, it assumes that is a "ctrl+mouseOver" operation, that we do before clicking on a method/variable name to reach its declaration point, or access its documentation. Hence, it tries to find all the occurrences of the text currently under the mouse cursor, along with its declaration point and documentation.
Hope this helps :)