This Cache tab allows you to configure the cache settings of JReport Enterprise Server. It contains three sub tabs:
Save
Applies the changes to JReport Enterprise Server.
To improve performance, JReport Enterprise Server enables you to cache report sets 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 set to DHTML format, the report set and the catalog will not be cached.
The following options are available in the tab. See the tab.
Cache Loaded Catalogs
Specifies whether to keep a catalog in memory or to remove it from memory after a report set has been generated.
Usually, after a report set 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 report sets in them are run, the real paths of them are listed.
Cache Loaded Report Sets
Specifies whether to keep the report sets in memory or to remove them from memory after they have been generated.
Each cached report set will use some heap memory. If the heap is used up, an OutOfMemoryException will be thrown. -ms/-Xms specifies the initial heap and -mx/-Xmx specifies the maximum heap. For example, -ms10m -mx512m means that the initial heap is 10MB 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 report sets | 16M |
| 30 report sets | 25M |
The default cache size is 10 report sets 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 set, the listed report set item includes information such as report set file path in the server resource tree, report set version number, and applied style name. The format is as follows: <report set 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 report sets that are automatically cached by the server after they are run, the real paths of them are listed.
Report Buffer Size for Sort Action
Note: Any change to the buffer size will take effect immediately.
The following options are available in the tab. See the tab.
User Cache Size
Specifies the maximum number of user objects in the security cache.
Role Cache Size
Specifies the maximum number of role objects in the security cache.
Group Cache Size
Specifies the maximum number of group objects in the security cache.
Protection Cache Size
Specifies the maximum number of ACL objects in the security cache.
The following options are available in tab. See the tab.
Cache Images
Specifies whether or not to enable image cache.