Pointers on debugging bundle startup times [message #725718] |
Thu, 15 September 2011 11:26  |
Eclipse User |
|
|
|
Hi.
I am running a Virgo server with my application bundles. A couple of bundles seem to take an excessive amount of time starting up, i.e. going from the "Starting" stage to the "Started" stage.
What are the recommended ways to go about trying to figure out what the (not at all apparent) bottlenecks are?
Apologies if this is a trivial question.
TIA,
B.
|
|
|
|
Re: Pointers on debugging bundle startup times [message #725741 is a reply to message #725731] |
Thu, 15 September 2011 12:19   |
Eclipse User |
|
|
|
Thanks Dmitry. Please see my comments below.
Quote:Are those bundles spring based?
Yes, they are.
Quote:Are you importing a lot of required services?
No, we are still at the beginning of development, so the bundles are quite tiny and simple. For instance, one of the bundles in question registers a service and consumes three other services (all via Spring DM)
Quote:If you are using spring osgi namespace to import services - try to set those up as optional and see if boot time decreases.
I can try doing that as an exercise, but those services are really required.
Quote:There could also be a lot of import expansion going on and you are spending a lot of time in a resolver. How large is your package import set?
Again, the import set is small; here's the Import-Package snippet from the same bundle:
Import-Package: com.iggroup.wb.core.common.exceptions,
com.iggroup.wb.core.common.utils.bundlemanagement.repository,
com.iggroup.wb.core.common.utils.bundlemanagement.repository.codec,
com.iggroup.wb.core.logger.api,
com.iggroup.wb.overseer.api.business,
com.iggroup.wb.overseer.api.domain,
com.iggroup.wb.overseer.api.ui,
com.iggroup.wb.overseer.authenticator.api,
com.iggroup.wb.overseer.domain,
org.apache.commons.lang,
org.junit,
org.osgi.framework,
org.springframework.core.io
The com.iggroup.* packages are exported by other very small bundles and only contain a few classes each.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Pointers on debugging bundle startup times [message #728655 is a reply to message #728395] |
Fri, 23 September 2011 11:37  |
Eclipse User |
|
|
|
Can you check on the development system if the deployment time is consistent with production when you deploy without using STS. Just drop the plan/bundles in required locations and start the server.
I would expect deployment to be much more laborious through tooling.
|
|
|
Powered by
FUDForum. Page generated in 0.06754 seconds