Problem Note 60141: Informational messages are produced in logs when SAS® web applications exceed their maximum cache size
The embedded Apache Tomcat server that is used in all of the SAS® Viya™ web applications maintains a cache of web resources to minimize disk I/O. By default, Tomcat uses a maximum cache size of 10 MB, and entries are evicted after a time-to-live (TTL) setting has been reached. Because the static content never changes, SAS presets this TTL setting to 1 year, effectively making the caching unlimited. However, some web applications might exceed the maximum cache size and start to produce messages in the log similar to the following:
2017-03-15 15:11:04926 INFO 31268 --- [SASVisualAnalytics]]] org.apache.catalina.webresources.Cache : [][] The background cache eviction process was unable to free [10] percent of the cache for Context [/SASVisualAnalytics] - consider increasing the maximum size of the cache. After eviction approximately [10,261] KB of data remained in the cache.
To alleviate the problem, you can reduce the TTL to a smaller number. SAS recommends setting the TTL to 43200 (12 hours) to prevent these messages from appearing in the logs.
If a service is producing the log messages, follow the steps below to alleviate the situation:
- Set the TTL for the service that is producing the log messages. For example, for the SASVisualAnalytics service, set the TTL in the following command:
curl -X PUT http://localhost:8500/v1/kv/config/SASVisualAnalytics/sas.servlet.container.cache.ttl -d '43200 ' -H "X-Consul-Token: consul-token"
The value for consul-token is obtained from the client.token file in /opt/sas/viya/config/etc/SASSecurityCertificateFramework/tokens/consul/default/.
For the example above, the command with the consul-token value looks similar to the following:
curl -X PUT http://localhost:8500/v1/kv/config/SASVisualAnalytics/sas.servlet.container.cache.ttl -d '43200' -H "X-Consul-Token: 29c4700f-ea89-41cd-8bc4-4198ccaa5bf9"
- Restart the service by submitting the following command:
service sas-viya-sasvisualanalytics-default restart
This problem affects only services that are deployed as WAR files. Those services include SASHome, SASLogon, SASVisualAnalytics, SASEnvironmentManager, SASThemeDesigner, SASVisualDataBuilder, and associated links.
Operating System and Release Information
| SAS System | SAS Viya | Linux for x64 | 3.2 | | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Problem Note |
| Priority: | medium |
| Date Modified: | 2017-04-13 14:46:38 |
| Date Created: | 2017-03-16 12:33:03 |