The APR based Apache Tomcat Native library which allows optimal performance in p

 方法一:

      下载tcnative-1.dll文件,放在C:/Windows/System32下。下载地址见附件。

方法二:

       打开conf/server.xml这个配置文件,找到下面这行:

<Server port="8005" shutdown="SHUTDOWN">

 

  <!--APR library loader. Documentation at /docs/apr.html --><br>

  <!-- 下面这行本来是没有注释的,现在将这一行注释了,你的问题就暂时不会出现了 -->
  <!--<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />-->

  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->

  <Listener className="org.apache.catalina.core.JasperListener" />

  <!-- Prevent memory leaks due to use of particular java/javax APIs-->

  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />

  <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->

  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />

  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

        这行配置注释了即可关闭APR,至于问题最完美的解决方案,我这里还没有,只能解一时之需,如有更好的解决方式,请留言告诉我,彼此交流,谢谢!

猜你喜欢

转载自mingming-0302.iteye.com/blog/2266394