Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSF performance limit [closed]

I have a sort of unusual question, and I know it is a very controversial, but here it comes.

I have developed a few JSF applications in the past but these all limit the amount of users that can be servred about 5-6. This was partly because of a license based policy. I performed some tests with 20+ users and Selenium, and the applications went really slow. The problem was probably originating from the server's performance but still, I can't help to ask the following question:

Can a JSF application support a large number of users? My bet would be that the framework should allow it, however I can't think of any commercial website that uses JSF and can support thousands of users at a time. (If you could show me some that would be great!)

I ask this, because I have been asked to develop a larger system, and I would love to use JSF because I love it very much, however the recent performance tests gave me doubts. The lead programmer said it is only the server machine's perfomance that is the issue, but in that case, what kind of machine can support thousands of users logged in at the same time? The lead programmer is not the best of it's kind, that is why I want to hear a second opinion from SOF if you dont mind.

If there is any framework more suitable for extreme use please let me know which one it is, the only real constraint I have is that it should be Java based on the server side.

Again my apologies for the unconstructive question.

like image 773
Peter Jaloveczki Avatar asked May 29 '13 10:05

Peter Jaloveczki


2 Answers

these all limit the amount of users that can be servred about 5-6

Not sure what the app's load or design are, but that sounds unbelievably low. JSF should be able to handle many 100s of users if designed right or even 1000s with the right infrastructure. JSF code runs with servlets and facelets - the framework is standard code on top of these, that has been optimized over time and gets JIT optimised at runtime.

E.g. With IBM Websphere Portal Server and Oracle Portal, the standard way to build customer portals and apps is via JSF. And they're used in massive installations.

Sounds like your past app(s) have some problem. I don't think you can blame that performance on JSF.

like image 99
Glen Best Avatar answered Nov 18 '22 05:11

Glen Best


If you want an extreme number of connection is Java you might consider http://netty.io/ It is designed to support and has been tested for 100,000+ connections.

I suspect the bottleneck is not the number of connections you have but how efficient you serve up pages i.e. you JSF is particularly slow. If you optimise that I suspect you can handle more connections.

like image 29
Peter Lawrey Avatar answered Nov 18 '22 05:11

Peter Lawrey