Skip to content
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

Slow startup due to looking for services #1120

Open
Bananeweizen opened this issue Jan 3, 2025 · 1 comment
Open

Slow startup due to looking for services #1120

Bananeweizen opened this issue Jan 3, 2025 · 1 comment
Labels
bug Erroneous behaviour.

Comments

@Bananeweizen
Copy link
Contributor

Describe the bug
The search for services implementing ELK extensions is slow and defers the startup of the application, because OSGi has to load bundles, to unpack jars and to scan the manifests and class files.

This happens unconditionally on every startup, even if functionality of ELK is not used later.

Expected behavior
Zero runtime consumed, if ELK is not actively used. The initialization of the services should happen on demand only (i.e. on first access to any services). For us this slows down tests notably and even triggers the UI freeze monitor sometimes.

Screenshots
image

image

ELK Version
0.9.3

Additional context
If some of the core developers agree, I would like to prepare a PR which moves the initialization from the bundle start to the access of the services.

@Bananeweizen Bananeweizen added the bug Erroneous behaviour. label Jan 3, 2025
@soerendomroes soerendomroes added this to the Release 0.10.0 milestone Jan 3, 2025
@soerendomroes
Copy link
Contributor

Hi, a PR would be very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Erroneous behaviour.
Projects
None yet
Development

No branches or pull requests

2 participants