<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 25, 2008, at 09:17, Jay Balunas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><blockquote class="gmail_quote" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; "><div><div><div><blockquote type="cite"><div class="Ih2E3d"><div dir="ltr">org.ajax4jsf.application.AjaxViewHandler<br>--------------------------------------------<br> - This was not a large % of the blocked threads but caught my eye as a potential trouble spot because it seemed directly related to ajax calls.<br> - This was easier to track down and the root cause is in the org.ajax4jsf.application.ViewHandlerWrapper class.<br> - see<span class="Apple-converted-space"> </span><a href="http://anonsvn.jboss.org/repos/richfaces/trunk/framework/api/src/main/java/org/ajax4jsf/application/ViewHandlerWrapper.java" target="_blank">http://anonsvn.jboss.org/repos/richfaces/trunk/framework/api/src/main/java/org/ajax4jsf/application/ViewHandlerWrapper.java</a><br> - The problem is all the calls to "fillChain" which is a synchronized method in the class.<br> - We need to find out how often the "_initialized" field is false - is this once a request, once for each component, etc...<br> - it appears to be called many times - I will look further into this.</div></div></blockquote></div></div></div></blockquote><div><br>I will raise this the richfaces dev guys, and see what can be done.</div></span></blockquote></div><br><div>Using the double check lock pattern with a volatile should make things better. It has to be done right though :)</div></body></html>