[ 
https://issues.apache.org/jira/browse/FELIX-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard S. Hall updated FELIX-3262:
-----------------------------------

    Fix Version/s:     (was: framework-4.0.2)
                   framework-4.2.0
    
> Startup delay due to URLHandlersBundleStreamHandler 
> ----------------------------------------------------
>
>                 Key: FELIX-3262
>                 URL: https://issues.apache.org/jira/browse/FELIX-3262
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-3.0.9
>         Environment: Karaf 2.2.3 with spring-dm, spring
>            Reporter: Sergey Epik
>            Assignee: Karl Pauls
>             Fix For: framework-4.2.0
>
>         Attachments: getHosts-osgiextender.txt
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Problem: slow startup of bundles that use spring and spring-dm.
> When spring-dm starts spring application context, it puts a lot of objects 
> that contain URL into set/map structures.
> URL.hashCode delegates call to handler. 
> URLHandlersBundleStreamHandler does not implement hashCode(URL u), but 
> URLStreamHandler (parent) calls InetAddress.getByName(name) with bundle 
> number. 
> This call is very slow and method URLStreamHandler.getHostAddress is 
> synchronized.
> We have found that Equinox's handler 
> org.eclipse.osgi.framework.internal.core.BundleResourceHandler overrides 
> hashCode(URL u).
> Thread dump that demonstrates problem is attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to