Configuring managed asset and managed asset classloader cache sizes
Set configuration parameters in the 100custom.xml file to define cache sizes for managed files.
About this task
Depending on the number IBM BPM managed files and the number of process applications that use managed files, you might experience slow performance when you work with IBM BPM managed files. If the managed asset class loader cache, managed asset cache, or both caches are small, the cache must be refreshed often, which decreases performance.
Set
the following configuration parameters to define the cache sizes for
managed files:
- -classloader-cache-size
- There is one classloader instance for each version of a process application. To prevent classloader instances from being swapped out of the cache frequently, set the classloader-cache-size parameter to a value that is higher than the number of active process application versions on your system. For example, if you have n process applications and each process application has m active snapshots, set the classloader-cache-size parameter to (n*m).
- -classloader-resource-map-size
- The classloader-resource-map-size parameter
defines the number of Java classes that are inside managed files and
cached over all process applications and versions. When you use huge
.jar files as managed assets, increase the classloader-resource-map-size parameter.
Because classloader-resource-map-size is a JVM-wide
parameter, the parameter number should be high enough to cache all
managed assets that are used on the JVM.For example, if you have three jar files as managed assets
- file1.jar containing 50 class files
- file2.jar containing 70 class files
- file3.jar containing 100 class files
Procedure
To configure the cache size for managed files, complete the following steps: