����
���告��涓�娓���绯荤�锛�涓��ㄥ�规�ヤ��规���浣跨��锛�娌℃��浠�涔�涓��¢�昏�锛�涓昏���潘��㈡�ユ�������版�¢��涔�绫荤��宸ヤ�锛�璧风��涓�涓��夸���涓���浣��ㄣ��

��杩��ㄤ����ュ�g����搴��堕�达�浼���河渠�浠g��涔���锛�浣����堕�磋���杈句��拌�姹�锛���涓�涓�璇″���100ms宸��崇�����堕��棰�锛��ㄦ�ュ�d腑���颁�璇锋�澶����堕�村��锛���璋��ㄦ�圭����搴��堕�磋���宸�河渠�100ms宸��炽��姣�濡�绋�搴���璁板�150ms锛�浣���璋��ㄦ�圭��寰��堕�村�翠负250ms宸��炽��

涓��㈣�板�涓�褰��惰��缁���疏浚�浣�&瑙e�虫�绋�锛��跺��瑙e�冲�绠���锛��抽���ㄤ���涔�疏浚�浣�骞舵�惧�拌В�抽��棰����规�锛�

疏浚�浣�杩�绋�
����浠g��
娓���绯荤���涓�涓�甯歌���spring-boot web宸ョ�锛�浣跨�ㄤ�������tomcat������河渠�浠g��涔���锛����板苟娌℃���规�����版�戊寅�娌℃���规����杩�婊ゅ�ㄦ����������锛���浠ュ��姝ユ���ゆ��涓��′唬����棰�

����璋��ㄦ�绋�
�雾�拌�涓���棰�涔���锛�兄弟���纭�璁や�涓��ュ�g��璋��ㄦ�绋����变������ㄦ�璇�锛���浠ヨ��ㄦ�绋�杈�广大���

Nginx -����浠g��-> 娓���绯荤�

���告��河渠����″��锛�缃�缁�璧扮��涔���河渠�����缃����变�涓���纭���棰�������锛���浠ョ�ㄦ���ゆ�锛�兄弟���纭�璁ゆ���″�ㄧ�缁���������棰���

��纭�璁ゅ����绔���Nginx Host��������棰�锛�

[jboss@VM_0_139_centos ~]$ ping 10.0.0.139
PING 10.0.0.139 (10.0.0.139) 56(84) bytes of data.
64 bytes from 10.0.0.139: icmp_seq=1 ttl=64 time=0.029 ms
64 bytes from 10.0.0.139: icmp_seq=2 ttl=64 time=0.041 ms
64 bytes from 10.0.0.139: icmp_seq=3 ttl=64 time=0.040 ms
64 bytes from 10.0.0.139: icmp_seq=4 ttl=64 time=0.040 ms

浠�ping缁���涓���锛�����绔���Nginx涓绘�雾��寤惰�������棰���锛��ヤ��ユ�ョ��Nginx�版���绯荤���缃�缁���

# �变��ュ���娌¢��棰���锛�杩����存�ュ��朵��㈡�ュ�河渠�
[jboss@VM_0_139_centos ~]$ ping 10.0.0.139
PING 10.0.0.139 (10.0.0.139) 56(84) bytes of data.
64 bytes from 10.0.0.139: icmp_seq=1 ttl=64 time=0.029 ms
64 bytes from 10.0.0.139: icmp_seq=2 ttl=64 time=0.041 ms
64 bytes from 10.0.0.139: icmp_seq=3 ttl=64 time=0.040 ms
64 bytes from 10.0.0.139: icmp_seq=4 ttl=64 time=0.040 ms

浠�ping缁���涓���锛�Nginx�版���绯荤����″�ㄧ�缁�寤惰�涔���娌¢��棰���

�㈢�剁�缁���浼兼病��棰�锛��d���浠ョ户缁����ゆ�锛�����Nginx锛�疏浚㈡�风���存�ュ��娓���绯荤������″�ㄤ�锛���杩������板��锛�localhost锛��磋�锛��垮��缁�杩�缃���/dns锛�缂╁���棰����寸�����藉��澶��起�杩�涓�搴��ㄥ���板����������妯℃����锛�娴�璇�����涓�涓�绌烘�ュ�o�锛�

[jboss@VM_10_91_centos tmp]$ curl -w "@curl-time.txt" http://127.0.0.1:7744/send
success
              http: 200
               dns: 0.001s
          redirect: 0.000s
      time_connect: 0.001s
   time_appconnect: 0.000s
  time_pretransfer: 0.001s
time_starttransfer: 0.073s
     size_download: 7bytes
    speed_download: 95.000B/s
                  ----------
        time_total: 0.073s 璇锋��昏����

浠�curl�ュ�涓���锛���杩������板��璋��ㄤ�涓�绌烘�ュ�h���朵���73ms��杩�广大卞���河渠�锛�璺宠�河渠�涓��存����璋��ㄨ���戊寅�����杩�婊ゅ��&�����ㄤ�绫伙�锛��存�ヨ�锋�搴��ㄤ�涓�绌烘�ュ�o��芥��73ms�����讹���璇锋�涓�娆$����锛�

[jboss@VM_10_91_centos tmp]$ curl -w "@curl-time.txt" http://127.0.0.1:7744/send
success
              http: 200
               dns: 0.001s
          redirect: 0.000s
      time_connect: 0.001s
   time_appconnect: 0.000s
  time_pretransfer: 0.001s
time_starttransfer: 0.003s
     size_download: 7bytes
    speed_download: 2611.000B/s
                  ----------
        time_total: 0.003s

�村�������锛�绗�河渠�娆¤�锋����跺氨姝e父浜�锛�����河渠�3ms��缁��ラ��璧���锛�linux curl��榛�璁ゅ���http keep-alive��锛�Keep-Alive��浠�缁���浠ュ����������涓�绡���绔�锛���广大辩��涓�寮���keep-alive锛�姣�娆¢����handshake锛�涔�涓��充���瑕�70ms��

缁�杩�涓�������娴�璇����起�杩�缁�璇锋���璇��堕�村氨浼�寰���锛�姣�娆¤�锋�����瑕���姣�绉�锛�浣���濡�����涓�娈垫�堕�村��璇锋�锛�广大变��辫垂70ms浠ヤ���

浠�杩�涓��拌薄���规划����芥����河渠�缂�海洋��哄�跺�艰�寸��锛�杩�缁�璇锋���涓烘��缂�海洋�锛���浠ラ��搴�蹇�锛��堕�拈�跨�海洋�澶辨����瀵艰�存�堕�拈�裤��

�d�杩�涓���棰��瑰�板��ㄥ��涓�灞���锛�tomcat灞�杩���spring-webmvc��锛�

�����冲��浣�涓�河渠���棰�锛�杩���寰�疏浚���娴�璇�涓�涓�锛���娓���绯荤���浠g���惧�版����ide�����ㄦ�璇��藉��澶���

浣���瀵煎�ユ����Ide��锛���Ide涓����ㄥ��骞朵��藉��伴��棰�锛�骞舵病��70+ms��寤惰���棰���杩�涓�澶寸�间�锛����版��娉�澶��起�涓���Debug锛��变���棰��逛��ㄤ��′唬��锛�涔�涓��介��杩����ュ����瑰���Debug

杩��跺����浠ョキ�雾���Arthas河渠�

Arthas������棰�
Arthas ��Alibaba寮�婧���Java璇���宸ュ�凤�娣卞��寮��������便��
褰�浣����颁互涓�绫讳技��棰���������绛��讹�Arthas��浠ュ府�╀�瑙e�规划�

杩�涓�绫讳���涓� jar ����潘界��锛�涓轰�涔�浼��ュ��绉�绫荤�稿�崇�� Exception锛�
���圭��浠g��涓轰�涔�娌℃���ц��起��鹃������娌� commit锛���������河渠�锛�
���伴��棰���娉��ㄧ嚎涓� debug锛��鹃�����介��杩����ュ������板��甯���锛�
绾夸����版��涓��ㄦ�风���版��澶�������棰�锛�浣�绾夸����锋��娉� debug锛�绾夸���娉����起�
������涓�涓��ㄥ�瑙�瑙��ユ�ョ��绯荤���杩�琛��跺�碉�
��浠�涔���娉���浠ョ���у��JVM��疏浚��惰�琛��舵��锛�

涓��㈡��Arthas��疏浚��圭��浠�锛�杩�娆℃������瑕��ㄤ���涓�涓�广大�����trace���ㄦ��璁$���规�璋��ㄨ矾寰����堕�达�杩��锋��广大卞��浠ュ��浣��堕�村�ㄥ��涓��版�硅�娑���河渠���

trace �规����ㄨ��ㄨ矾寰�锛�骞惰��烘�规�璺�寰�涓���姣�涓����逛�����
trace �戒护�戒富�ㄦ��绱� class-pattern锛�method-pattern
瀵瑰����规�璋��ㄨ矾寰�锛�娓叉����缁�璁℃�翠釜璋��ㄩ�捐矾涓��������ц�藉�����杩借釜璋��ㄩ�捐矾��

��河渠�绁���锛��d�璇ヨ拷韪�浠�涔��规���锛��变���瀵�Tomcat婧���涓���寰���锛���浠ュ���戒�spring mvc涓���锛�����trace涓�涓�spring mvc���ュ�o�

[arthas@24851]$ trace org.springframework.web.servlet.DispatcherServlet *
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:44) cost in 508 ms.
`---ts=2019-09-14 21:07:44;thread_name=http-nio-7744-exec-2;id=11;is_daemon=true;priority=5;TCCL=org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader@7c136917
    `---[2.952142ms] org.springframework.web.servlet.DispatcherServlet:buildLocaleContext()

`---ts=2019-09-14 21:07:44;thread_name=http-nio-7744-exec-2;id=11;is_daemon=true;priority=5;TCCL=org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader@7c136917
    `---[18.08903ms] org.springframework.web.servlet.DispatcherServlet:doService()
        +---[0.041346ms] org.apache.commons.logging.Log:isDebugEnabled() #889
        +---[0.022398ms] org.springframework.web.util.WebUtils:isIncludeRequest() #898
        +---[0.014904ms] org.springframework.web.servlet.DispatcherServlet:getWebApplicationContext() #910
        +---[1.071879ms] javax.servlet.http.HttpServletRequest:setAttribute() #910
        +---[0.020977ms] javax.servlet.http.HttpServletRequest:setAttribute() #911
        +---[0.017073ms] javax.servlet.http.HttpServletRequest:setAttribute() #912
        +---[0.218277ms] org.springframework.web.servlet.DispatcherServlet:getThemeSource() #913
        |   `---[0.137568ms] org.springframework.web.servlet.DispatcherServlet:getThemeSource()
        |       `---[min=0.00783ms,max=0.014251ms,total=0.022081ms,count=2] org.springframework.web.servlet.DispatcherServlet:getWebApplicationContext() #782
        +---[0.019363ms] javax.servlet.http.HttpServletRequest:setAttribute() #913
        +---[0.070694ms] org.springframework.web.servlet.FlashMapManager:retrieveAndUpdate() #916
        +---[0.01839ms] org.springframework.web.servlet.FlashMap:<init>() #920
        +---[0.016943ms] javax.servlet.http.HttpServletRequest:setAttribute() #920
        +---[0.015268ms] javax.servlet.http.HttpServletRequest:setAttribute() #921
        +---[15.050124ms] org.springframework.web.servlet.DispatcherServlet:doDispatch() #925
        |   `---[14.943477ms] org.springframework.web.servlet.DispatcherServlet:doDispatch()
        |       +---[0.019135ms] org.springframework.web.context.request.async.WebAsyncUtils:getAsyncManager() #953
        |       +---[2.108373ms] org.springframework.web.servlet.DispatcherServlet:checkMultipart() #960
        |       |   `---[2.004436ms] org.springframework.web.servlet.DispatcherServlet:checkMultipart()
        |       |       `---[1.890845ms] org.springframework.web.multipart.MultipartResolver:isMultipart() #1117
        |       +---[2.054361ms] org.springframework.web.servlet.DispatcherServlet:getHandler() #964
        |       |   `---[1.961963ms] org.springframework.web.servlet.DispatcherServlet:getHandler()
        |       |       +---[0.02051ms] java.util.List:iterator() #1183
        |       |       +---[min=0.003805ms,max=0.009641ms,total=0.013446ms,count=2] java.util.Iterator:hasNext() #1183
        |       |       +---[min=0.003181ms,max=0.009751ms,total=0.012932ms,count=2] java.util.Iterator:next() #1183
        |       |       +---[min=0.005841ms,max=0.015308ms,total=0.021149ms,count=2] org.apache.commons.logging.Log:isTraceEnabled() #1184
        |       |       `---[min=0.474739ms,max=1.19145ms,total=1.666189ms,count=2] org.springframework.web.servlet.HandlerMapping:getHandler() #1188
        |       +---[0.013071ms] org.springframework.web.servlet.HandlerExecutionChain:getHandler() #971
        |       +---[0.372236ms] org.springframework.web.servlet.DispatcherServlet:getHandlerAdapter() #971
        |       |   `---[0.280073ms] org.springframework.web.servlet.DispatcherServlet:getHandlerAdapter()
        |       |       +---[0.004804ms] java.util.List:iterator() #1224
        |       |       +---[0.003668ms] java.util.Iterator:hasNext() #1224
        |       |       +---[0.003038ms] java.util.Iterator:next() #1224
        |       |       +---[0.006451ms] org.apache.commons.logging.Log:isTraceEnabled() #1225
        |       |       `---[0.012683ms] org.springframework.web.servlet.HandlerAdapter:supports() #1228
        |       +---[0.012848ms] javax.servlet.http.HttpServletRequest:getMethod() #974
        |       +---[0.013132ms] java.lang.String:equals() #975
        |       +---[0.003025ms] org.springframework.web.servlet.HandlerExecutionChain:getHandler() #977
        |       +---[0.008095ms] org.springframework.web.servlet.HandlerAdapter:getLastModified() #977
        |       +---[0.006596ms] org.apache.commons.logging.Log:isDebugEnabled() #978
        |       +---[0.018024ms] org.springframework.web.context.request.ServletWebRequest:<init>() #981
        |       +---[0.017869ms] org.springframework.web.context.request.ServletWebRequest:checkNotModified() #981
        |       +---[0.038542ms] org.springframework.web.servlet.HandlerExecutionChain:applyPreHandle() #986
        |       +---[0.00431ms] org.springframework.web.servlet.HandlerExecutionChain:getHandler() #991
        |       +---[4.248493ms] org.springframework.web.servlet.HandlerAdapter:handle() #991
        |       +---[0.014805ms] org.springframework.web.context.request.async.WebAsyncManager:isConcurrentHandlingStarted() #993
        |       +---[1.444994ms] org.springframework.web.servlet.DispatcherServlet:applyDefaultViewName() #997
        |       |   `---[0.067631ms] org.springframework.web.servlet.DispatcherServlet:applyDefaultViewName()
        |       +---[0.012027ms] org.springframework.web.servlet.HandlerExecutionChain:applyPostHandle() #998
        |       +---[0.373997ms] org.springframework.web.servlet.DispatcherServlet:processDispatchResult() #1008
        |       |   `---[0.197004ms] org.springframework.web.servlet.DispatcherServlet:processDispatchResult()
        |       |       +---[0.007074ms] org.apache.commons.logging.Log:isDebugEnabled() #1075
        |       |       +---[0.005467ms] org.springframework.web.context.request.async.WebAsyncUtils:getAsyncManager() #1081
        |       |       +---[0.004054ms] org.springframework.web.context.request.async.WebAsyncManager:isConcurrentHandlingStarted() #1081
        |       |       `---[0.011988ms] org.springframework.web.servlet.HandlerExecutionChain:triggerAfterCompletion() #1087
        |       `---[0.004015ms] org.springframework.web.context.request.async.WebAsyncManager:isConcurrentHandlingStarted() #1018
        +---[0.005055ms] org.springframework.web.context.request.async.WebAsyncUtils:getAsyncManager() #928
        `---[0.003422ms] org.springframework.web.context.request.async.WebAsyncManager:isConcurrentHandlingStarted() #928
[jboss@VM_10_91_centos tmp]$ curl -w "@curl-time.txt" http://127.0.0.1:7744/send
success
              http: 200
               dns: 0.001s
          redirect: 0.000s
      time_connect: 0.001s
   time_appconnect: 0.000s
  time_pretransfer: 0.001s
time_starttransfer: 0.115s
     size_download: 7bytes
    speed_download: 60.000B/s
                  ----------
        time_total: 0.115s

��娆¤���锛�璋��ㄧ���堕�磋�辫垂115ms锛�浣���浠�arthas trace涓���锛�spring mvc��娑���河渠�18ms锛��d��╀���97ms�诲��河渠���锛�

���版�璇���宸茬���浠ユ����spring mvc����棰�河渠�锛�����涔�����涓����藉�洪��棰����瑰氨��tomcat

������河渠哄苟涓�����tomcat涓���婧���锛�广大辫�璇锋��ュ�i�戒�娓�妤�锛�tomcat����瑕�trace��绫婚�戒�濂芥�俱������

涓�杩�娌″�崇郴锛���绁���Arthas锛���浠ラ��杩�stack�戒护�ュ�����ユ�捐��ㄨ矾寰�锛�浠�org.springframework.web.servlet.DispatcherServlet浣�涓哄���起�

stack 杈��哄����规�琚�璋��ㄧ��璋��ㄨ矾寰�
寰�澶��跺����浠��界�ラ��涓�涓��规�琚��ц�锛�浣�杩�涓��规�琚��ц���璺�寰���甯稿�锛�����浣��规��广大变��ラ��杩�涓��规���浠��i��琚��ц�河渠�锛�姝ゆ�朵���瑕����� stack �戒护��

[arthas@24851]$ stack org.springframework.web.servlet.DispatcherServlet *
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:44) cost in 495 ms.
ts=2019-09-14 21:15:19;thread_name=http-nio-7744-exec-5;id=14;is_daemon=true;priority=5;TCCL=org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader@7c136917
    @org.springframework.web.servlet.FrameworkServlet.proce***equest()
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)

ts=2019-09-14 21:15:19;thread_name=http-nio-7744-exec-5;id=14;is_daemon=true;priority=5;TCCL=org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader@7c136917
    @org.springframework.web.servlet.DispatcherServlet.doService()
        at org.springframework.web.servlet.FrameworkServlet.proce***equest(FrameworkServlet.java:974)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)

浠�stack�ュ�涓���浠ュ��磋�������DispatchServlet��璋��ㄦ��锛��d�杩�涔��跨��璺�寰�锛�璇�trace��涓�绫诲��锛�杩���璺宠�spring mvc涓���杩�婊ゅ�ㄧ��trace杩�绋�锛�疏浚������ョ���跺��涔�trace河渠�涓���锛�浣�杩�璇″����堕�存���涓����辫���杩�婊ゅ�ㄤ骇����锛�锛���涓�疏浚�缁�楠������告�轰���海洋�涓�澶ф�涔��界���烘�ヤ�����涓���姣�杈�濂斤��e氨��org.apache.coyote.http11.Http11Processor.service锛�浠���海洋�涓���锛�http1.1澶�����锛�杩����芥��涓�涓�姣�杈�濂界�����ョ�无边��涓��㈡��trace涓�涓�锛�

[arthas@24851]$ trace org.apache.coyote.http11.Http11Processor service
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 269 ms.
`---ts=2019-09-14 21:22:51;thread_name=http-nio-7744-exec-8;id=17;is_daemon=true;priority=5;TCCL=org.springframework.boot.loader.LaunchedURLClassLoader@20ad9418
    `---[131.650285ms] org.apache.coyote.http11.Http11Processor:service()
        +---[0.036851ms] org.apache.coyote.Request:getRequestProcessor() #667
        +---[0.009986ms] org.apache.coyote.RequestInfo:setStage() #668
        +---[0.008928ms] org.apache.coyote.http11.Http11Processor:setSocketWrapper() #671
        +---[0.013236ms] org.apache.coyote.http11.Http11InputBuffer:init() #672
        +---[0.00981ms] org.apache.coyote.http11.Http11OutputBuffer:init() #673
        +---[min=0.00213ms,max=0.007317ms,total=0.009447ms,count=2] org.apache.coyote.http11.Http11Processor:getErrorState() #683
        +---[min=0.002098ms,max=0.008888ms,total=0.010986ms,count=2] org.apache.coyote.ErrorState:isError() #683
        +---[min=0.002448ms,max=0.007149ms,total=0.009597ms,count=2] org.apache.coyote.http11.Http11Processor:isAsync() #683
        +---[min=0.002399ms,max=0.00852ms,total=0.010919ms,count=2] org.apache.tomcat.util.net.AbstractEndpoint:isPaused() #683
        +---[min=0.033587ms,max=0.11832ms,total=0.151907ms,count=2] org.apache.coyote.http11.Http11InputBuffer:parseRequestLine() #687
        +---[0.005384ms] org.apache.tomcat.util.net.AbstractEndpoint:isPaused() #695
        +---[0.007924ms] org.apache.coyote.Request:getMimeHeaders() #702
        +---[0.006744ms] org.apache.tomcat.util.net.AbstractEndpoint:getMaxHeaderCount() #702
        +---[0.012574ms] org.apache.tomcat.util.http.MimeHeaders:setLimit() #702
        +---[0.14319ms] org.apache.coyote.http11.Http11InputBuffer:parseHeaders() #703
        +---[0.003997ms] org.apache.coyote.Request:getMimeHeaders() #743
        +---[0.026561ms] org.apache.tomcat.util.http.MimeHeaders:values() #743
        +---[min=0.002869ms,max=0.01203ms,total=0.014899ms,count=2] java.util.Enumeration:hasMoreElements() #745
        +---[0.070114ms] java.util.Enumeration:nextElement() #746
        +---[0.010921ms] java.lang.String:toLowerCase() #746   +---[0.008453ms] java.lang.String:contains() #746
        +---[0.002698ms] org.apache.coyote.http11.Http11Processor:getErrorState() #775
        +---[0.00307ms] org.apache.coyote.ErrorState:isError() #775
        +---[0.002708ms] org.apache.coyote.RequestInfo:setStage() #777
        +---[0.171139ms] org.apache.coyote.http11.Http11Processor:prepareRequest() #779
        +---[0.009349ms] org.apache.tomcat.util.net.SocketWrapperBase:decrementKeepAlive() #794
        +---[0.002574ms] org.apache.coyote.http11.Http11Processor:getErrorState() #800
        +---[0.002696ms] org.apache.coyote.ErrorState:isError() #800
        +---[0.002499ms] org.apache.coyote.RequestInfo:setStage() #802
        +---[0.005641ms] org.apache.coyote.http11.Http11Processor:getAdapter() #803
        +---[129.868916ms] org.apache.coyote.Adapter:service() #803
        +---[0.003859ms] org.apache.coyote.http11.Http11Processor:getErrorState() #809
        +---[0.002365ms] org.apache.coyote.ErrorState:isError() #809
        +---[0.003844ms] org.apache.coyote.http11.Http11Processor:isAsync() #809
        +---[0.002382ms] org.apache.coyote.Response:getStatus() #809
        +---[0.002476ms] org.apache.coyote.http11.Http11Processor:statusDropsConnection() #809
        +---[0.002284ms] org.apache.coyote.RequestInfo:setStage() #838
        +---[0.00222ms] org.apache.coyote.http11.Http11Processor:isAsync() #839
        +---[0.037873ms] org.apache.coyote.http11.Http11Processor:endRequest() #843
        +---[0.002188ms] org.apache.coyote.RequestInfo:setStage() #845
        +---[0.002112ms] org.apache.coyote.http11.Http11Processor:getErrorState() #849
        +---[0.002063ms] org.apache.coyote.ErrorState:isError() #849
        +---[0.002504ms] org.apache.coyote.http11.Http11Processor:isAsync() #853
        +---[0.009808ms] org.apache.coyote.Request:updateCounters() #854
        +---[0.002008ms] org.apache.coyote.http11.Http11Processor:getErrorState() #855
        +---[0.002192ms] org.apache.coyote.ErrorState:isIoAllowed() #855
        +---[0.01968ms] org.apache.coyote.http11.Http11InputBuffer:nextRequest() #856
        +---[0.010065ms] org.apache.coyote.http11.Http11OutputBuffer:nextRequest() #857
        +---[0.002576ms] org.apache.coyote.RequestInfo:setStage() #870
        +---[0.016599ms] org.apache.coyote.http11.Http11Processor:processSendfile() #872
        +---[0.008182ms] org.apache.coyote.http11.Http11InputBuffer:getParsingRequestLinePhase() #688
        +---[0.0075ms] org.apache.coyote.http11.Http11Processor:handleIncompleteRequestLineRead() #690
        +---[0.001979ms] org.apache.coyote.RequestInfo:setStage() #875
        +---[0.001981ms] org.apache.coyote.http11.Http11Processor:getErrorState() #877
        +---[0.001934ms] org.apache.coyote.ErrorState:isError() #877
        +---[0.001995ms] org.apache.tomcat.util.net.AbstractEndpoint:isPaused() #877
        +---[0.002403ms] org.apache.coyote.http11.Http11Processor:isAsync() #879
        `---[0.006176ms] org.apache.coyote.http11.Http11Processor:isUpgrade() #881

�ュ�����涓�涓�129ms�����剁�戊寅��堕�存��娌″�arthas���跺���拈�挎����涓�arthas��韬�甯��ョ���ц�芥���锛���浠ョ��河渠х��澧�广大�蹇�浣跨��锛�锛�杩�涓�广大辨��瑕��剧����棰��无边��

����棰��规�惧�颁�锛��f��涔�疏浚�浣���浠�涔�瀵艰�寸����棰���锛���濡�浣�瑙e�冲��锛�

缁х图trace�э�缁����板�蜂���浠g����������疏浚广��trace�变��ц�借����锛�涓�浼�灞�绀烘������璋��ㄨ矾寰�锛�濡���璋��ㄨ矾寰�杩�娣憋��������ㄦ繁��trace锛�����广大辨��trace���堕�跨���d锅�规�锛�

[arthas@24851]$ trace org.apache.coyote.Adapter service
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 608 ms.
`---ts=2019-09-14 21:34:33;thread_name=http-nio-7744-exec-1;id=10;is_daemon=true;priority=5;TCCL=org.springframework.boot.loader.LaunchedURLClassLoader@20ad9418
    `---[81.70999ms] org.apache.catalina.connector.CoyoteAdapter:service()
        +---[0.032546ms] org.apache.coyote.Request:getNote() #302
        +---[0.007148ms] org.apache.coyote.Response:getNote() #303
        +---[0.007475ms] org.apache.catalina.connector.Connector:getXpoweredBy() #324
        +---[0.00447ms] org.apache.coyote.Request:getRequestProcessor() #331
        +---[0.007902ms] java.lang.ThreadLocal:get() #331
        +---[0.006522ms] org.apache.coyote.RequestInfo:setWorkerThreadName() #331
        +---[73.793798ms] org.apache.catalina.connector.CoyoteAdapter:postParseRequest() #336
        +---[0.001536ms] org.apache.catalina.connector.Connector:getService() #339
        +---[0.004469ms] org.apache.catalina.Service:getContainer() #339
        +---[0.007074ms] org.apache.catalina.Engine:getPipeline() #339
        +---[0.004334ms] org.apache.catalina.Pipeline:isAsyncSupported() #339
        +---[0.002466ms] org.apache.catalina.connector.Request:setAsyncSupported() #339
        +---[6.01E-4ms] org.apache.catalina.connector.Connector:getService() #342
        +---[0.001859ms] org.apache.catalina.Service:getContainer() #342
        +---[9.65E-4ms] org.apache.catalina.Engine:getPipeline() #342
        +---[0.005231ms] org.apache.catalina.Pipeline:getFirst() #342
        +---[7.239154ms] org.apache.catalina.Valve:invoke() #342
        +---[0.006904ms] org.apache.catalina.connector.Request:isAsync() #345
        +---[0.00509ms] org.apache.catalina.connector.Request:finishRequest() #372
        +---[0.051461ms] org.apache.catalina.connector.Response:finishResponse() #373
        +---[0.007244ms] java.util.concurrent.atomic.AtomicBoolean:<init>() #379
        +---[0.007314ms] org.apache.coyote.Response:action() #380
        +---[0.004518ms] org.apache.catalina.connector.Request:isAsyncCompleting() #382
        +---[0.001072ms] org.apache.catalina.connector.Request:getContext() #394
        +---[0.007166ms] java.lang.System:currentTimeMillis() #401
        +---[0.004367ms] org.apache.coyote.Request:getStartTime() #401
        +---[0.011483ms] org.apache.catalina.Context:logAccess() #401
        +---[0.0014ms] org.apache.coyote.Request:getRequestProcessor() #406
        +---[min=8.0E-4ms,max=9.22E-4ms,total=0.001722ms,count=2] java.lang.Integer:<init>() #406
        +---[0.001082ms] java.lang.reflect.Method:invoke() #406
        +---[0.001851ms] org.apache.coyote.RequestInfo:setWorkerThreadName() #406
        +---[0.035805ms] org.apache.catalina.connector.Request:recycle() #410
        `---[0.007849ms] org.apache.catalina.connector.Response:recycle() #411

涓�娈垫���������ㄦ繁��trace涔���������������

[arthas@24851]$ trace org.apache.catalina.webresources.AbstractArchiveResourceSet getArchiveEntries
Press Q or Ctrl+C to abort.
Affect(class-cnt:4 , method-cnt:2) cost in 150 ms.
`---ts=2019-09-14 21:36:26;thread_name=http-nio-7744-exec-3;id=12;is_daemon=true;priority=5;TCCL=org.springframework.boot.loader.LaunchedURLClassLoader@20ad9418
    `---[75.743681ms] org.apache.catalina.webresources.JarWarResourceSet:getArchiveEntries()
        +---[0.025731ms] java.util.HashMap:<init>() #106
        +---[0.097729ms] org.apache.catalina.webresources.JarWarResourceSet:openJarFile() #109
        +---[0.091037ms] java.util.jar.JarFile:getJarEntry() #110
        +---[0.096325ms] java.util.jar.JarFile:getInputStream() #111
        +---[0.451916ms] org.apache.catalina.webresources.TomcatJarInputStream:<init>() #113
        +---[min=0.001175ms,max=0.001176ms,total=0.002351ms,count=2] java.lang.Integer:<init>() #114
        +---[0.00104ms] java.lang.reflect.Method:invoke() #114
        +---[0.045105ms] org.apache.catalina.webresources.TomcatJarInputStream:getNextJarEntry() #114
        +---[min=5.02E-4ms,max=0.008531ms,total=0.028864ms,count=31] java.util.jar.JarEntry:getName() #116
        +---[min=5.39E-4ms,max=0.022805ms,total=0.054647ms,count=31] java.util.HashMap:put() #116
        +---[min=0.004452ms,max=34.479307ms,total=74.206249ms,count=31] org.apache.catalina.webresources.TomcatJarInputStream:getNextJarEntry() #117
        +---[0.018358ms] org.apache.catalina.webresources.TomcatJarInputStream:getManifest() #119
        +---[0.006429ms] org.apache.catalina.webresources.JarWarResourceSet:setManifest() #120
        +---[0.010904ms] org.apache.tomcat.util.compat.JreCompat:isJre9Available() #121
        +---[0.003307ms] org.apache.catalina.webresources.TomcatJarInputStream:getMetaInfEntry() #133
        +---[5.5E-4ms] java.util.jar.JarEntry:getName() #135
        +---[6.42E-4ms] java.util.HashMap:put() #135
        +---[0.001981ms] org.apache.catalina.webresources.TomcatJarInputStream:getManifestEntry() #137
        +---[0.064484ms] org.apache.catalina.webresources.TomcatJarInputStream:close() #141
        +---[0.007961ms] org.apache.catalina.webresources.JarWarResourceSet:closeJarFile() #151
        `---[0.004643ms] java.io.InputStream:close() #155

���颁�涓�涓��煎������������戊寅�

 +---[min=0.004452ms,max=34.479307ms,total=74.206249ms,count=31] org.apache.catalina.webresources.TomcatJarInputStream:getNextJarEntry() #117

杩�琛�浠g����潘戒�31娆★�涓��辫����74ms锛�浠���海洋�涓���锛�搴�璇ユ��tomcat��潘�jar���剁�����讹��d�����潘戒�31涓�jar�������讹�杩�����潘戒�jar��������河渠�璧�婧�31娆¤���跺��锛�

TomcatJarInputStream杩�涓�绫绘�����娉ㄩ�����起�

The purpose of this sub-class is to obtain references to the JarEntry objects
for META-INF/ and META-INF/MANIFEST.MF that are otherwise swallowed by the
JarInputStream implementation.
澶ф�����涔�广大辨��锛��山��jar����META-INF/锛�META-INF/MANIFEST��璧�婧�锛�杩���涓�涓�海洋�绫伙��村������藉�ㄧ�剁被JarInputStream����

�跺�����拌���澶ф�涔��界���伴��棰�河渠�锛�tomcat��潘�jar����META-INF/锛�META-INF/MANIFEST��璧�婧�瀵艰�寸�����讹��充�涓轰�涔�杩�缁�璇锋�涓�浼����讹�搴�璇ユ��tomcat��缂�海洋��哄�讹�涓���浠�缁�婧�������锛�

涓����ュ��浣���棰�锛�璇�����杩�Arthas��缁�疏浚�浣���棰�缁���锛�缁х图���ㄦ繁��trace

[arthas@24851]$ trace org.apache.catalina.webresources.TomcatJarInputStream *
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:4) cost in 44 ms.
`---ts=2019-09-14 21:37:47;thread_name=http-nio-7744-exec-5;id=14;is_daemon=true;priority=5;TCCL=org.springframework.boot.loader.LaunchedURLClassLoader@20ad9418
    `---[0.234952ms] org.apache.catalina.webresources.TomcatJarInputStream:createZipEntry()
        +---[0.039455ms] java.util.jar.JarInputStream:createZipEntry() #43
        `---[0.007827ms] java.lang.String:equals() #44

`---ts=2019-09-14 21:37:47;thread_name=http-nio-7744-exec-5;id=14;is_daemon=true;priority=5;TCCL=org.springframework.boot.loader.LaunchedURLClassLoader@20ad9418
    `---[0.050222ms] org.apache.catalina.webresources.TomcatJarInputStream:createZipEntry()
        +---[0.001889ms] java.util.jar.JarInputStream:createZipEntry() #43
        `---[0.001643ms] java.lang.String:equals() #46
#杩���涓���31涓�trace�ュ�锛�����河渠��╀���

浠��规���涓���锛�杩�����潘借�婧�涔�绫荤���������藉凡缁���jdk婧���河渠�锛�杩��跺���ョ��涓�涓�TomcatJarInputStream杩�涓�绫荤��婧���:

/**
 * Creates a new <code>JarEntry</code> (<code>ZipEntry</code>) for the
 * specified JAR file entry name. The manifest attributes of
 * the specified JAR file entry name will be copied to the new
 * <CODE>JarEntry</CODE>.
 *
 * @param name the name of the JAR/ZIP file entry
 * @return the <code>JarEntry</code> object just created
 */
protected ZipEntry createZipEntry(String name) {
    JarEntry e = new JarEntry(name);
    if (man != null) {
        e.attr = man.getAttributes(name);
    }
    return e;
}

杩�涓�createZipEntry��涓�name���起�浠�娉ㄩ��涓���锛���jar/zip��浠跺��锛�濡����藉��版��浠跺��杩�绉��抽��淇℃��锛�广大卞��浠ョ�存�ュ��浣���棰�河渠�锛�杩�����杩�Arthas锛�浣跨��watch�戒护锛��ㄦ����娴��规�璋��ㄦ�版��

watch�规��ц��版��瑙�娴�
璁╀��芥�逛究��瑙�瀵��版��疏浚��规���璋��ㄦ���点���借�瀵��扮演�����翠负锛�杩����笺�����哄�甯搞���ュ��锛���杩�缂��� OGNL 琛ㄨ揪寮�杩�琛�瀵瑰��������ョ����

watch 璇ユ�规����ュ��

[arthas@24851]$ watch  org.apache.catalina.webresources.TomcatJarInputStream createZipEntry "{params[0]}"
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 27 ms.
ts=2019-09-14 21:51:14; [cost=0.14547ms] result=@ArrayList[
    @String[META-INF/],
]
ts=2019-09-14 21:51:14; [cost=0.048028ms] result=@ArrayList[
    @String[META-INF/MANIFEST.MF],
]
ts=2019-09-14 21:51:14; [cost=0.046071ms] result=@ArrayList[
    @String[META-INF/resources/],
]
ts=2019-09-14 21:51:14; [cost=0.033855ms] result=@ArrayList[
    @String[META-INF/resources/swagger-ui.html],
]
ts=2019-09-14 21:51:14; [cost=0.039138ms] result=@ArrayList[
    @String[META-INF/resources/webjars/],
]
ts=2019-09-14 21:51:14; [cost=0.033701ms] result=@ArrayList[
    @String[META-INF/resources/webjars/springfox-swagger-ui/],
]
ts=2019-09-14 21:51:14; [cost=0.033644ms] result=@ArrayList[
    @String[META-INF/resources/webjars/springfox-swagger-ui/favicon-16x16.png],
]
ts=2019-09-14 21:51:14; [cost=0.033976ms] result=@ArrayList[
    @String[META-INF/resources/webjars/springfox-swagger-ui/springfox.css],
]
ts=2019-09-14 21:51:14; [cost=0.032818ms] result=@ArrayList[
    @String[META-INF/resources/webjars/springfox-swagger-ui/swagger-ui-standalone-preset.js.map],
]
ts=2019-09-14 21:51:14; [cost=0.04651ms] result=@ArrayList[
    @String[META-INF/resources/webjars/springfox-swagger-ui/swagger-ui.css],
]
ts=2019-09-14 21:51:14; [cost=0.034793ms] result=@ArrayList[
    @String[META-INF/resources/webjars/springfox-swagger-ui/swagger-ui.js.map],
@String[META-INF/resources/webjars/springfox-swagger-ui/swagger-ui.js.map],

杩�涓��存�ョ���颁��蜂���潘界��璧�婧���锛�杩�涔���������海洋�锛�swagger-ui锛�涓�涓��藉���rest�ュ�f��妗e伐�凤������藉��寮������轰�swagger-ui��河渠�涓�濂�spring mvc������宸ュ�凤���杩�娉ㄨВ广大卞��浠ヨ���ㄧ����swagger-ui��瑕����ュ�e��涔�json��浠讹��ㄨ捣�ヨ�姣�杈��逛究锛�广大辨��岛靛�ユ�ц�寮恒��

����swagger��jar������棰�锛�璇″���70+ms广大辨�澶变�

<!--pom �����よ�涓や锅寮���锛�杩�涓や锅���跺�藉��寮�����广大�瑁���锛�swagger-ui骞舵病����岛�java spring-mvc��������锛�swagger����涓�涓�娴�瑙��ㄧ����ui+editor

<!--pom �����よ�涓や锅寮���锛�杩�涓や锅���跺�藉��寮�����广大�瑁���锛�swagger-ui骞舵病����岛�java spring-mvc��������锛�swagger����涓�涓�娴�瑙��ㄧ����ui+editor
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger2</artifactId>
    <version>2.9.2</version>
</dependency>
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger-ui</artifactId>
    <version>2.9.2</version>
</dependency>

�d�涓轰�涔�swagger浼�瀵艰�磋�锋����跺��锛�涓轰�涔�姣�娆¤�锋��惰�讳���潘�swagger���ㄧ������璧�婧���锛�

�跺��杩���tomcat-embed��涓�涓�bug�э�涓��㈣��缁�浠�缁�涓�涓�璇�Bug

Tomcat embed Bug����&瑙e��
婧�������杩�绋�疏浚��ㄥお郭��救救���涓�涔�涓������������戊寅���浠ュ氨涓�浠�缁�河渠�锛� 涓��㈢�存�ヤ�缁�涓�����缁���

椤轰究璐翠�寮�tomcat澶���璇锋����稿�绫诲��
�块����棰�疏浚�浣�绁��� Arthas ��楠���浣�锛�疏浚�浣�绾夸�BUG锛�瓒�缁���

涓轰�涔�姣�娆¤�锋�浼���潘�Jar����������璧�婧�
�抽���ㄤ�org.apache.catalina.mapper.Mapper#internalMapWrapper杩�涓��规�锛�璇ョ����涓�澶���璇锋����瑰�����棰�锛�瀵艰�存��娆¢�芥�¢������璧�婧���

涓轰�涔�杩�缁�璇锋�涓�浼��雾�伴��棰�
��涓�Tomcat瀵逛�杩�绉�����璧�婧���瑙f������缂�海洋���锛�浼���浠�缂�海洋��ユ�撅�缂�海洋�杩����������拌В�����蜂�����org.apache.catalina.webresources.Cache锛�榛�璁よ����堕��ttl��5000ms��

涓轰�涔����颁�浼�澶���
�跺��纭�����璇达�����杩�spring-boot������浠跺��涓��藉��般���变����ㄦ�瑰���涓���锛�tomcat浣跨�ㄤ�涓�����绫诲�诲�������璧�婧�锛���浠ユ病魔��棰�

濡�浣�瑙e��
��绾�tomcat-embed�����冲��

褰����雾��Bug������涓猴�

spring-boot:2.0.2.RELEASE锛���缃���tomcat embed����涓�8.5.31

��绾�tomcat embed������8.5.40+�冲��瑙e�虫�ら��棰�锛��扮演����宸茬�淇�澶�河渠�

��杩��挎��springboot pom properties�瑰�
濡���椤圭����maven��缁ф�跨��springboot锛���parent��缃�涓�springboot��锛�����dependencyManagement涓�import spring boot����

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.2.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

pom涓��存�ヨ���properties�冲��锛�

<properties>
    <tomcat.version>8.5.40</tomcat.version>
</properties>

��绾�spring boot����
springboot 2.1.0.RELEASE涓���tomcat embed����宸茬�澶т�8.5.31河渠�锛���浠ョ�存�ュ�springboot��绾ц�宠�ョ������浠ヤ�����广大卞��浠ヨВ�虫�ら��棰�