Applying general advices regarding performance
There are several general advices to look at when you want to maximize the performance and scalability of your application. In this recipe, we will have a spotlight over them.
These are the first things you want to look at when you start planning your application for production. Once these recommendations are applied, rest assured that you have followed the best practices for performance tuning and scalability. This recipe doesn't require an application.
How to do it…
In order to understand different general optimization recommendations, perform the following steps:
Avoid adding inline JavaScript in the JSF or JSPX pages.
Whenever you have a custom servlet, configure the JSP timeout parameter for it by applying the following syntax in
web.xml
:<servlet> <servlet-name> MyCustomServlet <init-param> <param-name>jsp_timeout</param-name> <param-value>10</param-value> </init-param> <...