lorenzo.renzi Posted July 1, 2009 Share Posted July 1, 2009 I have a repor with 2 milion of record.Heap Memory = 1600 m ( is the max form 32bit)I receve a heap memory error when run the report.Is correct even increase heap memory?I have to use 64-bit architecture?Is correct set heap memory = 4giga?Is possible on window 2003 server x64? Thank's Lorenzo Renzi Link to comment Share on other sites More sharing options...
swood Posted July 2, 2009 Share Posted July 2, 2009 Are you generating a JasperReport report with a lot of pages? In JasperServer, the virtualizer will page the report content to disk so that you should not run out of memory. Or are you trying to use JasperServer Professional ad hoc or domain reports through the browser? We have done tests with 10s of millions of rows, with compressed in-memory query results on Linux machines with 6GB of heap. I believe that Sun Java on Windows 64 bit will allow you to set the amount of heap. ShermanJaspersoftPost Edited by swood at 07/02/2009 02:24 Link to comment Share on other sites More sharing options...
lorenzo.renzi Posted July 2, 2009 Author Share Posted July 2, 2009 I have installed jasperserver on window server x64. JRE 6 x64 TomCat 64 bit as window service. 4 processor 6giga ram i use this configuration: Xms4000m -Xmx4000m When run 1 or 2 report (with 150k record) the performance is very bad. I don't have heap memory error, but jasperserver is slow when navigate between folder or the page load more time when try to login. Can you help me? Thank's Link to comment Share on other sites More sharing options...
swood Posted July 3, 2009 Share Posted July 3, 2009 Rather than committing all 4GB at once, try letting the app server gradually use RAM by using -Xms2000m. After the reports run, how much heap is used? You did not tell me how many pages the reports generated. Usually, the bottleneck in performance is the query itself. Is the query perform well outside of JasperServer? Does the report run well in iReport? I don't know why JasperServer would be slow moving from folder to folder. Do you have a lot of objects in the repository? A lot of permission definitions? Is the repository on the same machine as Tomcat? is it MySQL? ShermanJaspersoft Link to comment Share on other sites More sharing options...
lorenzo.renzi Posted July 3, 2009 Author Share Posted July 3, 2009 >>Usually, the bottleneck in performance is the query itself. Is the query >>perform well outside of JasperServer >>Does the report run well in iReport? The query is very heavy. Use 100% cpu when run in ireport. >>I don't know why JasperServer would be slow moving from folder to folder.Do you have a lot of objects in the repository? No only 8 big file ( 20/30m). >>A lot of permission definitions? What's definition? >>Is the repository on the same machine as Tomcat? is it MySQL? YES and YESJasperServer is very slow when click on repository folder(/root/Content files/CSV) The problem is Mysql? Exists jasper support in italy? Lorenzo RenziPost Edited by lore0457 at 07/03/2009 08:30 Link to comment Share on other sites More sharing options...
lorenzo.renzi Posted July 3, 2009 Author Share Posted July 3, 2009 Also: If a user click on /root/Content files/CSV) ( folder where are some file), the server's cpu usage >30% If 2 users click on /root/Content files/CSV) ( folder where are some file), the server's cpu usage >60% If 3 users click on /root/Content files/CSV) ( folder where are some file), the server's cpu usage >90% Is normal!?!?!? Also, I installed GLASSBOX for check problem. I attach the result Thank's a lot ..... i'm disperate. Link to comment Share on other sites More sharing options...
swood Posted July 4, 2009 Share Posted July 4, 2009 OK, I think I see the problem. It is related to your other issue http://jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=59365 When you browse the repository, we are using Hibernate behind the scenes. The documents are stored as blobs in the repository database. We don't need to pull the whole document into memory just to display it in the folder list, and I thought that we weren't, but it looks like we are. So in this case, when a user hits that folder with the 8 20-30MB documents, they are being pulled into memory - 240MB/user. So 3 users = 720MB of JVM heap. This is only done to get the list, so the documents are released quickly, but the time to load the document into heap is still significant, causing the performance problems. We use the same repository access mechanism during the export, so you will have similar heap memory issues. Obviously, this is a concern. I'll see how we can look into this some more and come up with a patch if needed. We do have support in Italy. Our support team is worldwide, covering all time zones. We are all over Europe: Ireland, France, Luxemborg, Germany, Romania, Ukraine and Italy. Guilio Tuffoli - the iReport lead - is in Padova. And there we have implementation and technology partners too. ShermanJaspersoft Link to comment Share on other sites More sharing options...
lorenzo.renzi Posted July 4, 2009 Author Share Posted July 4, 2009 I have 2 machine:First machine:os: Windows 32bitram: 6gigacpu: 6 processor.Heap memory like this: 512mb -1024mbWhen i user Js-export i have the Heap Memory problem.No another activity on server ( jasperserver in not running during export)In the repository i have 6/7 large file (20/30 mb).JasperServer would be very slow moving from folder to repository.JasperServer using more CPU moving from folder to repository.In this machine i have often heap memory when run a video my report ( 150k record, 6.000 pages)Second machine:os: Windows 64bitram: 6gigacpu: 4 processor.Heap memory like this: 512mb -4000mbIn this machine i not runa js-export.JasperServer would be very slow moving from folder to repository.JasperServer using more CPU moving from folder to repository.I see high use of cpu (90%), when run 10/15 report at the same time.I attach the GLASSBOX report.I can do other tests?How i can contact with Toffoli? Thank's for support and patience.Lorenzo RenziiTHAN -- www.ihan.it Post Edited by lore0457 at 07/04/2009 07:54 Link to comment Share on other sites More sharing options...
swood Posted July 19, 2009 Share Posted July 19, 2009 Aksking some other folks, this is a problem with MySQL. JasperServer does not load the report content explicitly, but the MySQL JDBC driver does because the rows are accessed. We will see what we can do to improve this. ShermanJaspersoft Link to comment Share on other sites More sharing options...
lorenzo.renzi Posted July 20, 2009 Author Share Posted July 20, 2009 I look forward to news.Thank's for your support.LorenzoiTHAN Link to comment Share on other sites More sharing options...
kcd Posted May 3, 2012 Share Posted May 3, 2012 Any update on this?Code: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAN13718 tomcat 20 0 5474m 471m 17m S 0.3 4.0 0:41.23 java13718 tomcat 20 0 5538m 636m 17m S 98.0 5.4 0:44.18 java13718 tomcat 20 0 5538m 640m 17m S 62.5 5.4 0:46.06 java13718 tomcat 20 0 5538m 632m 17m S 1.0 5.3 0:46.09 java13718 tomcat 20 0 5538m 626m 17m S 2.3 5.3 0:46.16 java13718 tomcat 20 0 5538m 628m 17m S 25.3 5.3 0:46.92 java13718 tomcat 20 0 5474m 552m 17m S 0.7 4.6 0:46.94 java Link to comment Share on other sites More sharing options...
carlhub Posted May 3, 2012 Share Posted May 3, 2012 Does anyone know if this problem with Export pulling entire report into memory causing java heap issue still exists in Jasper Server CP 4.2.1? Got issue with running 6-8 concurrent report running with good performance above that number and taking major performance hit, this is 64bit, I have increased java variables for heap include permsize without improvement. Reports being run are fairly large with many subreport. Need this explained away before moving toward production. For more info checkout my posting at http://www.linkedin.com/groups/Have-performance-issue-after-6-1812535.S.111667174 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