aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Richard (JIRA)" <>
Subject [jira] [Updated] (ARIES-1365) ServiceState attribute notifications slow down startup/shutdown time considerably
Date Mon, 24 Aug 2015 15:04:46 GMT


Joel Richard updated ARIES-1365:
    Attachment: 0001-ARIES-1365-ServiceState-attribute-notifications-slow_0.2.patch

[~bosschaert], I have adjusted the patch according to your comments and have attached an updated
version (0.2). I have removed createConfiguration which means that the configuration is hidden
until it is created manually (which seems to work fine).

> ServiceState attribute notifications slow down startup/shutdown time considerably
> ---------------------------------------------------------------------------------
>                 Key: ARIES-1365
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: jmx-core-1.1.3
>         Environment: org.apache.felix.framework 5.0.1
>            Reporter: Joel Richard
>            Assignee: David Bosschaert
>              Labels: performance, shutdown, startup
>         Attachments: 0001-ARIES-1365-ServiceState-attribute-notifications-slow.patch,
> Around 20% of the startup time of our Felix OSGI container is spent creating attribute
notifications for changed services in ServiceState#getAttributeChangeNotification. This is
so slow because for each notification it calls bundleContext.getAllServiceReferences to get
all service ids.
> Here a few suggestions how this could be improved:
> - The ServiceState could maintain its own list of service ids which is updated according
to the service events
> - The ServiceState could implement the NotificationEmitter directly and be aware when
there are any listeners (in our case, there are mostly none).
> - Make it possible to disable the attribute change notifications with configuration property.

This message was sent by Atlassian JIRA

View raw message