-
Notifications
You must be signed in to change notification settings - Fork 408
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
High CPU usage and memory consumption even if doing nothing #3196
Conversation
test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It definitely seems to be consistently halting the build after about 6 or so build jobs (for openjdk/ , do you know why there's multiple?)
I'm seeing now in the logs :
!ENTRY org.eclipse.jdt.apt.pluggable.core 4 1 2024-06-18 15:45:20.369
!MESSAGE Exception thrown by Java annotation processor org.netbeans.modules.openide.util.ServiceProviderProcessor@4ca43248
!STACK 0
java.lang.Exception: java.lang.IllegalArgumentException: Unsupported location: SOURCE_PATH
at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:171)
at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:123)
at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:172)
at org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:134)
at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:952)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:449)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:425)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:410)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:211)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:341)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:79)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:286)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:192)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:1077)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:296)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:352)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:441)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:444)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:555)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:503)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:585)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:207)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:300)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.IllegalArgumentException: Unsupported location: SOURCE_PATH
at org.eclipse.jdt.internal.apt.pluggable.core.filer.IdeFilerImpl.getFileFromOutputLocation(IdeFilerImpl.java:236)
at org.eclipse.jdt.internal.apt.pluggable.core.filer.IdeFilerImpl.getResource(IdeFilerImpl.java:204)
at org.openide.util.lookup.implspi.AbstractServiceProviderProcessor.registerImpl(AbstractServiceProviderProcessor.java:199)
at org.openide.util.lookup.implspi.AbstractServiceProviderProcessor.register(AbstractServiceProviderProcessor.java:159)
at org.netbeans.modules.openide.util.ServiceProviderProcessor.register(ServiceProviderProcessor.java:81)
at org.netbeans.modules.openide.util.ServiceProviderProcessor.handleProcess(ServiceProviderProcessor.java:61)
at org.openide.util.lookup.implspi.AbstractServiceProviderProcessor.process(AbstractServiceProviderProcessor.java:103)
at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:141)
... 25 more
With that said this seems to improve things. I would just rename the commit message to something like :
"Ensure every null analysis annotation has a value defined when enabled."
Signed-off-by: Snjezana Peco <[email protected]>
I have renamed it. |
JDT will start the build job again and again, forever. You can try to set a breakpoint at
This PR fixes the issue. |
Yes, it builds forever without your change, but with it, there are still some build jobs that run according to the server status bar. It looks like :
It does in fact stop there. Just wondering why there are that many. |
I have seen it, too, when setting |
Eclipse platform starts the build job for different events mostly when a watched file changes. |
This is killing me. Every workspace I create defaults to |
@tonyrusignuolo Have you a project example reproducing the issue? |
I'm mostly using this at work, so I can't share the code. But this happens with every Java project I open even if I set the User setting to "disabled". Each new workspace opens with the default setting as "interactive" and it crushes all my processing and ram |
Is it possible to set this to |
I suppose it isn't related to |
Fixes redhat-developer/vscode-java#3387