Jump to content
We've recently updated our Privacy Statement, available here ×

Report taking long time to generate in linux.


prani_vel

Recommended Posts

Hi,

I Have a report of 250 pages .This report is generated by fecthing and manpulating data in java class and jr bean collection datasource is set as a datasource to it. When i run it on my windows local machine the report takes about 20-30 sec .When i run the same thing on linux environment , it is taking about 2:30 minutes . I have seen the logs ang verified that filling up of the report is taking about 1:50 minutes. I am using a verdana font on report which is not available on linux so i had to use verdana.jar along with spring.jar , this is creating  huge logs like

09-22-2010 10:46:35 DEBUG [XmlBeanFactory] Returning cached instance of singleton bean 'fontBean126719993065724366'
09-22-2010 10:46:35 DEBUG [springExtensionsRegistry] Getting bean fontBean126719993065724366 as extension of type net.sf.jasperreports.engine.fonts.FontFamily
09-22-2010 10:46:35 DEBUG [XmlBeanFactory] Returning cached instance of singleton bean 'fontBean126719993065724366'
09-22-2010 10:46:35 DEBUG [springExtensionsRegistry] Getting bean fontBean126719993065724366 as extension of type net.sf.jasperreports.engine.fonts.FontFamily
09-22-2010 10:46:35 DEBUG [XmlBeanFactory] Returning cached instance of singleton bean 'fontBean126719993065724366'
09-22-2010 10:46:35 DEBUG [springExtensionsRegistry] Getting bean fontBean126719993065724366 as extension of type net.sf.jasperreports.engine.fonts.FontFamily
09-22-2010 10:46:35 DEBUG [XmlBeanFactory] Returning cached instance of singleton bean 'fontBean126719993065724366'
09-22-2010 10:46:35 DEBUG [springExtensionsRegistry] Getting bean fontBean126719993065724366 as extension of type net.sf.jasperreports.engine.fonts.FontFamily
09-22-2010 10:46:35 DEBUG [XmlBeanFactory] Returning cached instance of singleton bean 'fontBean126719993065724366'
09-22-2010 10:46:35 DEBUG [springExtensionsRegistry] Getting bean fontBean126719993065724366 as extension of type net.sf.jasperreports.engine.fonts.FontFamily
09-22-2010 10:46:35 DEBUG [XmlBeanFactory] Returning cached instance of singleton bean 'fontBean126719993065724366'
09-22-2010 10:46:35 DEBUG [springExtensionsRegistry] Getting bean fontBean126719993065724366 as extension of type net.sf.jasperreports.engine.fonts.FontFamily
09-22-2010 10:46:35 DEBUG [XmlBeanFactory] Returning cached instance of singleton bean 'fontBean126719993065724366'
09-22-2010 10:46:35 DEBUG [springExtensionsRegistry] Getting bean fontBean126719993065724366 as extension of type net.sf.jasperreports.engine.fonts.FontFamily
09-22-2010 10:46:35 DEBUG [XmlBeanFactory] Returning cached instance of singleton bean 'fontBean126719993065724366'
09-22-2010 10:46:35 DEBUG [JRVerticalFiller] Fill 1162357696: detail

Can anyone tell if this could be the reason for the delay ?. or do i need to do some work around to generate the report faster. Please advise.

Note :the log pasted is only small part of the 10 mb file generated.

Thanks and regards

Siva.

 

 

 

 

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

 

I suggest you upgrade to a recent version of JR which comes with a new implementation of font extension files, which do not require Spring.

You can recreate your Verdana font extension with the iReport wizard.

 

Secondly, I would want you to check the version of the JVM you are using on Linux. Is it a Sun implementation?

Note that JR is using AWT intensively for rendering during the report filling process and as far as I can tell AWT is slower on Linux machines.

 

I hope this helps.

Teodor

 

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...

I was also wondering if there is a way to speed up the generation of reports (Centos, JR3.7, JDK 1.6.0).

When we used CrystalReports (Windows), the reports printed faster. Now, with Jasper, the printing is slower. 

Probably because of the extra overhead: I generate the report via a URL, export it to PDF, and CURL it to the printer (LPR).

> curl "http://localhost:8080/jasperserver/flow.html_flowId=viewReportFlow&output=pdf&reportUnit=<report>" | lpr -P <printer>
and this times 1000

Is there any way to tweak the performance? Perhaps keep the database connection open?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...