Support for AOT, AOTCache for faster netbeans startup #8840
Replies: 4 comments 6 replies
-
|
This is not an issue of NetBeans. The JDK must support the option and the description indicates to me, that you did nothing to configure JDK25 to be used. The FOAN installers bundle JDK 24, so it is not surprising, that this does not work. |
Beta Was this translation helpful? Give feedback.
-
|
AOT caches break most applications which do anything related to dynamic module loading. I am also somewhat skeptical that it would do something for NB, since most work IDEs do is highly use case specific - NB itself starts in ~3s or so if nothing else has to be opened too. https://openjdk.org/jeps/483 see "risks and assumptions", esp the first two points are showstoppers |
Beta Was this translation helpful? Give feedback.
-
|
I think I concur with @mbien and @neilcsmith-net that this is likely not help NB very much (because of the ClassLoaders, and possibly also other things). But, the "Unknown option" error is confusing me, given this is a And it seems to run. I am not saying it is faster, just that it runs. |
Beta Was this translation helpful? Give feedback.
-
|
Using NetBeans with AOT enabled since JDK24. The startup time improves 1-3 seconds on my computer, that's not really a significant amount of time when the IDE opens in about 11 secs anyway. NetBeans has its class-cache mechanism, that's already cut the second time start time. I guess if we would not have that mechanism, we might be able to reduce the IDE startup time by half with AOT cache. So for whoever interested it can be used/tested (It's kind of nice on my Rasberry Pi400), tho I do not think it is worth for the general audience at the moment. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
JDK25 comes with stable feature additions such as -XX:AOTCacheOutput and -XX:AOTCache however currently netbeans doesn't seem to support these options by configuring the netbeans.conf file. If set netbeans launcher throws an error in the console logs saying Unknown options.
Is it possible to have these enabled?
Thank you
Use case/motivation
Will make netbeans start faster
Related issues
No response
Are you willing to submit a pull request?
No
Beta Was this translation helpful? Give feedback.
All reactions