TOMCAT 启动报错 INVALID CHARACTER FOUND IN METHOD NAME. HTTP METHOD NAMES MUST BE TOKENS

Tomcat报错如下:

TOMCAT 启动报错 INVALID CHARACTER FOUND IN METHOD NAME. HTTP METHOD NAMES MUST BE TOKENS_第1张图片

 

 

解决方案:

问题出现原因是Tomcat的header缓冲区大小不够,需要conf目录下的server.xml中增加maxHttpHeaderSize字段即可:

  executor="tomcatThreadPool"     

   protocol="HTTP/1.1"     

  maxThreads="1000"     

  maxHttpHeaderSize="8192"     

  minSpareThreads="100"     

  maxSpareThreads="200"     

  acceptCount="1000"     

  maxConnections="1000"     

  connectionTimeout="30000"     

  keepAliveTimeout="15000"     

  maxKeepAliveRequests="1"      

   tcpNoDelay="true"     

  redirectPort="8443"     

  enableLookups="false"     

URIEncoding="UTF-8"/>

你可能感兴趣的:(TOMCAT 启动报错 INVALID CHARACTER FOUND IN METHOD NAME. HTTP METHOD NAMES MUST BE TOKENS)