主题 : 日志里面有很多错误 |
级别: 贡士
|
1# 发表于:2022-07-27 10:23:14 IP:117.202.*.*
|
||||
---|---|---|---|---|---|
级别: 版主
|
3# 发表于:2022-07-27 12:25:47 IP:115.7.*.*
回复第2楼
1.tomcat内存设置 linux tomcat bin 目录下文件 catalina.sh 最开始加上一行 (最大值Xmx4048m -XX:MaxMetaspaceSiz 自己服务器情况来定,目前是分别是4G 2G) JAVA_OPTS="$JAVA_OPTS -server -Xms1024m -Xmx4048m -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=2048M" win tomcat bin 目录下文件 catalina.bat 最开始加上一行 set JAVA_OPTS=-server -Xms1024m -Xmx4048m -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=2048m 2.Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 修改下tomcat的server.xml<Connector>标签中,加入relaxedPathChars="|{}[],%;*\()" relaxedQueryChars="|{}[],%;*\()"即可 3.出现如下错误 23-Jul-2021 15:13:42.369 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.webresources.Cache.backgroundProcess The background cache eviction process was unable to free [10] percent Context [] - consider increasing the maximum size of the cache. After eviction approximately [24,983] KB of data remained in the cache. 23-Jul-2021 15:13:44.231 WARNING [Abandoned connection cleanup thread] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/] to the cache for web application [] becausficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 对应两个参数,解决方法有两种: 1:考虑增加cache的最大大小 2:关闭缓存 设置配置(位置:conf/context.xml): 在<Context>键值对中配置 <Resources cachingAllowed="false" cacheMaxSize="0" /> Tomcat优化调整参考 https://www.cnblogs.com/busigulang/articles/8529719.html 这个系统默认路径不能改的,除非用FTP或云储存,tomcat要改一下设置配置(位置:conf/context.xml): 在<Context>键值对中配置 <Resources cachingAllowed="false" cacheMaxSize="0" /> |
||
---|---|---|---|
1
共1页