How to improve performance of jsf myfaces based application ?
Some tips that I have collected so far
Trinidad
- Set following init parameters to false in web.xml
- org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT
- org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
- org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION
- use client-side state saving
- clear pageflow context map when not in use
Myfaces
- Set following init parameters to false in web.xml
- org.apache.myfaces.COMPRESS_STATE_IN_SESSION
- org.apache.myfaces.SERIALIZE_STATE_IN_SESSION
- org.apache.myfaces.PRETTY_HTML
- org.apache.myfaces.VALIDATE
- Reduce value of org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION from init param (default is 20)
facelets
- Set following init parameters to false in web.xml
- facelets.DEVELOPMENT
- facelets.SKIP_COMMENTS
- set facelets.BUFFER_SIZE and com.sun.faces.responseBufferSize to large value like 10000000
- set facelets.REFRESH_PERIOD to -1
Is there anything else to add to this ?