proxool导致连接数居高不下解决方案

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/s95001188/article/details/83300753
Hibernate配置proxool出现的问题,连接数居高不下,后来发现加入下面语句即可

<property name="hibernate.connection.release_mode">auto</property>


JDK环境变量配置:

如果你的JDK安装在C盘里,如:C:\j2sdk1.4.2_05,那么就在系统变量里(当然也可以在用户变量里)点新建:

变量名:JAVA_HOME

变量值:C:\j2sdk1.4.2_05

再次点新建:

变量名:classpath

变量值:.;%JAVA_HOME%\lib\dt.jar;

并在path里加入 .;%JAVA_HOME%\bin;
展开阅读全文

xfire导致CPU居高不下

07-20

webservcie项目用xifre,不定期出现CPU100%的情况,经过分析是xfire引起的rn[code=java]rn"http-bio-80-exec-8" daemon prio=10 tid=0x00007f84dc001800 nid=0x166d runnable [0x00007f853526f000]rn java.lang.Thread.State: RUNNABLErn at com.sun.xml.stream.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:876)rn at com.sun.xml.stream.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:353)rn at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:557)rn at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:44)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)rn at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)rn at org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServletController.java:304)rn at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:129)rn at org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServlet.java:116)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)rn - locked <0x00000000c6459540> (a org.apache.tomcat.util.net.SocketWrapper)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn[/code]rnrn现在想在还用xfire的情况下解决该问题,不考虑:定期重启tomcat、改成cxf。rn 论坛

没有更多推荐了,返回首页