Java compiler stalls [message #1868853] |
Tue, 23 July 2024 20:18  |
Eclipse User |
|
|
|
I'm actually using STS 4.19.0.RELEASE but have seen same problem when using eclipse 2023-12 (4.30.0) or previous versions. Platform us Ubuntu 22.04/Java 17 or Java 21.
We have imported multiple projects, one project has 8000+ files as of this moment. Most of the java classes in this project extends from a single class in a different project.
Whenever we make a change to base class, eclipse does a what appears to be a full compile of the larger project. Change can be as simple as adding a new private member to base class which should not have any impact on top level classes. I have also observed that I don't have to modify base class structurally - that is no new methods/signature changes or member addition. Just doing usual logic changes in one the existing method.
Based on observation, eclipse compiler typically stalls at certain files, almost always reproducible. Full file name is not visible in task progress, but we can guess as we know the tree structure. File in question does not seem to be extra large or complicated. It's simple java code and not too large. After hitting stop button, build resumes.
Is there any way I can find out logs from eclipse compiler or whatever that will tell me it's stalling. Stall time can be significant - up to five minutes and every time I check progress bar of build, it usually shows same directory. I'm curious why does it always stalls at this location.
Can I ask eclipse not to do a full rebuild every time I save changes in base class. I am aware of build automatically option, but are there any other options that might make dependency management a bit more intelligent and not to do a full build if private methods are touched.
Will be glad to provide any information or experiment with settings. I don't believe this is hardware issue as computer is pretty powerful with SSD and lot of ram and got lot of diskspace free. Nothing interesting in workspace logs.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04899 seconds