dbarra / xdocreport

Automatically exported from code.google.com/p/xdocreport
1 stars 0 forks source link

OutHeap Memory #329

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using Docx Reporting in WEB Application with Servlet, i develop a web 
application for add data to the word document and exporting that document.in 
this process i am using velocity framework for replacing data,also using 
FieldSetMetatadata for replacing images. problem is when i export documents 
more than 30 it will throw "OutofMemory in java Heap space"
system configuration is RAM:8GB  OS : windows server2008 R2 Enterprise 64bit. 
jdk is jdk1.6.0_18.The following code i used for finding the heap size  
long totalmemory=Runtime.getRuntime().totalMemory();
long Freememory=Runtime.getRuntime().freeMemory();
System.out.println("Total memory :"+totalmemory/1024/1024+"mb");
System.out.println("Free memory :"+Freememory/1024/1024+"mb") 
o/p Total memory :247mb
Free memory :29mb//This value change for every document exporting.
when i am using another system more then 150 i export i face the same memory 
problm
system configuration is RAM:4GB  OS : windows server2008 R2 Enterprise 64bit. 
jdk  version "1.7.0_25"
o/p Total memory :896mb
Free memory :487mb
The free memory is decreasing every document export how to reduce this 
problem... i attached files bellow..

Original issue reported on code.google.com by vinnu13a...@gmail.com on 19 Nov 2013 at 7:05

Attachments:

GoogleCodeExporter commented 8 years ago
Here i am attach my error file

Original comment by vinnu13a...@gmail.com on 19 Nov 2013 at 7:32

Attachments:

GoogleCodeExporter commented 8 years ago
It seems that it's the same issue than 
https://code.google.com/p/xdocreport/issues/detail?id=320 (same 
MyReportServlet.java code). Please don't post seveal time the same issue. 
Thank's.

As I have answered in this issue, it's perhaps about your barcode png which is 
big? Try with a little image if it works.

Original comment by angelo.z...@gmail.com on 19 Nov 2013 at 8:01