<div dir="ltr">I was able to update and build with RichFaces 3.3.0-SNAPSHOT and saw your changes.<br><br>The good news is that I no longer see any blocking threads in the "org.ajax4jsf.application.<div class="Wj3C7c">
AjaxViewHandler" - none at all which is great.<br><br>The bad news is that the performance has not increased in any meaningful or repeatable way. <br><br>During my profiling I noticed a definite increase in the blocked threads performing JNDI lookups. My theory is that the AjaxViewHandler was acting as a gate and effectively slowing down concurrent requests into Seam proper. These threads now fly straight through and into Seam processing. They the end up blocked with the other threads performing the lookups.<br>
<br>I will continue to look at the lookup issues, and let you all know what I find.<br><br>-Jay<br></div><br><br><div class="gmail_quote">On Tue, Sep 30, 2008 at 2:05 PM, Jay Balunas <span dir="ltr"><<a href="mailto:jbalunas@redhat.com">jbalunas@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Excellent - I will build from sources and test the changes.<br>
<br>
I'll post the findings up on seam-dev.<br>
<font color="#888888"><br>
-Jay<br>
</font><div><div></div><div class="Wj3C7c">----- "Nick Belaevski" <<a href="mailto:nbelaevski@exadel.com">nbelaevski@exadel.com</a>> wrote:<br>
<br>
> All,<br>
><br>
> I've created JIRA issue for this optimization:<br>
> <a href="https://jira.jboss.org/jira/browse/RF-4554" target="_blank">https://jira.jboss.org/jira/browse/RF-4554</a> and have just fixed it.<br>
><br>
> As from now ViewHandlerWrapper#fillChain method is not synchronized<br>
> anymore.<br>
><br>
> Best regards,<br>
> Nick Belaevski<br>
><br>
> > -----Original Message-----<br>
> > From: <a href="mailto:richfaces-exadel-bounces@redhat.com">richfaces-exadel-bounces@redhat.com</a> [mailto:<a href="mailto:richfaces-exadel-">richfaces-exadel-</a><br>
> > <a href="mailto:bounces@redhat.com">bounces@redhat.com</a>] On Behalf Of Max Rydahl Andersen<br>
> > Sent: Tuesday, September 30, 2008 10:32 AM<br>
> > To: Jay Balunas; <a href="mailto:richfaces-exadel@redhat.com">richfaces-exadel@redhat.com</a><br>
> > Subject: Re: [Richfaces-exadel] Fwd: [seam-dev] Some profiling of<br>
> > blockingthreads<br>
> ><br>
> > Sergey/Nik ? Any news on this one ?<br>
> ><br>
> > /max<br>
> ><br>
> > > Hi Guys,<br>
> > ><br>
> > > I have been doing some performance testing on seam applications<br>
> and have<br>
> > > been able to post some of the results. One of the areas that I<br>
> have<br>
> > > investigated so far was blocking/waiting threads.<br>
> > ><br>
> > > In my example I am running 25 concurrent users and hitting the<br>
> seam wiki<br>
> > > example. I am seeing blocked threads waiting on<br>
> > > "org.ajax4jsf.application.AjaxViewHandler".<br>
> > > I have investigated it a bit (see below), and have included some<br>
> of the<br>
> > > discussions on the seam-dev list.<br>
> > ><br>
> > > I would like to get an opinion of the synchronized fillChain<br>
> method, and<br>
> > > see<br>
> > > if there is another way to handle this.<br>
> > ><br>
> > > Thoughts?<br>
> > ><br>
> > > Thanks,<br>
> > > Jay<br>
> > ><br>
> > > ---------- Forwarded message ----------<br>
> > > From: Emmanuel Bernard <<a href="mailto:emmanuel@hibernate.org">emmanuel@hibernate.org</a>><br>
> > > Date: Thu, Sep 25, 2008 at 10:01 AM<br>
> > > Subject: Re: [seam-dev] Some profiling of blocking threads<br>
> > > To: Jay Balunas <<a href="mailto:tech4j@gmail.com">tech4j@gmail.com</a>><br>
> > > Cc: Pete Muir <<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>>, "<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a>" <<br>
> > > <a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a>><br>
> > ><br>
> > ><br>
> > ><br>
> > > On Sep 25, 2008, at 09:17, Jay Balunas wrote:<br>
> > ><br>
> > > org.ajax4jsf.application.AjaxViewHandler<br>
> > >> --------------------------------------------<br>
> > >> - This was not a large % of the blocked threads but caught my<br>
> eye as a<br>
> > >> potential trouble spot because it seemed directly related to<br>
> ajax<br>
> > calls.<br>
> > >> - This was easier to track down and the root cause is in the<br>
> > >> org.ajax4jsf.application.ViewHandlerWrapper class.<br>
> > >> - see<br>
> > >><br>
> ><br>
> <a href="http://anonsvn.jboss.org/repos/richfaces/trunk/framework/api/src/main/java" target="_blank">http://anonsvn.jboss.org/repos/richfaces/trunk/framework/api/src/main/java</a><br>
> > /org/ajax4jsf/application/ViewHandlerWrapper.java<br>
> > >> - The problem is all the calls to "fillChain" which is a<br>
> synchronized<br>
> > >> method in the class.<br>
> > >> - We need to find out how often the "_initialized" field is<br>
> false - is<br>
> > >> this once a request, once for each component, etc...<br>
> > >> - it appears to be called many times - I will look further into<br>
> this.<br>
> > >><br>
> > >><br>
> > > I will raise this the richfaces dev guys, and see what can be<br>
> done.<br>
> > ><br>
> > ><br>
> > > Using the double check lock pattern with a volatile should make<br>
> things<br>
> > > better. It has to be done right though :)<br>
> > ><br>
> > ><br>
> > ><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > /max<br>
> ><br>
> > _______________________________________________<br>
> > Richfaces-exadel mailing list<br>
> > <a href="mailto:Richfaces-exadel@redhat.com">Richfaces-exadel@redhat.com</a><br>
> > <a href="https://www.redhat.com/mailman/listinfo/richfaces-exadel" target="_blank">https://www.redhat.com/mailman/listinfo/richfaces-exadel</a><br>
><br>
> _______________________________________________<br>
> Richfaces-exadel mailing list<br>
> <a href="mailto:Richfaces-exadel@redhat.com">Richfaces-exadel@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/richfaces-exadel" target="_blank">https://www.redhat.com/mailman/listinfo/richfaces-exadel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>blog: <a href="http://in.relation.to/Bloggers/Jay">http://in.relation.to/Bloggers/Jay</a><br>
</div>