EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB442616: MicroStrategy Web application running on Tomcat 9 cannot be started with warning message “Unable add the resource” in catalina.out log.


Min Zheng

Senior Manager, Cloud Support • MicroStrategy


This article explains a potential cause for the sudden inability to start MicroStrategy Web on Tomcat 9.

SYMPTOM
When using Strategy Web on Tomcat 9, the application may encounter a problem where it cannot be started, particularly for instances with a large number of users. Additionally, the speed of the Web application may significantly decrease.
Upon checking the catalina.out file in Tomcat, it is observed that the below warning message is recorded multiple times for various resources during the period of performance slowdown.


Unable to add the resource at [xxxxx] to the cache for web application [/Strategy]
because there was insufficient free space available after evicting expired cache entries
- consider increasing the maximum size of the cache.

CAUSE
The static resource cache size of Tomcat has exceeded its default limit of 10240 KB (10 MB) and the cache cleanup process was unable to complete within a certain timeframe. This situation can occur due to the deployment of a large number of static files (such as plugins, html, xml files) in the application, combined with the volume of user requests being handled by the system simultaneously.
ACTION
The below action could be taken to increase this limit.

  1. Edit context.xml under Tomcat path ./conf
  2. Add below entry with corresponding values in kilobytes(KB).
    
    <Resources cacheMaxSize="100000" />

  3.  Restart the Tomcat service

The information mentioned above is also applicable to Strategy Library, Mobile and Office when running on Tomcat 9.
NOTE:  For more information about the cacheMaxSize setting, refer to the Apache Tomcat Resource Reference:
Documentation about cacheMaxSize in Tomcat 8.5
Documentation about cacheMaxSize in Tomcat 9
WARNING
The third-party product(s) discussed in this technical note is manufactured by vendors independent of Strategy. Strategy makes no warranty, express, implied or otherwise, regarding this product, including its performance or reliability.
 
This technical note contains a link to a third party website that is not under the control of Strategy. When the user accesses a third party web site, the user does so at his or her own risk and acknowledges that Strategy is not responsible or liable for any content, advertising, products or other materials available from such third party sites. Mention of third party companies and web sites in this technical note is for informational purposes only and does not constitute an endorsement or recommendation. 
KB442616


Comment

0 comments

Details

Knowledge Article

Published:

January 23, 2019

Last Updated:

February 13, 2024