How to improve JSF/RichFaces performance
We have a complex ERP application that has RichFaces 3.3, JSF 1.2, Hibernate, Spring, MySQL which is running under JBoss on a 16GB AWS CentOS instance. This application has lot of grids, calendars, popups, tabs and richfaces components that any ERP application is expected to have.
Over a period of time, we realized that the performance of our application is pathetically slow and we started exploring options to improve the performance. We read several articles on this and to our surprise we discovered that lot of people are annoyed with slow performance of RF3.3. After various readings, we did following tweaks:
- Tweaked the MySQL for better performance throughput.
- Put together EHCache which has seamless integration with the Hibernate.
- Tweaked the web.xml with all the suggestions available on the net.
- Configured Niko parser (and our UI was all messed up!!)
- Removed the theme changer, changed the loading strategy etc.
- Used A4JRegion, Ajaxied tab loading etc
- Used the ‘minimalist’ RichFaces themes
- Changed bean scope
Our performance did improve but it was a very slight improvement. Our application was STILL crawling. And the most baffling performance bottleneck was that the simple page load itself was taking anywhere between 10–20seconds.
Read more: https://tudip.com/blog-post/improve-jsfrichfaces-performance/