felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Epik (Issue Comment Edited) (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (FELIX-3262) Startup delay due to URLHandlersBundleStreamHandler
Date Wed, 07 Dec 2011 21:22:40 GMT

    [ https://issues.apache.org/jira/browse/FELIX-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164708#comment-13164708

Sergey Epik edited comment on FELIX-3262 at 12/7/11 9:22 PM:

Thread dump that demonstrates problem - a lot of threads are blocked on URLStreamHandler.getHostAddress.
      was (Author: sepik):
    Thread dump that demonstrates problem.
> 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
>         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


View raw message