Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Jasperreport Performance

  Asked By: David    Date: Dec 23    Category: Java    Views: 2763
  

1- i have a open source Solution for my Report
engine(i use of Ireport& Jasper Engine) but i have
problem with jasperReport Performance...(for huge
report it take a waste time!)
Are u have a idea for Jasper performance tuning?
(I know that jasperreport create a JasperPrint Object
that take 70-90% of time for creating a report,if i
can serialze or apply paging tech. to this object
problem is solved! but i don't know, how do it?)
2-if u familar with other report engine that have
better performance or powerfull utitlty On WEB
Reports, geive me a idea PLZ.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Jennie Harris     Answered On: Dec 23

Use below Ant task to pre-compile your reports and then use ".jasper"
files within your project. This will concentrated that 70-90% of report
compilation time in compile process, and also do a pre-check of report
validation. Remember to place jasper  reports library in Ant's classpath
and use only fillReport (no compileReport needed).


<taskdef name="jrc"
classname="net.sf.jasperreports.ant.JRAntCompileTask"/>

<target name="jasper">
<mkdir dir="${tmp.dir}"/>
<jrc destdir="${classes.dir}" srcdir="${src.dir}" keepjava="true"
compiler="net.sf.jasperreports.engine.design.JRJavacCompiler"
casesensitive="false" tempdir="${tmp.dir}"
followsymlinks="false">
<!--compiler="net.sf.jasperreports.engine.design.JRDefaultCompiler"-->
<!--compiler="net.sf.jasperreports.engine.design.JRJdk13Compiler"-->
<include name="**/*.jrxml"/>
<!-- under construction reports :) -->
<exclude name="**/NotYetReadyReport.jrxml"/>
</jrc>
</target>

 
Answer #2    Answered By: Melissa King     Answered On: Dec 23

formatting reports need graphýcal processing and it takes time, use crystal reports for same reports if it was faster then you can fine tune your jasper  report engine.

 
Didn't find what you were looking for? Find more on Jasperreport Performance Or get search suggestion and latest updates.