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
- Tomcat
- Database
- JasperReports Configuration Items
Log in or register to post comments