• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF scalability  RSS feed

 
Sidla Harish
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We ported an application from client side-heavy Javascript XSLT to JSF.

Running tests on Mercury Loadrunner for 100 simultaneous users, results are unbeleievable with response times exceeding 3 minutes!!

What I observed in the results was that JSF-tags like selectOneMenu average about 2 seconds to load and based on the number of components on the JSP the slow response adds up.
All this happens especially after nuumber of users exceeds 20.

Am I missing something obvious? why shoudl tags take so long to load?
I don;t see any resources specific to JSF performance tuning. We use the latest version of JSF - Sun implementation in IBM.

Thanks in advance for any inputs.

 
Alexander Jesse
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1st: check out what is blocking you: memory or cpu or data transfer

2nd if memory:
- there is a parameter (web.xml - context param) to control the number of saved views (if you use server-state), don't know its name right now
- check what your app packs into the session!!!

2nd if cpu:
- using client-state? if your memory is no problem, you might consider switching to server-state
- test using MyFaces (tests with the "non-lates" RI showed an advantage for MyFaces in terms of processing time, but YMMV)

2nd if data transfer:
- would AJAX be a solution? But be aware, AJAX means the damned old Javascript again

hth
Alexander
 
Sidla Harish
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

1st: check out what is blocking you: memory or cpu or data transfer
>90% of the problem appeared to be a database issue which was corrected, though I do not understand how, because Memory and CPU were OK throughout (within 500MB and 30% respectively).

2nd if data transfer:
- would AJAX be a solution? But be aware, AJAX means the damned old Javascript again
>We used a XSL+Javascript framework earlier with never ending Browser-support issues, when the performance for similar tests was excellent. However we consciously decided on JSF.

Now with the database environment correction, reponse times range upto 15 seconds for 50 concurrent users. However it starts deteriorating above 20 concurrent users.

-Harish.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!