Production Configuration

The main JSP optimization which can be done is precompilation of JSPs. However, this might not be possible (for example, when using the jsp-property-group feature) or practical, in which case the configuration of the Jasper servlet becomes critical.

When using Jasper 2 in a production Tomcat server you should consider making the following changes from the default configuration.

development – To disable on access checks for JSP pages compilation set this to false.

genStringAsCharArray – To generate slightly more efficient char arrays, set this to true.

modificationTestInterval – If development has to be set to true for any reason (such as dynamic generation of JSPs), setting this to a high value will improve performance a lot.

trimSpaces – To remove useless bytes from the response, set this to true.

Known Issues
Web Application Compilation

Get industry recognized certification – Contact us

keyboard_arrow_up
Open chat
Need help?
Hello 👋
Can we help you?