prani_vel Posted September 23, 2010 Share Posted September 23, 2010 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 like09-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.FontFamily09-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.FontFamily09-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.FontFamily09-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.FontFamily09-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.FontFamily09-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.FontFamily09-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.FontFamily09-22-2010 10:46:35 DEBUG [XmlBeanFactory] Returning cached instance of singleton bean 'fontBean126719993065724366'09-22-2010 10:46:35 DEBUG [JRVerticalFiller] Fill 1162357696: detailCan 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 regardsSiva. Link to comment Share on other sites More sharing options...
prani_vel Posted September 24, 2010 Author Share Posted September 24, 2010 Hi, Still not able to find the answer. This is very urgent . Please reply if you have some pointers TIASiva Link to comment Share on other sites More sharing options...
fathi Posted September 27, 2010 Share Posted September 27, 2010 Maybe you could check if you are using the same java jre version on windows and linux Post Edited by fathi at 09/27/2010 13:03 Link to comment Share on other sites More sharing options...
teodord Posted September 28, 2010 Share Posted September 28, 2010 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 More sharing options...
gulasbot Posted October 14, 2010 Share Posted October 14, 2010 Did you find any solution? I have exactly the same problem. In Windows works well, but in Linux server reports are very slow. I'm using Ireport 3.7.5 + Jasperreport 3.7.5, JDK 1.6 Thanks and regards Link to comment Share on other sites More sharing options...
bartbons Posted November 11, 2010 Share Posted November 11, 2010 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 1000Is there any way to tweak the performance? Perhaps keep the database connection open? Link to comment Share on other sites More sharing options...
Recommended Posts
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