Find 12.12

# Configure Cache Size

If you see a Catalina cache warning in your log files when you run Find, you can use the `server.tomcat.resources.max-cache-kb` system property to increase the size of the cache.

The cache warning might appear similar to the following example:

`org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/Find/example.jpg] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache`

The maximum size of the cache is set in kilobytes. The default value is `20480` (20 MB).

To set the cache max size property

- Start Find with the Java run command, and include the `server.tomcat.resources.max-cache-kb` argument. For example:

      java -Dserver.tomcat.resources.max-cache-kb=30480 -Didol.find.home=[home directory] -Dserver.port=[port] -jar find.war -uriEncoding utf-8

If you run Find as a service on Windows, you can also add this argument to the `find.xml` file.

If you run Find as a service on Linux, you can add the argument to the existing arguments variable in `find.sh` for SystemV, `find.conf` for Upstart, or `find.service` for systemd.

When you modify the Find configuration by modifying the XML file or start scripts, you must restart Find to apply your configuration changes.

On Upstart, you must also run `initctl reload-configuration` before you restart, to apply the init file changes. You can then run `service find restart` to restart the service.

For more information on installing and running Find as a service on Windows or Linux, see Install Find.

© Copyright 2015-2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Find 12.12

Topic Title: Configure Cache Size