解決:Invalid character found in method name. HTTP method names must be tokens
阿里雲上弄了一個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"/>

