how to use JRSwapFileVirtualizer for jasper reports in java -


How to use JRSwapFileVirtualizer for astrologer report in Java, this is the code I use ..

  JRSwfFileViricalIsizerVerchualizer = Null; Virtualized = New JRSwapFileVirtualizer (10000, new JRSwapFile ("F: //", 1000, 1000), Incorrect); Param.put (JRParameter.REPORT_VIRTUALIZER, Virtualizer); XmlDataSource = New JRXmlDataSource (report file, "/ table / tr"); JasperPrint = JasperFillManager.fillReport (jasperpath, param, xmlDataSource);  

However, I get the heap space error (outofMerieException), and the file that is created is empty.

The first parameter of the creator of JRSwapFileVirtualizer is the maximum number of report pages that are stored in the primary memory (RAM) Before the sections of the report are stored in Virtual Memory (Disk). So if your report page size is not more than 10000 pages then you are not able to store them in virtual memory and even if you write a virtualizer code, you are not actually using this beauty.

/ P> JRSwapFileVirtualizer Virtualizer = Faucet; Virtualized = New JRSwapFileVirtualizer (3, New JRSwapFile ("F: //", 2048, 1024), Incorrect); Param.put (JRParameter.REPORT_VIRTUALIZER, Virtualizer);

Hope this works: -)

Cheers ...


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -