修改tomcat 发布war大小限制

发布一个hudson的时候tomcat报错,查看日志如下

 

 
 
  1. 严重: Servlet.service() for servlet [HTMLManager] in context with path [/manager] threw exception 
  2. java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (61021239) exceeds the configured maximum (52428800) 

看到是发布的war包超过了tomcat设置的值,

修改下最大文件大小,重启即可

tomcat/webapps/manager/WEB-INF/web.xml

找到

 

 
 
  1.   <multipart-config> 
  2.     <!-- 50MB max --> 
  3.     <max-file-size>52428800</max-file-size> 
  4.     <max-request-size>52428800</max-request-size> 
  5.     <file-size-threshold>0</file-size-threshold> 
  6.   </multipart-config> 
  7. </servlet> 
  8. <servlet> 

修改为

 

 
 
  1. <!-- 100MB max --> 
  2.    <max-file-size>104758600</max-file-size> 
  3.    <max-request-size>104758600</max-request-size> 
  4.    <file-size-threshold>0</file-size-threshold> 
  5.  </multipart-config> 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值