当前位置: 代码迷 >> J2EE >> 急服务器访问超慢。解决思路
  详细解决方案

急服务器访问超慢。解决思路

热度:84   发布时间:2016-04-22 01:55:17.0
急。。。服务器访问超慢。。。
Java code
2012-3-23 16:18:06 org.apache.catalina.core.StandardWrapperValve invoke严重: Servlet.service() for servlet default threw exceptionjava.net.SocketException: Broken pipe    at java.net.SocketOutputStream.socketWrite0(Native Method)    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)    at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)    at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:127)    at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:570)    at org.apache.coyote.Response.doWrite(Response.java:560)    at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)    at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)    at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:309)    at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)    at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:98)    at javax.imageio.stream.FileCacheImageOutputStream.close(FileCacheImageOutputStream.java:213)    at javax.imageio.ImageIO.write(ImageIO.java:1567)    at org.plugbase.base.RandomPackage.show(RandomPackage.java:127)    at org.plugbase.base.RandomPackage.number(RandomPackage.java:84)    at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.plugbase.xaction.util.ActionUtil.executeAction(ActionUtil.java:114)    at org.plugbase.xengine.http.ServletEngine.execute(ServletEngine.java:70)    at org.plugbase.xengine.http.Filter.doFilter(Filter.java:51)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)    at java.lang.Thread.run(Thread.java:619)

Java code
org.apache.xmlrpc.XmlRpcException: Failed to read servers response: Cannot write output after reading input.    at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:150)    at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)    at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:44)    at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)    at org.plugbase.xmlrpc.ServiceClient.execute(ServiceClient.java:40)    at org.plugbase.base.SitePackage.execute(SitePackage.java:42)    at org.plugbase.packages.admin.ProductsPackage.doStatusAll(ProductsPackage.java:379)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.plugbase.xaction.util.ActionUtil.executeAction(ActionUtil.java:114)    at org.plugbase.xengine.http.ServletEngine.execute(ServletEngine.java:70)    at org.plugbase.xengine.http.Filter.doFilter(Filter.java:51)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)    at java.lang.Thread.run(Thread.java:619)Caused by: java.net.ProtocolException: Cannot write output after reading input.    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:877)    at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:70)    at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:140)    ... 28 moreorg.apache.xmlrpc.client.XmlRpcClientException: Failed to read servers response: Stream closed.Caused by:    at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:179)    at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)    at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)    at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:44)    at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)    at org.plugbase.xmlrpc.ServiceClient.execute(ServiceClient.java:40)    at org.plugbase.base.SitePackage.execute(SitePackage.java:42)    at org.plugbase.packages.admin.ProductsPackage.doStatusAll(ProductsPackage.java:379)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.plugbase.xaction.util.ActionUtil.executeAction(ActionUtil.java:114)    at org.plugbase.xengine.http.ServletEngine.execute(ServletEngine.java:70)    at org.plugbase.xengine.http.Filter.doFilter(Filter.java:51)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)    at java.lang.Thread.run(Thread.java:619)
  相关解决方案