Open ben-manes opened 1 year ago
Could you please :
1) Specify your Eclipse version
2) Attach workspace log ( inside workspace/.metadata/.log)
The logs show a few different unhandled exceptions that repeat,
Edit: Moved similar Issue to https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1100
@Kademlia can you move your comment to a new issue?
Sometimes after running a program through the IDE, I observe constant GC pressure and high CPU usage. This is with the launched program stopped, no building, and an idle system. It has occurred for a while (1-2 years) but rarely, so I never got around to investigating. This is a fairly minimal setup as I generally only use Eclipse for Java Developers with the TestNG plugin installed.
I captured a JFR snapshot (1.jfr.zip), which can be opened in Java Mission Control, JProfiler, or Yourkit. They show that a lot of time is being spent doing AST evaluations, where
Parser.comsumeRule
andASTParser.internalCreateAST
are hotspots. It may be that an infinite cycle of rules are somehow generated so it never completes. There were also manyjava.lang.Error
exceptions thrown ("SWT Resource was not properly disposed") so maybe that triggers this retry loop. I'm not familiar enough with the code to explain the cause, but I hope that the profile should provide enough context to debug from.