[jboss-user] [Performance Tuning] - Scaling of a Seam app

jb0ssn00b do-not-reply at jboss.com
Tue Sep 15 08:57:13 EDT 2009


Hello all,

I have experience in developing web applications with php and javascript for 10 years and have also 7 years of java experience. 

Now I made my way to the JEE world and my interest is creation of scalable applications based on this technology.

I have developed a rather simple blog-like web application based on Seam 2.1 and RichFaces. General functions are viewing of a page, post a comment and do search. The output structure is highly dynamic i.e. 90% of HTML content is generated based on user input (not much to cache?). We have also an extensive usage of the reRender RichFaces property where it makes sense. We run JBoss 5.0.1 with mod_jk and Apache.

Now I want to proceed with a scaling step and I have thousands of questions, also regarding the system setup. 

What we got now is a test system with 1 SATA drive, dual core CPU (2 Ghz) and 3GB of RAM; the DB system is MySQL. I have done some load tests using the linux tool 'siege' which pulls only a certain url and the cookie but not all the static content. I have for example concurrency problems with a limit to something between 2 and 8 concurrent users.

My general questions are:

- what would be the typical maximum request rate for this hardware configuration if using the described components? When should I think of a server with e.g. 4 or 8 GB RAM or additional machines for the database or for a clustering solution? First of all, which concurrency rates should be "normal" for what configuration? 

- by tuning transaction isolation it seems rather hard to tune the server in a way so that there are no concurrency conflicts even on incrementing an item counter. What do you do, guys, to avoid that?? (or is that a question to Hibernate community?)

- after a level of concurrent requests exceeding 10 or 15 the server gives up, saying "cannot open jdbc connection" and does not recover from this state. Tuning db pool size does not help.

- does it make sense to upgrade to JBoss 5.1.0, Seam 2.2 and also JVM 6? (I mean, many folks are still happily running JBoss 4 and JVM 1.4 or not?)

- what books or tutorials are known to give an extensive assistance to these topics?

thank you very much in advance

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255298#4255298

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255298



More information about the jboss-user mailing list