You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Wang Guang Zhe (JIRA)" <ji...@apache.org> on 2010/10/14 09:51:33 UTC

[jira] Created: (ARIES-457) Efficiency problem in the method listBundles() of class org.apache.aries.jmx.framework.BundleState

Efficiency problem in the method listBundles() of class org.apache.aries.jmx.framework.BundleState
--------------------------------------------------------------------------------------------------

                 Key: ARIES-457
                 URL: https://issues.apache.org/jira/browse/ARIES-457
             Project: Aries
          Issue Type: Improvement
          Components: JMX
    Affects Versions: 0.3
         Environment: OSGi framwork: Felix
JDK: IBM JDK 6
            Reporter: Wang Guang Zhe
             Fix For: 0.3


In our environment, there are always 200 to 300 bundles in the OSGi framwork. When invoking listBundles() of the class BundleState, it spends more than twenty seconds which is too long to endure. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (ARIES-457) Efficiency problem in the method listBundles() of class org.apache.aries.jmx.framework.BundleState

Posted by "Valentin Mahrwald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Mahrwald reassigned ARIES-457:
---------------------------------------

    Assignee: Valentin Mahrwald

> Efficiency problem in the method listBundles() of class org.apache.aries.jmx.framework.BundleState
> --------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-457
>                 URL: https://issues.apache.org/jira/browse/ARIES-457
>             Project: Aries
>          Issue Type: Improvement
>          Components: JMX
>    Affects Versions: 0.3
>         Environment: OSGi framwork: Felix
> JDK: IBM JDK 6
>            Reporter: Wang Guang Zhe
>            Assignee: Valentin Mahrwald
>             Fix For: 0.3
>
>
> In our environment, there are always 200 to 300 bundles in the OSGi framwork. When invoking listBundles() of the class BundleState, it spends more than twenty seconds which is too long to endure. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-457) Efficiency problem in the method listBundles() of class org.apache.aries.jmx.framework.BundleState

Posted by "Valentin Mahrwald (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926647#action_12926647 ] 

Valentin Mahrwald commented on ARIES-457:
-----------------------------------------

Committed simple performance fix in revision #1029176. On my test system that brings the listBundle() down to a bearable < 5 sec with just over 400 bundles.

> Efficiency problem in the method listBundles() of class org.apache.aries.jmx.framework.BundleState
> --------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-457
>                 URL: https://issues.apache.org/jira/browse/ARIES-457
>             Project: Aries
>          Issue Type: Improvement
>          Components: JMX
>    Affects Versions: 0.3
>         Environment: OSGi framwork: Felix
> JDK: IBM JDK 6
>            Reporter: Wang Guang Zhe
>            Assignee: Valentin Mahrwald
>             Fix For: 0.3
>
>
> In our environment, there are always 200 to 300 bundles in the OSGi framwork. When invoking listBundles() of the class BundleState, it spends more than twenty seconds which is too long to endure. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-457) Efficiency problem in the method listBundles() of class org.apache.aries.jmx.framework.BundleState

Posted by "Valentin Mahrwald (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925100#action_12925100 ] 

Valentin Mahrwald commented on ARIES-457:
-----------------------------------------

Judging from circumstantial evidence this appears to be entirely down to FrameworkUtils.getBundleDependencies, which is called once for each bundle and then iterates over all the bundles to get their exported packages.

I tried this on Equinox and Sun JDK 6. So the problem is not related to the environment at all, although the bottleneck could be different on Felix ...

> Efficiency problem in the method listBundles() of class org.apache.aries.jmx.framework.BundleState
> --------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-457
>                 URL: https://issues.apache.org/jira/browse/ARIES-457
>             Project: Aries
>          Issue Type: Improvement
>          Components: JMX
>    Affects Versions: 0.3
>         Environment: OSGi framwork: Felix
> JDK: IBM JDK 6
>            Reporter: Wang Guang Zhe
>             Fix For: 0.3
>
>
> In our environment, there are always 200 to 300 bundles in the OSGi framwork. When invoking listBundles() of the class BundleState, it spends more than twenty seconds which is too long to endure. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.