You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Mike van Geertruy <mv...@comcast.net> on 2010/08/05 07:18:29 UTC
resetting Karaf + Bundles after a shutdown.
Hey folks, I have 2 questions, for my OSGi app containing over 130 bundles
with many delicate intricacies.
1) After I shut down Karaf, after installing my full set of my
bundles, and then starting it up again, I got a massive hang. Hell, its
still hanging 6 hours later. Is Karaf really ready for prime-time? I think
the problem is that there are a number of dependencies between apps, and
Karaf 1.6.0 doesn't appear to be able to handle them.
2) Is there a way to install bundles programmatically in an ordered
fashion? Kind of like the way features are installed, where all
dependencies are noted and installed.
3) Yeah, I said 2, but heck, what's the issue with an additional
question? How does karaf stack up against equinox when facing the above 2
issues?
Mike Van (lots of post-name certs), WTF?
Re: resetting Karaf + Bundles after a shutdown.
Posted by "Richard S. Hall" <he...@ungoverned.org>.
On 8/5/10 1:18, Mike van Geertruy wrote:
> Hey folks, I have 2 questions, for my OSGi app containing over 130 bundles
> with many delicate intricacies.
>
>
>
> 1) After I shut down Karaf, after installing my full set of my
> bundles, and then starting it up again, I got a massive hang. Hell, its
> still hanging 6 hours later. Is Karaf really ready for prime-time? I think
> the problem is that there are a number of dependencies between apps, and
> Karaf 1.6.0 doesn't appear to be able to handle them.
To be clear, if there is a "hang" due to dependencies, then it would be
because of the Felix framework, not because of Karaf, since Karaf is a
layer on top of the framework...perhaps you could try to use jstack to
get a stack dump of your system to get a better idea of what is going on.
130 bundles is a few, but not necessarily huge. GlassFish is growing
toward 250 without significant issue, so 130 should be possible.
I am not sure which version of the Felix framework Karaf is using, but
the 3.0.x release of the framework saw a complete rewrite of the
resolver. The old resolver could get into trouble in some scenarios that
the new resolver seems to do a better job with.
> 2) Is there a way to install bundles programmatically in an ordered
> fashion? Kind of like the way features are installed, where all
> dependencies are noted and installed.
You can use the OSGi API.
> 3) Yeah, I said 2, but heck, what's the issue with an additional
> question? How does karaf stack up against equinox when facing the above 2
> issues?
Good question. You can run Karaf on Equinox to find out, I believe.
With the 3.0.x release of the Felix framework, it does a better job (in
some cases a lot better) on complicated scenarios than Equinox, but I've
not done much testing on the average case. With Felix framework 2.0.x,
there are definitely scenarios where it performs a lot worse than Equinox.
-> richard
>
>
> Mike Van (lots of post-name certs), WTF?
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org