IBM Support

CacheManager warnings while starting the application server

Troubleshooting


Problem

CacheManager warnings while starting the application server

Symptom

This issue comes when same diskStore path is defined in all of the property files. This is a harmless warning as the application creates a different folder for each respective cache automatically. This can be seen in the warning message. 


Error Message

2009.12.10 09:05:53:025 Env/[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':WARN:CacheManager Creating a new instance of CacheManager using the diskStorePath "/tmp" which is already used by an existing CacheManager. The source of the configuration was file located at /usr/MCS/shared/WEB-INF/properties/UserCache.xml. The diskStore path for this CacheManager will be set to /tmp/ehcache_auto_created_1260435953025. To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance. 

Resolving The Problem

To avoid this warning please do the following. The basic idea is to define a different path per diskStore for each property file. 

1. In the shared folder locate EhCache.xml and change the diskStore path to <diskStore path="java.io.EhCache"/> 
2. In the shared folder locate UserCache.xml and change the diskStore path to <diskStore path="java.io.UserCache"/> 
3. In the properties folder of EACH NODE locate DistributedGlobalCache-Config.xml and change the diskStore path to <diskStore path="java.io.GlobalCache"/> 

Property folder of each node would be something like: 

<BEA_HOME>\user_projects\domains\DOMAIN_NAME\servers\<NODE_NAME>\stage\Sterling\Sterling\WEB-INF\properties 

Note: The sample given above is for Weblogic. Please refer to appropriate application server documentation for this location.

4. Make sure that the directory for each JVM is different

5. Add the following line in the startup script of each JVM  
-Djava.io.GlobalCache=%JavaIOGlobalCacheDir% -Djava.io.EhCache=%JavaIOEhCacheDir% -Djava.io.UserCache=%JavaIOUserCacheDir% 

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"MCS","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

NFX8059

Product Synonym

[<p><b>]Severity[</b><p>];Normal;[<p><b>]Type[</b><p>];NormalFix

Document Information

Modified date:
16 June 2018

UID

swg21558728