HCL Commerce Version 9.1.10.0 or later

Troubleshooting the HCL Cache

Tools and techniques that can be used for troubleshooting the cache.

Monitoring

Debugging a complex distributed system without the support of metrics and monitoring can be a challenging task. The Prometheus and Grafana integration gives you visibility into the number and performance of all cache operations and maintenance processes, which can enable you to quickly narrow down the problem.

Cache manager

The Cache Manager includes a number of debug APIs to retrieve details about the caches and cached data. See Cache Manager for details.
HCL Commerce Version 9.1.20.0 or later

Redisson Upgrade

The Redisson client has been upgraded from version 3 to version 4. This introduces changes to the Redisson configuration settings. See HCL Commerce - Redis client configurations for more information about these changes.

Beginning with HCL Commerce version 9.1.20, application servers must use Redisson version 4, while for prior HCL Commerce versions, application servers must use Redisson version 3. If the wrong settings are used in the HCL Cache helm chart Redisson configuration settings, HCL Commerce application servers will be unable to connect to Redis. For example, Redisson version 4 no longer supports the retryInterval configuration setting. If your HCL Commerce version 9.1.20+ helm chart references this setting, you may see errors such as:
Unable to initalize Redis client default due to Cannot create property=singleServerConfig for JavaBean=org.redisson.config.Config@dd47d8ed
 in 'string', line 1, column 1:
    singleServerConfig:
    ^
Cannot create property=retryInterval for JavaBean=org.redisson.config.SingleServerConfig@fe43b18
 in 'string', line 2, column 3:
      address: "redis://hcl-commerce-r ... 
      ^
 in 'string', line 8, column 18:
      retryInterval: 500
                     ^

Redis database

Redis is a database, and provides a command interface (redis-cli) and commands that can be used to query it and retrieve information about the existing cache keys and metatada. For details see HCL Cache in Redis.

Tracing

The following string is used to trace the operation of the HCL Cache:

com.hcl.commerce.cache*=all

If enabled at the fine level instead, the HCL Cache will create a less verbose output, with timing and invalidation details.

Troubleshooting scenarios