-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eclipse Internal Error - Out of Memory #52
Comments
Thanks for the detailed analysis! The difference between ResourceVisitor and DeltaVisitor looks like an additional bug, though. I thought about, whether the memory of claimed by the classloader can be garbage collected. There is one reason, why this might not happen: If PMD found violations, we might keep them inside the eclipse plugin for displaying. These violations contain a reference to the offending AST node, which in turn might keep a reference to the resolved class, loaded by the classloader. So, that might be a reason, why the memory is not freed - but still to be confirmed. |
@chrislake I've released a new version. Could you verify, whether the out of memory problem is gone now? Thanks! |
I can confirm that with the new version, the memory usage remains minimal and stable and I no longer receive an OOM error. Great job, thanks for the quick turnaround :) |
Awesome, thanks for testing! |
Brilliant, thank you! |
We currently have issues using Eclipse Oxygen 3 and PMD Eclipse plugin (I've just updated to 4.0.16.v20180412-0833 because I saw similar logs to #29 with ~1900 PHP errors, but they still appear).
Essentially, after creating a workspace, the code is checked out (just one project), and a build script runs, and finally the workspace is refreshed to load all the new files from that build script. At this point, Eclipse is using ~500Mb of memory. Now a Review Code process kicks in (sometimes a great number of them), and quickly Eclipse uses up ~4Gb of memory and eventually spits out an "Internal Error", "An out of memory error has occurred. ... Do you want to exit?" (in this instance it's a small VM).
On a bigger machine, Eclipse can be started at ~4Gb, then run up 12Gb reviewing code before throwing the same error.
I've cranked the PMD logging right the way up to ALL but it seems that there no obvious error being produced. It does seem that it tests every single file in the workspace, regardless of the "Filter Files" settings (I tried exclude ".", include ".java" and similar (.java, **/.java, .*/.*java, etc)), or filters in the ruleset file itself.
Surely this excessive memory usage isn't right. Is there anything that can be done? Is there any information I can provide you with to help diagnose the problem?
The text was updated successfully, but these errors were encountered: