<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Guys,<div><br></div><div>Wanted to provide some more information based on our chat last night about the debug settings. &nbsp;I verified that both 9017 and 9557 versions of the wiki example I was running have debug=false.</div><div><br></div><div>I did this by logging the "DEBUG" level and found where both the seam initialization, and the wiki initialization set its debug value. &nbsp;Both were set to false. &nbsp;</div><div><br></div><div>Regards,</div><div>Jay</div><div><br></div><div><br><div><div>On Nov 12, 2008, at 10:38 PM, Jay Balunas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">By the way the goal is to eventually get these scripts and instructions into svn so that anyone can run them.<br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 10:37 PM, Jay Balunas <span dir="ltr">&lt;<a href="mailto:tech4j@gmail.com">tech4j@gmail.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;">Shane,<br><br>Here is my basic 25 user script for the wiki example.&nbsp; It does assume a page "wiki/Community/SeamUsers" exists for the testing and I am not certain if such a page exists by default in the wiki example.&nbsp; I have imported the live <a href="http://seamframework.org" target="_blank">seamframework.org</a> data from July 31st in my system.&nbsp; However the script is easy enough to modify with JMeter 2.3.2 and you should be able to change the page that will be accessed without a problem.<br> <br>If needed I can forward the instructions and data for that import, but it is not quick.<br><br>Depending on what you find - tomorrow I will run the same test on the booking example and the dvd example to get some more data points.&nbsp; Let me know if you find anything or would like me to try something specific.<br> <br>Talk to you later,<br><font color="#888888">Jay</font><div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 10:22 PM, Jay Balunas <span dir="ltr">&lt;<a href="mailto:tech4j@gmail.com" target="_blank">tech4j@gmail.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;"> Yes when run under load (25 users) the system seems to becomes unresponsive.&nbsp; The requests do eventually return - jmeter was reporting an average request time of 100+ seconds. &nbsp; When accessed during the warm up requests (my manual requests to prime the application) the application functioned just fine.<br> <font color="#888888"> <br>-Jay</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 8:20 PM, Shane Bryzak <span dir="ltr">&lt;<a href="mailto:shane.bryzak@jboss.com" target="_blank">shane.bryzak@jboss.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;"> Thanks Jay,<br> <br> Just to be clear, did you mean that each individual request is now taking 100+ seconds as compared to 3 seconds previously?<br> <br> Jay Balunas wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div> Performance Review of current Seam trunk fo 2.1.1<br> --------------------------------------------------------<br> <br></div> Working with the latest trunk from today (r9557) and testing the performance changes that were made. &nbsp;Previous tests were done with (r9017). &nbsp;Just as a refresher my baseline test uses the wiki example with all of the <a href="http://sfwk.org" target="_blank">sfwk.org</a> &lt;<a href="http://sfwk.org" target="_blank">http://sfwk.org</a>> data up to July 31st 2008. &nbsp;<div> <br> For these tests I use JBoss AS 4.2.3 with JDK5 on my linux machine. &nbsp;Jmeter is used to load test and calculate the results and graphs. &nbsp;I then use JProfiler to to identify either blocking threads, call graphs, and CPU usage. &nbsp;<br> Unfortunately the results were not good. &nbsp;I was using a mixture of 25 and 50 users - hitting the server 25 times each. &nbsp;As before they were accessing the first page of the user forum.<br> <br> With r9017 the 25 user x 25 requests averaged 3 seconds a request. &nbsp;With trunk they were 100+ seconds. &nbsp;Thinking something was wrong with the system I replaced the 9557 wiki.war with the 9017 and reran with all other variables the same. &nbsp;Again the 9017 saw about 3 seconds for the average over the 625 requests.<br> <br> I then profiled the server under load as I did before. &nbsp;The methods below appear to be the primary offenders although as with most blocking threads there are some others waiting on the same monitor. &nbsp;I'll follow up this email with the stack traces, and more information from my investigation.<br> <br> -----------------------------------<br> 1) com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate.findLock(..)<br> &nbsp;- This appears to be the biggest issue. &nbsp;Every requests are generating many of these calls.<br> &nbsp;- <a href="http://viewvc.jboss.org/cgi-bin/viewvc.cgi/labs/labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/atsintegration/classes/com/arjuna/ats/jbossatx/jta/TransactionManagerDelegate.java?view=markup" target="_blank">http://viewvc.jboss.org/cgi-bin/viewvc.cgi/labs/labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/atsintegration/classes/com/arjuna/ats/jbossatx/jta/TransactionManagerDelegate.java?view=markup</a><br>  &nbsp; &nbsp;- It looks like every interaction with any transaction causing synchronization issues with this call.<br> &nbsp;- We'll need to find a way to limit these calls.<br> &nbsp;- I'm guessing some of the changes made for JBSEAM-3519 may be the cause although I have not had time to look deeper.<br></div> &nbsp;- See : <a href="http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/transaction/TransactionInterceptor.java?r1=8626&amp;r2=9552&amp;u=-1&amp;ignore=&amp;k=" target="_blank">http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/transaction/TransactionInterceptor.java?r1=8626&amp;r2=9552&amp;u=-1&amp;ignore=&amp;k=</a> &lt;<a href="http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/transaction/TransactionInterceptor.java?r1=8626&amp;r2=9552&amp;u=-1&amp;ignore=&amp;k=" target="_blank">http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/transaction/TransactionInterceptor.java?r1=8626&amp;r2=9552&amp;u=-1&amp;ignore=&amp;k=</a>><br>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/util/Work.java?r1=9221&amp;r2=9550&amp;u=-1&amp;ignore=&amp;k=" target="_blank">http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/util/Work.java?r1=9221&amp;r2=9550&amp;u=-1&amp;ignore=&amp;k=</a> &lt;<a href="http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/util/Work.java?r1=9221&amp;r2=9550&amp;u=-1&amp;ignore=&amp;k=" target="_blank">http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/util/Work.java?r1=9221&amp;r2=9550&amp;u=-1&amp;ignore=&amp;k=</a>><div> <br> -----------------------------------<br> 2) org.jboss.naming.ENCFactory.getObjectInstance()<br> &nbsp; &nbsp;javax.naming.Context.lookup(java.lang.String)<br> <br> &nbsp;This appears to be the second biggest offender and it looks like we are no longer blocking on retrieving the InitialContext, but now blocking on performing the lookups using the context.<br> -----------------------------------<br> 3) org.jboss.resource.connectionmanager.CachedConnectionManager.unregisterConnection()<br> &nbsp; org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection()<br> <br> This is the third biggest issue, but much less than the others. &nbsp;1 or 2 dozen blocks on 60 requests. &nbsp;These are all related to hibernate calls and database access from what I've seen so far.<br> -----------------------------------<br> I'll follow up this email tomorrow with the typical stack traces seen for each of these.<br> <br> Shane could you review, and I'll get more information on these tomorrow. <br> Thanks,<br> -Jay<br> <br> -- <br> blog: <a href="http://in.relation.to/Bloggers/Jay" target="_blank">http://in.relation.to/Bloggers/Jay</a><br></div> ------------------------------------------------------------------------<br> <br> _______________________________________________<br> seam-dev mailing list<br> <a href="mailto:seam-dev@lists.jboss.org" target="_blank">seam-dev@lists.jboss.org</a><br> <a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br> &nbsp;<br> </blockquote> <br> </blockquote></div><br><br clear="all"><br>-- <br>blog: <a href="http://in.relation.to/Bloggers/Jay" target="_blank">http://in.relation.to/Bloggers/Jay</a><br> </div></div></blockquote></div><br><br clear="all"><br>-- <br>blog: <a href="http://in.relation.to/Bloggers/Jay" target="_blank">http://in.relation.to/Bloggers/Jay</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></blockquote></div><br></div></body></html>