Jump to content

tgreanier

Recommended Posts

I am using a JRConcurrentSwapFile with the approproate virtualizer. However,  I am confused a bit about the parameters and the results I see.

 

1. Is it in fact the case that the swap file has no "maximum size" set? In other words, it will continue to grow as needed until, perhaps, it eats all of the file system space available?

2. If the answer to the previous question is yes, then could I set the extensionSize to 0 to prevent growth?

3. Since I am using the JRConcurrentSwapFile I am presuming I should not force a cleanup of the swap file.

Thanks -


Todd

 

Code:
String swapSize = Registry.getInstance().getProperty("JASPER_SWAP_FILE_SIZE");int swapFileSize = (swapSize == null ? DEFAULT_SWAP_FILE_SIZE * 1024 : Integer.valueOf(swapSize) * 1024);JRSwapFile swapFile = new   JRConcurrentSwapFile(Registry.getInstance().getProperty("JASPER_SWAP_FILE_PATH"), swapFileSize, 0);String maxPages = Registry.getInstance().getProperty("JASPER_MAXIMUM_IN_MEMORY_PAGES");	    int pages = (maxPages == null ? DEFAULT_MAXIMUM_IN_MEMORY_PAGES : Integer.valueOf(maxPages));	    JRSwapVirtualizer swapVirtualizer = new JRSwapFileVirtualizer(pages, swapFile);params.put(JRParameter.REPORT_VIRTUALIZER, swapVirtualizer);
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...