<div>Performance Review of current Seam trunk fo 2.1.1</div><div>--------------------------------------------------------</div><div><br></div><div>Working with the latest trunk from today (r9557) and testing the performance changes that were made. Previous tests were done with (r9017). 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> data up to July 31st 2008. </div>
<div><br></div><div>For these tests I use JBoss AS 4.2.3 with JDK5 on my linux machine. Jmeter is used to load test and calculate the results and graphs. I then use JProfiler to to identify either blocking threads, call graphs, and CPU usage. </div>
<div><br></div><div>Unfortunately the results were not good. I was using a mixture of 25 and 50 users - hitting the server 25 times each. As before they were accessing the first page of the user forum.</div><div><br></div>
<div>With r9017 the 25 user x 25 requests averaged 3 seconds a request. With trunk they were 100+ seconds. Thinking something was wrong with the system I replaced the 9557 wiki.war with the 9017 and reran with all other variables the same. Again the 9017 saw about 3 seconds for the average over the 625 requests.</div>
<div><br></div><div>I then profiled the server under load as I did before. The methods below appear to be the primary offenders although as with most blocking threads there are some others waiting on the same monitor. I'll follow up this email with the stack traces, and more information from my investigation.</div>
<div><br></div><div>-----------------------------------<br></div><div>1) com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate.findLock(..)</div><div> - This appears to be the biggest issue. Every requests are generating many of these calls.</div>
<div><div> - <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></div>
<div> </div></div><div> - It looks like every interaction with any transaction causing synchronization issues with this call.</div><div> - We'll need to find a way to limit these calls.</div>
<div> - I'm guessing some of the changes made for JBSEAM-3519 may be the cause although I have not had time to look deeper.</div><div> - See : <a href="http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/transaction/TransactionInterceptor.java?r1=8626&r2=9552&u=-1&ignore=&k=" target="_blank">http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/transaction/TransactionInterceptor.java?r1=8626&r2=9552&u=-1&ignore=&k=</a></div>
<div> <a href="http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/util/Work.java?r1=9221&r2=9550&u=-1&ignore=&k=" target="_blank">http://fisheye.jboss.org/browse/Seam/trunk/src/main/org/jboss/seam/util/Work.java?r1=9221&r2=9550&u=-1&ignore=&k=</a></div>
<div>-----------------------------------<br></div><div>2) org.jboss.naming.ENCFactory.getObjectInstance()</div><div> javax.naming.Context.lookup(java.lang.String)</div><div><br></div><div> 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.</div>
<div>-----------------------------------</div><div>3) org.jboss.resource.connectionmanager.CachedConnectionManager.unregisterConnection()</div><div> org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection()</div>
<div><br></div><div><div>This is the third biggest issue, but much less than the others. 1 or 2 dozen blocks on 60 requests. These are all related to hibernate calls and database access from what I've seen so far.</div>
<div>-----------------------------------</div>
</div><div>I'll follow up this email tomorrow with the typical stack traces seen for each of these.</div><div><br></div><div>Shane could you review, and I'll get more information on these tomorrow. </div><div><br>
</div><div>Thanks,</div><div>
-Jay</div><div><br></div>-- <br>blog: <a href="http://in.relation.to/Bloggers/Jay" target="_blank">http://in.relation.to/Bloggers/Jay</a><br>