Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 90021 invoked from network); 10 Jul 2009 21:45:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jul 2009 21:45:31 -0000 Received: (qmail 21891 invoked by uid 500); 10 Jul 2009 21:45:40 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 21799 invoked by uid 500); 10 Jul 2009 21:45:40 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 21622 invoked by uid 99); 10 Jul 2009 21:45:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 21:45:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 21:45:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 441EA234C044 for ; Fri, 10 Jul 2009 14:45:15 -0700 (PDT) Message-ID: <1922452442.1247262315278.JavaMail.jira@brutus> Date: Fri, 10 Jul 2009 14:45:15 -0700 (PDT) From: "Andreas Veithen (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-4424) 100% CPU Utilization during the stress In-Reply-To: <1058905604.1247151254954.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729845#action_12729845 ] Andreas Veithen commented on AXIS2-4424: ---------------------------------------- Can you enable debug logging on org.apache.axiom.om.util.StAXUtils and use the output to determine the StAX implementation that is used (look for "XMLStreamReader is ...")? > 100% CPU Utilization during the stress > -------------------------------------- > > Key: AXIS2-4424 > URL: https://issues.apache.org/jira/browse/AXIS2-4424 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: transports > Affects Versions: 1.4.1 > Environment: Linux, JDK 1.6.0_04-b12, tomcat-6.0.14 > Reporter: Ravi Shanker Reddy > Fix For: 1.4.1 > > > We are continuously sending the SOAP requests to our server, after some time some of the threads will get into following stack trace. The number of threads which falls into the following stack trace will be increase with the time. Once 3 to 4 threads are fot into the below stack trace the server CPU will reaces to 100%. We debugged the issue and find that the problem is with the below method > org.apache.axiom.soap.impl.builder StAXSOAPModelBuilder > Method: > public SOAPEnvelope getSOAPEnvelope() throws OMException { > while ((envelope == null) && !done) { > next(); > } > return envelope; > } > In some specific conditions, the while loop never ends which resulted into 100% CPU. > We enabled the TRACING and found that, once any thread falls in the this loop getting following statement in log file continuously. > Please note that, there is not issue with SOAP request which we are sending, we tested the SOAP requests individually and all are getting proper response. > 09 Jul 2009 09:19:10 TRACE [http-8080-17] builder.StAXOMBuilder - START_DOCUMENT: > 09 Jul 2009 09:19:10 TRACE [http-8080-17] builder.StAXOMBuilder - START_DOCUMENT: > 09 Jul 2009 09:19:10 TRACE [http-8080-17] builder.StAXOMBuilder - START_DOCUMENT: > 09 Jul 2009 09:19:10 TRACE [http-8080-17] builder.StAXOMBuilder - START_DOCUMENT: > 09 Jul 2009 09:19:10 TRACE [http-8080-17] builder.StAXOMBuilder - START_DOCUMENT: > 09 Jul 2009 09:19:10 TRACE [http-8080-17] builder.StAXOMBuilder - START_DOCUMENT: > Stack Trace of The Thread:- > http-8080-34" daemon prio=10 tid=0x7addb400 nid=0x2423 runnable [0x794ee000..0x794ef030] > java.lang.Thread.State: RUNNABLE > at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:177) > at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:156) > at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:105) > at org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:53) > at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:164) > at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:112) > at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:270) > at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > 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.valves.RequestDumperValve.invoke(RequestDumperValve.java:151) > 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) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.