kuzman Posted April 15, 2010 Share Posted April 15, 2010 Hi,I have many small report and one big report on Jasperserver. The problem is the following:When I run the small report many times no problem. When I run the big report it is working, but if I run it second or third time I got the Java heap: Out of memory error message. After I can run the small riport without error but the run time is cca. doubled. To run the big report again I have to restart the tomcat service, after the big report is working well again.I have JS 3.1 and Win XP, Apache TomcatI had gave big memory to the Apache in the service.bat:"-Djava.io.tmpdir=%CATALINA_BASE%\temp" --JvmMs 256 --JvmMx 2048Mbr,Zsolt Link to comment Share on other sites More sharing options...
lucianc Posted April 15, 2010 Share Posted April 15, 2010 Generated reports are kept on the session on a LRU bounded queue. The report is evicted from the session when the View Report page is explicitly closed by clicking the Back icon, or when the max number of reports on a session (by default 5) is reached. However, the report is not removed when the user closes or navigates away from the View Report.What probably happens in your case is that the large report remains on the session, and the second report execition doesn't have enough heap space to complete. Try to see whether clicking Back after the first execution makes a difference.Regards,Lucian Link to comment Share on other sites More sharing options...
kuzman Posted April 16, 2010 Author Share Posted April 16, 2010 Hi Lucian,thanks your help. I am using the riports from URL and I show it in iFrame.I should press the back icon near to the report options icon?Where can I modify the max number of reports on a session?br,Zsolt Link to comment Share on other sites More sharing options...
kuzman Posted April 19, 2010 Author Share Posted April 19, 2010 Hi Lucian!I have tried out the back icon, does not solved the problem.Where can I set max report number to the session?Zs Link to comment Share on other sites More sharing options...
lucianc Posted April 20, 2010 Share Posted April 20, 2010 You can set it in WEB-INF/applicationContext.xml, search for a bean called jasperPrintAccessor.Regards,Lucian Link to comment Share on other sites More sharing options...
kuzman Posted April 21, 2010 Author Share Posted April 21, 2010 thanks :) 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