Tomcat 警告:consider increasing the maximum size of the cache

简介: Tomcat 警告:consider increasing the maximum size of the cache

tomcat8布署war包:

出现如标题的报错,这是因为tomcat8以上对resource采取了cache,而默认的大小是10M。

解决的办法很简单,就是在tomcat8/config/context.xml中调大缓存。

代码如下:

<Resources cachingAllowed="true" cacheMaxSize="100000" />

6c63c0a6a6b8aaa62e51db7402b0936.png

目录
相关文章
|
Java 应用服务中间件 Windows
windows下、同时启动多个tomcat、出现如图错误maxSpareThreads=“75“ 警告
windows下、同时启动多个tomcat、出现如图错误maxSpareThreads=“75“ 警告
78 0
windows下、同时启动多个tomcat、出现如图错误maxSpareThreads=“75“ 警告
|
XML 应用服务中间件 Android开发
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘
|
应用服务中间件 编译器 数据库
【bug:eclispe中启动Tomcat警告】无法启动组件、子容器启动失败
【bug:eclispe中启动Tomcat警告】无法启动组件、子容器启动失败
1013 0
【bug:eclispe中启动Tomcat警告】无法启动组件、子容器启动失败
|
安全 Java 应用服务中间件
【bug:eclispe中启动Tomcat警告】org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
【bug:eclispe中启动Tomcat警告】org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
410 0
|
1月前
|
XML 应用服务中间件 Apache
Tomcat AJP连接器配置secretRequired=“true“,但是属性secret确实空或者空字符串,这样的组合是无效的。
Tomcat AJP连接器配置secretRequired=“true“,但是属性secret确实空或者空字符串,这样的组合是无效的。
|
4月前
|
Java 应用服务中间件 Maven
Maven - 两种Tomcat插件的配置
Maven - 两种Tomcat插件的配置
149 0
|
20天前
|
前端开发 Java 应用服务中间件
Springboot对MVC、tomcat扩展配置
Springboot对MVC、tomcat扩展配置
|
4月前
|
Java 应用服务中间件 容器
SpringBoot配置外部Tomcat并打war包
SpringBoot配置外部Tomcat并打war包
72 0
|
6天前
|
IDE JavaScript Java
如何配置tomcat
【4月更文挑战第15天】如何配置tomcat
14 2