Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Create a custom ehcache.xml on the host system with corrected config:
<cache name="oauth2StateCache"
maxElementsInMemory="1000"
eternal="false"
timeToIdleSeconds="300"
timeToLiveSeconds="600"
overflowToDisk="false" />
Mount it into the container, e.g.:
-v /opt/codebeamer/config/ehcache.xml:/home/appuser/codebeamer/conf/ehcache.xml
Pass the path via Java system property:
-Dnet.sf.ehcache.configurationResourceName=file:/home/appuser/codebeamer/conf/ehcache.xml
Restart the container to apply changes.
This ensures the custom cache config is used persistently without modifying internal JAR files.
Thanks,
