Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Maximum concurrent users for JSF2?

user12151007Nov 25 2013 — edited Nov 27 2013

Hi everybody,

I am working on a Java Web Application, using the following frameworks : Spring 3.1, JSF 2.1.26 and RichFaces 4.3.3.

The whole app is running in the Amazon Cloud under medium.m1 instances (2 - 2.4 Ghz single core), with a Tomcat 7.

My customer asked questions about the performances of the web application, and about the poor number of concurrent users that can be handled on the same server.

He gave me a report showing that a servlet with about the same hardware than the Amazon medium one is able to serve about 800-1000 requests per seconds (40KB page) :

https://www.webperformance.com/library/reports/windows_vs_linux_part1/

I then decided to execute some tests on my application.

I removed the database, all filters (security, etc.) and keep a classic list page (header/footer + data table + sort/search/filters/data scroller...) with 20 visible rows.

The page takes about 300 ms to be loaded, without any load.

When I executed the load test for my application, I realize that it can only serve 20 requests per second before the request/response time exceeds the 1000 ms.

Can you tell me if this is a normal behavior?

I can understand a JSF page is longer to build than a simple servlet one, but not being able to serve more than 20 requests, while the servlet serve 1 000 seems quite strange.

Is there any standard benchmark for a typical JSF application?

If you think I have optimization problem, can you tell me where I can search?

Thanks in advance for your answer!

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 25 2013
Added on Nov 25 2013
3 comments
2,602 views