The panel is displayed after you click Cache > Report Cache on the system toolbar of the JReport Administration page.
To improve performance, JReport Server enables you to cache reports and catalogs into memory so that they do not have to be loaded from disk when they are required. Note that when you run a report in Page Report Studio, the report and the catalog will not be cached.
See the panel.Cache Loaded Catalogs
Specifies whether to keep a catalog in memory or to remove it from memory after a report has been generated.
Usually, after a report has been generated, the catalog used to generate it is removed from memory. However, if you specify this option, the catalog will be cached instead of being removed.
If you are using the Add button to add a catalog, the listed catalog item includes information such as catalog file path in the server resource tree and catalog version number. The format is as follows:<catalog file path>-V<version number>. The root path stand for the My Reports folder is /USERFOLDERPATH/admin/
; the root path stand for the Public Reports folder is /
.
For the catalogs that are automatically cached by the server after the reports in them are run, the real paths of them are listed.
Cache Loaded Reports
Specifies whether to keep the reports in memory or to remove them from memory after they have been generated.
Each cached report will use some heap memory. If the heap is used up, an OutOfMemoryException will be thrown. In JRServer.bat/sh the -Xms setting specifies the initial heap and -Xmx specifies the maximum heap. For example, -Xms256m -Xmx512m means that the initial heap is 256MB and the maximum heap is 512MB. You can refer to the documents of the Java VM for more information.
Here is an example, the accuracy depends on your OS and VM:
Cache Size | Heap Size Required |
---|---|
10 reports | 16M |
30 reports | 25M |
The default cache size is 10 reports and the default maximum heap space is 512MB. When you adjust the number, you should adjust the heap accordingly. The larger the heap space, the better the performance provided enough physical memory is available.
If you are using the Add button to add a report, the listed report item includes information such as report file path in the server resource tree, report version number, and applied style name. The format is as follows: <report file path>-V<version number>(<applied style name>). When there is no style applied, the applied style name is None. The root path stand for the My Reports folder is /USERFOLDERPATH/admin/
; the root path stand for the Public Reports folder is /
.
For the reports that are automatically cached by the server after they are run, the real paths of them are listed.
Report Buffer Size for Sort Action
This option is not available to organization admin.
Note: Any change to the buffer size will take effect immediately.
Save
Applies the changes to JReport Server.