fgl_report_setPageSwappingThreshold

Sets the threshold for page-to-disk swapping.

Syntax

fgl_report_setPageSwappingThreshold(
   value INTEGER )
  1. value - A positive integer greater than zero that specifies the maximum number of pages that may be held in main memory.

Usage

Function that sets the threshold for page-to-disk swapping to prevent memory exhaustion on very large documents that use " Page N of M"

The function specifies the maximum number of pages that may be held in main memory. When the value is exceeded, pages are swapped to the disk. This parameter is only needed for very large report that contain references to the total number of pages. alternatively it is possible to grow the amount of memory that the Java™ JVM may allocate by setting the parameter -Xmx (e.g. "java -Xmx512m" for 512 MB) in the script $GREDIR/bin/greportwriter[.bat]. By default the value is not set so that pages are never swapped to disk.

See Usage.