You can configure where the container stores the persistent data it uses. You can also control the performance of the caching system by configuring the buffer size.
The location of the bundle cache can be configured by either directly specifying the full path to the cache folder or by configuring a profile. By default, FUSE ESB specifies the full path to the cache folder.
You specify the cache's folder by setting the felix.cache.profiledir property in the config.properties
configuration file. This property takes the full pathname of the folder into which bundle cache is written. If the folder does not exist, it will be created.
![]() | Important |
---|---|
The felix.cache.profiledir takes precedence. |
You can also configure where the bundle cache is stored by configuring a cache profile. A cache profile is configured using two properties: felix.cache.dir and felix.cache.profile. Both properties are stored in the config.properties
configuration file.
The felix.cache.dir property specifies the path name for the top-level bundle cache folder. By default, the top-level bundle cache folder is the .felix
folder of the user's home directory. For instance, if the user name of the user starting the container is progress
, the default top-level bundle cache folder would be /home/progress/.felix
on a Linux system.
The felix.cache.profile property specifies the name of the folder user the top-level bundle cache folder the cache for the particular instance will be stored. For instance if the felix.cache.profile property was set to widgetServiceContainer
, the bundle cache for this instance of the container would be stored in /home/progress/.felix/widgetServiceContainer
on a Linux system.
Using a cache profile is a good idea if you want to run multiple instances of the container. The bundle caches can be stored in a centralized location.
The generated-bundle cache is where the container caches bundles it creates to support jars that are not supplied as OSGi bundles. You can configure the location of this cache by changing the setting of the org.apache.servicemix.filemonitor.generatedJarDir in the config.properties
file. This property is the full path of the generated-bundle cache.