This functionality is obsolete and no longer supported. Please check the link here for similar functionality on version 7.8+
Modify the jasperreports.properties file to disable multi-line data processing
This trick speeds up report generation from 2-4 times. It works great with simple, single-line tabular data but there are issues with multi-line data: the text boxes don't get re-sized, so anything beyond the first line gets cut off.
Trick: In the jasperreports.properties file, change the value of the net.sf.jasperreports.text.measurer.factory parameter
from: net.sf.jasperreports.engine.util.JdkGlyphFixTextMeasurerFactory
to: com.jaspersoft.jasperserver.api.engine.jasperreports.util.SingleLineTextMeasurerFactory
You can find the jasperreports.properties file in the /jasperserver-pro/WEB-INF/classes directory. After you make the change, the file should have this entry:
net.sf.jasperreports.text.measurer.factory=com.jaspersoft.jasperserver.api.engine.jasperreports.util.SingleLineTextMeasurerFactory
Other Performance Tips:
Measure and Test
Ad Hoc
- Set query limits on the "Ad Hoc Options" page
- Modify the Ad Hoc caching values if your data does not update constantly
Tomcat
- Compress HTTP responses at the Tomcat level
- Increase the maximum thread count at the Tomcat level
- Set up a cache filter for Tomcat or JBoss
- Disable automatic deployment on production servers using Tomcat
Database
- Index columns in the database to speed up domain-based reports
- Set the fetch size in the jasperreports.properties file to modify the number of rows to fetch
JasperReports Configuration Items
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now