所有请求都5秒多,发现RemoteIpValve在反查域名,关不掉
http-bio-8000-exec-27" daemon prio=10 tid=0x00007f2c7411a000 nid=0x7edc runnable [0x00007f2bec3c2000] java.lang.Thread.State: RUNNABLE at java.net.Inet6AddressImpl.getHostByAddr(Native Method) at java.net.InetAddress$1.getHostByAddr(InetAddress.java:905) at java.net.InetAddress.getHostFromNameService(InetAddress.java:590) at java.net.InetAddress.getHostName(InetAddress.java:532) at java.net.InetAddress.getHostName(InetAddress.java:504) at org.apache.coyote.http11.Http11Processor.actionInternal(Http11Processor.java:300) at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:1026) at org.apache.coyote.Request.action(Request.java:344) at org.apache.catalina.connector.Request.getLocalName(Request.java:1366) at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:620) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:451)
conf/server.xml里有这段配置: <Valve className="org.apache.catalina.valves.RemoteIpValve" remoteIpHeader="X-Forwarded-For" protocolHeader="X-Forwarded-Proto" protocolHeaderHttpsValue="https"/>
直接干掉,好了。
|