Help

There were a number of comments on twitter and blogs last week discussing Weld's performance and scalability, and I wanted to comment on the issues discussed and our work to resolve them. Upfront, let me say that we have been actively working on performance and scalability for a while now (previously more on memory usage, more recently on performance). Of course, we work primarily with JBoss AS, but also work closely with the GlassFish team; many of the improvements will be directly available as Weld is updated in GlassFish, and we'll continue to support the GlassFish team in any performance work they do on GlassFish that impacts on Weld.

To understand why we didn't release Weld 1.0 with excellent performance and scalability (I would have loved to, of course!) it's worth mentioning a few points. Firstly, Weld was one of entirely new RI's in Java EE 6 (the others being Hibernate Validator and Jersey), and of these is perhaps the biggest, and certainly the most integrated into other parts of Java EE. Secondly, the deadline for the Java EE 6 release (and hence the final release of it's RIs) was very tight (with the CDI spec still undergoing major overhauls up until about 3 weeks prior to the Weld 1.0 release). Thirdly, this was the first release of Java EE that included RIs not produced by Sun, which were fully open source (spec, RI and TCK) which led to the obvious scheduling issues you have when two different teams work together, as well the need to invent new infrastructure (e.g. for running the TCK).

All of these factors together meant that the 1.0 release of Weld primarily focused on being feature-complete to the CDI spec, with 1.0.1 focusing again on resolving functional issues. 1.1.0 is our chance to review the architecture of Weld and investigate both memory usage and performance, and deliver something that will shine.

If you have concerns about performance or memory usage, and want to help us work on this, we have batteries of stress tests we can run, so you can concentrate on looking for improvements.

We'll be including Weld 1.1.0 in JBoss AS 6.0.0, and we are recommending to the GlassFish team that they include it in GlassFish 3.1.

Finally, of course if you come across issues, you should file them in the issue tracker, or better yet, take a look at the source and see if you can help out!

28 comments:
 
10. Nov 2010, 16:37 CET | Link

Hi Pete; thanks for the post. A quick question. What version of Weld is planned for JBoss 7?

 
10. Nov 2010, 17:33 CET | Link
Cody

I would think AS7 Final is far enough out that the answer will be whatever is stable at the time AS7 ships

 
10. Nov 2010, 18:34 CET | Link

My understanding was that JBoss AS 7 was planned for end of 2011 as an enterprise quality release, so I was hoping you would have a general idea of that by now. In any case, I'm only looking at big-picture plans. As in, planning for a Weld 1.1.x, a Weld 1.x, or a Weld 2.x?

10. Nov 2010, 18:39 CET | Link

Re: Weld and GlassFish - We plan to integrate Weld 1.1.0 beta2 into the trunk of GlassFish 3.1 within a few days.

10. Nov 2010, 19:11 CET | Link
Eduardo Pelegri-Llopart wrote on Nov 10, 2010 12:39:
Re: Weld and GlassFish - We plan to integrate Weld 1.1.0 beta2 into the trunk of GlassFish 3.1 within a few days.

Fantastic!

 
10. Nov 2010, 19:12 CET | Link
CDI User

When do we expect Weld 1.1 to achieve GA?

10. Nov 2010, 21:29 CET | Link

Here is the relevant post at TheAquarium. There should be a follow-up from Siva sometime next week with the actual details of the commit.

10. Nov 2010, 21:30 CET | Link
Eduardo Pelegri-Llopart

Argh! Here it is http://blogs.sun.com/theaquarium/entry/weld11inglassfish

 
10. Nov 2010, 23:02 CET | Link

Weld increases GAE cold start. Is It true?

 
11. Nov 2010, 14:40 CET | Link
Eduardo Pelegri-Llopart wrote on Nov 10, 2010 12:34:
My understanding was that JBoss AS 7 was planned for end of 2011 as an enterprise quality release, so I was hoping you would have a general idea of that by now. In any case, I'm only looking at big-picture plans. As in, planning for a Weld 1.1.x, a Weld 1.x, or a Weld 2.x?

I can't comment on AS7 schedule, Jason can comment on that. There are two options for Weld in AS7. If we do a MR of CDI then we would include Weld 1.2, otherwise it will be Weld 1.1 (IOW I am planning to make any needed changes to the integration SPI for Weld 1.1.0, we are planning to integrate Weld into AS7 initially in the next couple of months).

When do we expect Weld 1.1 to achieve GA?

We are aiming for before Christmas this year.

Weld increases GAE cold start. Is It true?

Yes, but then deploying your app to GAE increases it's start time ;-) And improving the time Weld takes to start is on our priority list.:

There are lots of ways to improve startup time. The biggest overhead we have observed is actually loading the classes to scan in the first place, followed by the scan. We can use a project such as jandex to improve both of these significantly, by generating all the metadata about the classes as part of the build, and storing it in the deployed jar. This should have a major effect on a runtime env like GAE which has to go through startup much more often.

In fact, I want to take this one step further for Weld 1.1 and offer a full partial startup mode, whereby the environment can say to Weld I've already scanned all the classes, built up all the metadata about annotations, meta-annotations etc. and called all of the ProcessAnnotatedType events, and applied modifications from them back, here is the set of AnnotatedTypes from which to generate beans. Obviously very useful in something like GAE which needs to cold-start much more often (my crude estimate is this could save say 60% of startup time without us doing any optimisation on startup time, something I hope Stale can look at once he has worked on runtime performance). This will also be very useful in JBoss AS 7 which will offer the ability to build parts of the deployment on the domain controller before handing it off to the individual servers.

 
11. Nov 2010, 19:53 CET | Link

Thank you for answer

19. Nov 2010, 02:07 CET | Link
Ricardo

And what about upgrading GF 3.0.1 with the newest weld lib? is there any change getting help there? I'm stuck in a project with major memory leaks caused by weld (and/or javassist) known bugs and it would be a pain to drop weld completely. Waiting to GF 3.1 it's not an option for me, Feb 2011 is too far away... I need to get the job done sooner.

I've tried to update weld-osgi-bundle.jar with some 1.1 beta versions downloaded from the m2 repos without luck, any hints? I'm getting javassist.NotFoundException with some of them and osgi problems about dependencies with others. It would be needed to update weld-integration.jar too? any extra package needed? Any help would be welcome! Thanks and sorry about the weeping! I'm a little bit lost.

19. Nov 2010, 04:55 CET | Link
Stuart Douglas

Ricardo:

For instructions on how to patch Weld 1.0.1 to remove the runtime memory leak, see this thread:

http://www.sfwk.org/Community/LeakingOrNot

 
20. Nov 2010, 11:47 CET | Link
Ricardo

Sorry, I missed that post. Thanks a lot, Stuart. I'll try it now!

 
19. Dec 2013, 03:52 CET | Link

A bag should not be apprenticed to abandoned accepting a simple top replica handbags. A woman should action it as her best associate as it holds all her claimed belongings. Handbags aswell say a lot about a lady's abode and how she carries herself. It is a assimilation of who you are. Even if a above handbag's aggregate is taken abounding into consideration, no aggregate of money can anytime aggregate to the authentic bulk of this item-a woman's confidence. When your eyes are chafe that superb artisan bag which you acquire already been appetence with absorption to, there is abolishment about that can be done to be able to acquire absent from it. Therefore , these best addition would be to go in for actualization Balenciaga Handbags. Nonetheless, there can aswell be problems adapted achievement as properly. For starters, you may possibly would like to apperceive which accepting these replicas may possibly not be as basic, accurately the able above ones. In the blow you do get the top above actualization Balenciaga replica handbags, they may possibly be actually pricey. Therefore , there exists a will acquire to acquire how it adeptness possibly end up accepting attainable to save on these and still get a fair deal.

 
10. Feb 2014, 15:25 CET | Link

To want that nature's domain we observe and encounter inside might not have the substance given by the sub-awareness might be to need presence of a zero actuality in the representational world, comparative with how the physical world exists without qualities as it may be. As all substance is provided for nature's turf through substance generative cycle from the neurological units the brains have, it influences to individual interrelations in ways that are presented in this article.qualitative data collection

 
10. Mar 2014, 00:04 CET | Link
Sudhir Varma | varma.sudhir(AT)yahoo.com

I thought that you could use Java EE 6 and spring together and not have to use welding for dependency injection. Tradus Coupons

 
06. Apr 2014, 15:39 CET | Link

The search is on trying to fill your wardrobe with living collections of clothing for women of color in spring followed by summer? Looking for some online store offers a http://lv1store.com beautiful collection of summer dresses roof with the current trend? They have a limited budget and looking for cheap and quality clothes? I need some people this season with new and comfortable clothes exclusively for the fresh spring season? Spring dresses are very fashionable and http://11lv.co.uk catered to the expectations of adolescents and young women. It is not necessary to dig up any old clothes to beat the heat of the sun, a great way to offer his hand to pick up your apparels from a huge spring collection

30. Apr 2014, 08:02 CET | Link
By turning into a PMP certificant, you consent to keep the Code of Conduct. PMI claims all authority to suspend or disavow the certification of any PMP certificant who is dead set to have conferred a violation of <a href="http://theexamcollection.com/pmi-002/">PMI-002</a> this Code or generally neglected to hold fast to the principles of this Code.various sorts of training are accessible today. This article breaks down the modes and proposes a suitable mode to PMP and CAPM exam takers.
30. Apr 2014, 08:15 CET | Link

They help in making mental and physical quality. They shape our build and make it strong and dynamic. They accommodate us essentialness and quality. They empty tiredness and lethargy. They improve blood course. This improves our physical flourishing. Amusements and entertainments are greatly puzzle games crucial for us. They keep us robust and fit. They offer us transform from the terribleness of ordinary life. It is a suitable system for redirection and physical development. Amusements and diversions help in character building. They accommodate us imperativeness and quality. Recreations and preoccupations are techniques for mental and physical improvement.

30. Apr 2014, 08:16 CET | Link
PMI-002 wrote on Apr 30, 2014 02:02:
By turning into a PMP certificant, you consent to keep the Code of Conduct. PMI claims all authority to suspend or disavow the certification of any PMP certificant who is dead set to have conferred a violation of PMI-002 this Code or generally neglected to hold fast to the principles of this Code.various sorts of training are accessible today. This article breaks down the modes and proposes a suitable mode to PMP and CAPM exam takers.

Click HELP for text formatting instructions. Then edit this text and check the preview.

 
24. May 2014, 17:36 CET | Link

Classic black lozenge panel with gold willow pointer with Roman scale , gold grade 316L stainless steel case with a black calfskin strap and gold butterfly snaps, pure replica watches black with gold and make the wearer seem noble and mysterious. Movement adopts ETA2824-2 Swiss original movement , hours, minutes , seconds and date display function, not fancy rolex replica and practical. Rose gold case is very tasteful , decorative vertical lines often used in high-end Breitling Replica watches decorative , but also adds this sheet business temperament. Willow pointer to bring some elegant taste. Gave easygoing , humble leadership work , very appropriate.

 
07. Jun 2014, 16:16 CET | Link

Thanks for sharing this information. Very informative and also helpful Caribbean Jobs, Legal Jobs and mobile option Caribbean Jobs

Thanks again

 
24. Jun 2014, 12:59 CET | Link

The profitability of simple currency trading strategies presents perhaps even more of a challenge to traditional asset-pricing theory than does the equity-premium puzzle, which has received an enormous amount of attention. Understanding the properties of currency trading strategies is important not just for asset pricing but for macroeconomics more generally Forex Capital markets allow retail and institutional clients to speculate on global foreign exchange markets in what is known as margin forex trading. Outside the US, forex capital markets also provides trading in contract for difference (CFDs) on major indices and commodities such as gold and crude oil

04. Jul 2014, 04:10 CET | Link
Redovisning Jönköping | wapexp18(AT)gmail.com

When someone is stingy with sex and only has sex when their partner has done something they want them to do, that's using sex as Redovisning Jönköping a punishment and reward. They may think to themselves, You rat. I'm not having sex with you because you annoy me.

 
02. Oct 2014, 13:33 CET | Link
jassica

So what are you waiting for? Purchase this SparXXrX® Gold package today to attain four month’s worth of satisfying, strong, and impeccable boners! sparxxrx

 
23. Nov 2014, 22:11 CET | Link

There's so many different APIs out there, I only just stumbled upon this one. Though for the most part I specialise in repairing computer issues such as repairing dll related errors, I'm going back to programming, I thinking of making applications, but who knows.

 
10. Dec 2014, 09:18 CET | Link
Kailey | polo(AT)163.com
http://www.burberryfactorys.com/
http://www.shophandbagsonline.com/
http://www.official-coachoutlet.com/
http://www.barbour-factory.com/
http://www.burberry-outlet2014.com/
http://www.gucci-factory.com/
http://www.marcjacobsonsale.com/
http://www.mcmworldwide.ca/
http://www.guccishoes-uk.com/
http://www.kate-spades.com/
http://www.louisvuittonas.com/
http://www.lv-guccishoesfactory.com/
http://www.official-mkoutlets.com/
http://www.official-pradaoutlet.com/
http://www.michael-korsusa.net/
http://www.north-facesoutlet.com/
http://www.moncler-clearance.com/
http://www.north-faceclearance.com/
http://www.clothes-mall.com/
http://www.polo-outlets.com/
http://www.ralphlauren.so/
http://www.ralphlaurentshirts.com/
http://www.ferragamos.in.net/
http://www.longchampsoutlet.com/
http://www.abercrombiee.com/
http://www.barbour-jacketsoutlet.com/
http://www.michael--korsonline.com/
http://www.thenorthface.so/
http://www.cheapuggsbootsr.com/
http://www.beatsbydreoutlet.net/
http://www.tommyhilfiger.in.net/
http://www.ralphslauren.co.uk/
http://www.michaelkors.so/
http://www.oakleyssunglassoutlet.com/
http://www.warm-boots.com/
http://www.tory-burches.com/
http://www.woolrich-clearance.com/
http://www.tommy-hilfigeroutlet.com/
http://www.official-northfaceoutlet.com/
http://www.nike-jordanshoes.com/
http://www.monsterbeatsbydres.net/
http://www.canada-gooser.com/
http://www.bestcustomsonline.com/
http://coach.mischristmas.com/
http://www.coach-blackfriday2014.com/
http://www.coachccoachoutlet.com/
http://www.coach-clearance.com/
http://www.coach-factories.net/
http://www.coach-factorysoutlet.com/
http://www.coachlosangeles.com/
http://www.coachoutletstates.com/
http://www.coach-pursesoutlets.com/
http://www.hermes-outletonline.com/
http://www.misblackfriday.com/
http://www.mischristmas.com/
http://www.mmoncler-outlet.com/
http://www.newoutletonlinemall.com/
http://www.ralphlaurenepolo.com/
http://www.zxcoachoutlet.com/
http://www.misblackfriday.com/uggsale.html
http://www.mischristmas.com/uggboots.html
http://www.newoutletonlinemall.com/coachoutlet.html
http://www.zxcoachoutlet.com/coachoutletonline.html
http://michaelkorsoutlet.mischristmas.com/
http://mcmbackpack.mischristmas.com/
http://monsterbeats.mischristmas.com/
http://northfaceoutlet.mischristmas.com/
http://mk.misblackfriday.com/
http://coachoutlet.misblackfriday.com/
http://coachfactory.misblackfriday.com/
http://uggaustralia.misblackfriday.com/
http://coachpurses.misblackfriday.com/
http://coachusa.misblackfriday.com/
http://coach.misblackfriday.com/
http://michaelkorss.misblackfriday.com/
http://michaelkors.misblackfriday.com/
http://airmax.misblackfriday.com/
http://michael-kors.misblackfriday.com/
http://twitter.com/CoachOutlet2014
http://www.facebook.com/coachoutletstoreonline
http://www.facebook.com/ralphlaurenoutletonline
http://www.burberryfactorys.com/