Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-522

Weld makes my Java SE app startup time >100x slower

    XMLWordPrintable

Details

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

              pmuiratbleepbleep Pete Muir
              mmc41 Morten Christensen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: