There is no such feature in the framework. And in general it is very 
difficult or impossible to implement. All the bundle run in a shared 
space: they share the same heap and thread freely traverse code in the 
bundles. Bundles can call code in other bundles. Thus it is extremely 
difficult to assign a resource allocation to a specific bundle and, even 
if that were done, it is very hard to take action against an ill behaved 
bundle. If it ill behaved, it may not honor requests to fully stop.

I don't know of this feature in any java based system unless the system 
has isolation units like MIDP applications of JSR 121 isolates. With such 
isolation, it is much easier to account for resource usage. But still 
somewhat difficult to take definitive action.

-- 

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:   ZHANG Rocky F <[email protected]>
To:     "[email protected]" <[email protected]>, 
Date:   2012/05/31 23:02
Subject:        [osgi-dev] What is OSGi bundle profiling going on?
Sent by:        [email protected]



Hi all,
 
 
My team is developing a service platform on OSGi platform.
One big concern of my boss is bundle resource monitoring/profiling on 
service bundles.
That is, if a service bundle eats too much memory or CPU, can OSGi runtime 
detect this event and take some action?
 
Based on my research result, there is no such feature in OSGi.
But do you know the progress of this feature? Is it on plan? If yes, then 
to be in which release?
 
Thanks for your time in advance!
 _______________________________________________
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