Bundle id is a long, Service id is a long. So maximum is Long.MAX_VALUE. I 
am guessing you will run out of memory long before you reach the id limit. 
Each bundle has a class loader. If the JVM has some limit on number of 
ClassLoaders, then that will be a factor also.
-- 

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
[email protected]

office: +1 386 848 1781
mobile: +1 386 848 3788





From:   Martin Petzold <[email protected]>
To:     [email protected]
Date:   2010/12/05 17:29
Subject:        [osgi-dev] Maximum number of bundles and services in one 
OSGi    framework
Sent by:        [email protected]



Hi folks,

what is the maximum number of bundles and services I can 
install/register in one OSGi framework? What is the maximum amount of 
remote services in a service environment, probably = max. of in one OSGi 
framework? Is the limitation on some type of identifier or is it the 
number of threads the JVM can provide or something different? Of course 
memory in the end...

How many bundles and services have you already had running in one OSGi 
framework?

Thanks,

Martin
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to