[weld-issues] [JBoss JIRA] Commented: (WELD-522) Weld makes my Java SE app startup time >100x slower

Morten Christensen (JIRA) jira-events at lists.jboss.org
Sun May 9 14:51:05 EDT 2010


    [ https://jira.jboss.org/jira/browse/WELD-522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12529767#action_12529767 ] 

Morten Christensen commented on WELD-522:
-----------------------------------------

My app also deploys in glassfish 3 as an web app (it is both a SE and an EE application). In glassfish it is much harder to judge what the startup cost is but I do not notice any major slowdowns as for Weld SE (maybe because weld is already initialized in Glassfish with some of the jars I use ?).

BTW: What is the normal time you guys get between org.jboss.weld.environment.se.StartMain and firing ContainerInitialized after initialization for medium sized Weld SE apps ?

> Weld makes my Java SE app startup time >100x slower 
> ----------------------------------------------------
>
>                 Key: WELD-522
>                 URL: https://jira.jboss.org/jira/browse/WELD-522
>             Project: Weld
>          Issue Type: Bug
>    Affects Versions: 1.0.1.Final
>         Environment: Java 6, Weld 1.01 SE + lots of jars on the classpath
>            Reporter: Morten Christensen
>
> Booting my Java SE app without weld takes << 1s BUT the 1 line for initializing weld to autowire my app takes at least 4-5 seconds. 
> My app is not so big and consist of ~20-30 singletons that must be wired + various other non-weld stuff. I have lots of stuff on my classpath so I suspect that could be why weld is going crazy. 
> I guess this could be improved if I can have weld limited to work only inside my own jar and/or only work with specific classes/packages.
> P.S. With breakpoints enabled in a debugger and a bit of unluck, I was even able to have welds initialization to take ~ 5 minutes one day (reduced to seconds again after I removed all breakpoints though).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list