How to Modify the file to disable multi-line data processing

Modify the 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 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 file in the /jasperserver-pro/WEB-INF/classes directory. After you make the change, the file should have this entry:


Other Performance Tips: