I experimented with making our application into a feature which would be
auto-installed at karaf start-up time:

* put all our bundles and their dependencies in a directory on the local
filesystem

* created a feature XML file which declares a dependency on wab, scr, and
those bundles (using relative file: URLs), also on the local filesystem

 * added the XML file to featuresRepositories and the feature name to
featuresBoot in etc/org.apache.karaf.features.cfg.

It works, but loading a couple of dozen bundles this way takes about TWELVE
MINUTES, both when launching Karaf or when executing feature:uninstall -
repo-refresh - install. During this time it is not possible to log in using
bin/client, while 'top' shows karaf as using less than 1% cpu.

1. This has to be a bug, right? Loading in the same bundles from /deploy
takes almost no time.

2. Will it go any faster if I package the app as a KAR instead?

I did see that a similar issue was raised a while back, but seems to have
received no reply.






--
View this message in context: 
http://karaf.922171.n3.nabble.com/feature-install-is-crazily-slow-tp4034317.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to