[jira] [Commented] (KARAF-4633) Allow disabling registration of StandardManageableRegionDigraph

2016-08-01 Thread Fabian Lange (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-4633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15402336#comment-15402336
 ] 

Fabian Lange commented on KARAF-4633:
-

If thats the case, then thats even better.
I have to admit I have no clue about the whole Digraph thingy. Thats why I did 
not question it :)
As our use case calls for low memory footprint, I would welcome any change in 
that direction.

> Allow disabling registration of StandardManageableRegionDigraph
> ---
>
> Key: KARAF-4633
> URL: https://issues.apache.org/jira/browse/KARAF-4633
> Project: Karaf
>  Issue Type: Improvement
>Reporter: Fabian Lange
>
> As part of my activities to reduce karaf footprint, I was wondering what was 
> triggering the mbean server infrastructure to come up in karaf.
> I saw that org.apache.karaf.features.internal.osgi.Activator.doStart() 
> registers the StandardManageableRegionDigraph.
> As i could not find any internal interaction with that mbean, could we make 
> it configurable to not register? That would avoid initializing a lot of mbean 
> server stuff.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (KARAF-4633) Allow disabling registration of StandardManageableRegionDigraph

2016-08-01 Thread Guillaume Nodet (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-4633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15402302#comment-15402302
 ] 

Guillaume Nodet commented on KARAF-4633:


I'd rather go a bit further.  
Imho the whole digraph service and hooks should be lazily registered / loaded.
I'm not aware of anyone actually using regions atm, so I think it's safe to 
turn them off by default. 
 * when the features service is loaded, check to see if there are regions, if 
so, load the service and register everything
 * else, create the empty digraph, but do not register it nor the hooks / 
mbeans, etc...
  * if a resolution using regions is about to be applied (or if a region is 
manually created), then register everything before applying the output of the 
resolution

Thoughts ?


> Allow disabling registration of StandardManageableRegionDigraph
> ---
>
> Key: KARAF-4633
> URL: https://issues.apache.org/jira/browse/KARAF-4633
> Project: Karaf
>  Issue Type: Improvement
>Reporter: Fabian Lange
>
> As part of my activities to reduce karaf footprint, I was wondering what was 
> triggering the mbean server infrastructure to come up in karaf.
> I saw that org.apache.karaf.features.internal.osgi.Activator.doStart() 
> registers the StandardManageableRegionDigraph.
> As i could not find any internal interaction with that mbean, could we make 
> it configurable to not register? That would avoid initializing a lot of mbean 
> server stuff.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)