-
Notifications
You must be signed in to change notification settings - Fork 91
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
several second delay before "The features are already installed, so no action is needed." #1557
Comments
I think we need to determine where the delay is coming from exactly. If one tries to install features directly on Liberty (not through Liberty Maven plugin) that are already installed, do we see a similar delay? If we need to avoid calling Liberty to install features in this scenario, the only option seems to be to keep a cache of already installed features. The problem I see with that is that the cache could easily become inaccurate if any other processes interact with the Liberty server outside of LMP. Also, do we want to avoid the very first attempt of installing features when the target Liberty server is |
I stepped through a simple scenario in the debugger: LMP dev mode, 5 features, OL only. It seems pretty clear to me that this is the line to investigate in InstallKernelMap.singleFileResolve():
the stack at this point is:
One thing to keep in mind is that we are using a bit of an unusual approach in using reflection to load the runtime classes from the plugin, (to avoid a dependency). To me it looks like that probably isn't a factor... we already loaded the map class via reflection at this point and the slow part is calling this |
Opened OpenLiberty/open-liberty#24592 to track from the runtime perspective. Guess we can still leave this open for now. |
This issue was addressed via #1646 and the conclusion is here: #1646 (comment) |
Using the CORS OL guide, and even substituting 3.6.1 LMP in the finish/pom.xml, I have two systems where around 10 seconds elapses before the last message on every subsequent run of
mvn liberty:dev
https://github.com/openliberty/guide-cors.git
The text was updated successfully, but these errors were encountered: