at org.apache.coyote.http11.AbstractOutputBuffer.checkLengthBeforeWrite

简介:

tomcat报错:

    

 [2015-08-24 14:56:41] 3084386  ERROR - com.tools.common.util.close.CloseUtil - Unable to close org.apache.catalina.connector.CoyoteWriter@39c3e691
org.apache.coyote.http11.HeadersTooLargeException: An attempt was made to write more data to the response headers than there was room available in the buffer. Increase maxHttpHeaderSize on the connector or write less data into the response headers.
        at org.apache.coyote.http11.AbstractOutputBuffer.checkLengthBeforeWrite(AbstractOutputBuffer.java:547)
        at org.apache.coyote.http11.AbstractOutputBuffer.write(AbstractOutputBuffer.java:511)
        at org.apache.coyote.http11.AbstractOutputBuffer.write(AbstractOutputBuffer.java:428)
        at org.apache.coyote.http11.AbstractOutputBuffer.sendHeader(AbstractOutputBuffer.java:394)
        at org.apache.coyote.http11.AbstractHttp11Processor.prepareResponse(AbstractHttp11Processor.java:1540)
        at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:773)
        at org.apache.coyote.Response.action(Response.java:174)
        at org.apache.coyote.Response.sendHeaders(Response.java:365)
        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:352)
        at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:309)
        at org.apache.catalina.connector.CoyoteWriter.close(CoyoteWriter.java:112)
        at com.tools.common.util.close.CloseUtil.close(CloseUtil.java:20)
        at com.tools.common.struts.base.BaseAction.print(BaseAction.java:63)
        at com.tools.common.struts.base.BaseAction.print(BaseAction.java:43)
        at com.jlj.sso.web.login.LoginAction.login(LoginAction.java:47)
        at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450) 

经网络查询,发现是tomcat的请求的头过大,解决办法如下:

maxHttpHeaderSize="102400"次参数不要设置过大,容易导致内存溢出。

设置位置为访问端口










本文转自 xinsir999 51CTO博客,原文链接:http://blog.51cto.com/xinsir/1687676,如需转载请自行联系原作者
目录
相关文章
|
JSON 前端开发 API
【跨域报错解决方案】Access to XMLHttpRequest at ‘http://xxx.com/xxx‘ from origin ‘null‘ has been blocked by
【跨域报错解决方案】Access to XMLHttpRequest at ‘http://xxx.com/xxx‘ from origin ‘null‘ has been blocked by
4804 0
|
Shell
Flume【问题记录 01】【at org.apache.flume.node.Application.main(Application.java:xxx) 类问题整理+其他类型问题总结】【避坑指南】
【2月更文挑战第17天】Flume【问题记录 01】【at org.apache.flume.node.Application.main(Application.java:xxx) 类问题整理+其他类型问题总结】【避坑指南】
810 2
|
安全 应用服务中间件 网络安全
修复HTTPS升级后出现 Mixed Content: The page at 'https://xxx' was loaded over HTTPS, but requested an insecure frame 'http://xxx'. This request has been blocked; the content must be served over HTTPS. 的问题
修复HTTPS升级后出现 Mixed Content: The page at 'https://xxx' was loaded over HTTPS, but requested an insecure frame 'http://xxx'. This request has been blocked; the content must be served over HTTPS. 的问题
|
存储 XML 数据格式
【SVN异常】svn: E175003: The server at ‘https://svn.example.com/!/%23MyRepo/‘ does not support the HTTP/
【SVN异常】svn: E175003: The server at ‘https://svn.example.com/!/%23MyRepo/‘ does not support the HTTP/
1372 0
springboot制作的登录拦截器出错:java.lang.StackOverflowError: null at javax.servlet.http.HttpServletRequestWra
springboot制作的登录拦截器出错:java.lang.StackOverflowError: null at javax.servlet.http.HttpServletRequestWra
576 0
|
API
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class &#39;sqlalchemy.exc.Operat
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
2337 0
|
Java Shell Apache
java.lang.NullPointerException at java.lang.ProcessBuilder.start(Unknown Source) at org.apache.hadoop.util.Shell.runCommand(Shell.java:482)
1:问题出现的原因,部署好的hadoop-2.6.4进行window10操作hadoop api出现的错误,具体错误是我向hdfs上传文件,还好点,之前解决过,这里不叙述,这里说一下从hdfs下载文件出现的错误: 详细错误如下所示: java.
2326 0
The Delicate Art of Remote Checks – A Glance Into MS15-034 - See more at: http://blog.beyondtrust.co
http://blog.beyondtrust.com/the-delicate-art-of-remote-checks-a-glance-into-ms15-034 ...
1061 0
|
Web App开发 前端开发
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html><head><meta http-equiv="Cont
最近在线上往hbase导数据,因为hbase写入能力比较强,没有太在意写的问题。让业务方进行历史数据的导入操作,中间发现一个问题,写入速度太快,并且业务数据集中到其中一个region,这个region无法split掉,处于不可用状态。
1579 0

热门文章

最新文章

推荐镜像

更多