On 9/5/13 08:35 , Roland wrote:
Hello OSGi-experts,
are there any switches that I can use to optimize the start time of Apache
Felix? (Lazy Activation is not an option for me)
Not really, but first you'd have to know where you are spending your
time. If it is in bundle activators, which is implied by your reference
to lazy activation, then there is nothing the framework can do since
activators is bundle code.
The main thing you can do is not do a lot of work in your activators. If
you need to do work here, you can use threads so that it can proceed it
parallel with other bundles.
If you have some profiling information show that some aspect of
framework startup is taking an excessively long time, then we can look
into it. I know that Felix was used to start GF which had 250 or so
bundles and it didn't take too long. However, as the number of bundles
grows, so will your startup time, especially if all of them have
activators doing work.
Otherwise, you could look into creating specialized launchers that only
deploy bundles as you need them, rather than deploying everything all at
once.
But, again, without concrete numbers of where your time is being spent,
all of this is just guessing.
-> richard
Thanks and Regards
--
View this message in context:
http://apache-felix.18485.x6.nabble.com/How-to-improve-the-start-time-of-Apache-Felix-tp5004833.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]