Jump to content
We've recently updated our Privacy Statement, available here ×

shyam_100

Members
  • Posts

    2
  • Joined

  • Last visited

shyam_100's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hello All, Please clarify that Jasper virtualizer is applicable only for a single report or can it be applied on report having mutilple subreports? I tried generating a text report with a single Jrxml having huge data using JRSwapFileVirtualizer with below configuration. JRConcurrentSwapFile jRSwapFile = new JRConcurrentSwapFile("D://VirtualizerSpace", 4096, 4096); virtualizer = new JRSwapFileVirtualizer(3, jRSwapFile, false); parameters.put(JRParameter.REPORT_VIRTUALIZER, virtualizer); parameters.put(JRParameter.IS_IGNORE_PAGINATION, false); JasperReport jasperReport = (JasperReport) JRLoader.loadObjectFromLocation(jasperFile, this.getClass().getClassLoader()); JasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parameters, dataBase); virtualizer.setReadOnly(true); It generated a huge swap file in the filesystem and generated the text report also successfully. As we analyzed the heap memory using visualgc tool, the memory consumtion was very Low. But with addition of a subreport the Heap Memory usage started increasing and later fully flooded the heap and resulted in heap space error. Is Jasper Virtualizer should be used for only a single report (single Jrxml) ? or in the above configuration some thing is missing. Please clarify. Thanks in Advance shyam
×
×
  • Create New...