tomcat 啟動報錯 Invalid character found in method name. HTTP method names must be tokens


解決:Invalid character found in method name. HTTP method names must be tokens

 

59$Q6B67{IS}XWW3`@CFB}N

阿里雲上弄了一個tomcat,經常半夜發送崩潰,查看日志發現這個東西,查閱資料發現是Tomcat的header緩沖區大小不夠,只需要在server.xml中增加maxHttpHeaderSize字段即可:

   <Connector port="8080" 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"/>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM