Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 80447 invoked from network); 25 May 2006 13:45:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2006 13:45:16 -0000 Received: (qmail 49565 invoked by uid 500); 25 May 2006 13:45:13 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 49516 invoked by uid 500); 25 May 2006 13:45:13 -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 49502 invoked by uid 99); 25 May 2006 13:45:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 06:45:12 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 06:45:12 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8FEE071423B for ; Thu, 25 May 2006 13:44:30 +0000 (GMT) Message-ID: <32839972.1148564670586.JavaMail.jira@brutus> Date: Thu, 25 May 2006 13:44:30 +0000 (GMT+00:00) From: "Subramanyam Ramanathan (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-766) Axis2 High memory usage, OutOfMemory exception In-Reply-To: <3555069.1148561671580.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-766?page=all ] Subramanyam Ramanathan updated AXIS2-766: ----------------------------------------- Attachment: test2.xml XML file being posted to axis2 web service. > Axis2 High memory usage, OutOfMemory exception > ---------------------------------------------- > > Key: AXIS2-766 > URL: http://issues.apache.org/jira/browse/AXIS2-766 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Environment: Red Hat Enterprise Linux ES release 4 > Axis2 version 1.0 > Tomcat 5.5.17 > jdk 1.5.0_04 > Reporter: Subramanyam Ramanathan > Attachments: Axis2SampleDocLit.wsdl, Axis2SampleDocLitServiceSkeleton.java, PostXmlToAxis.java, SoapSender.java, test2.xml > > I have been trying out Axis 2.0 over the past week, with the configuration : > Axis2 version 1.0 > Tomcat 5.5.17 > jdk 1.5.0_04 > I have tried using the sample "Axis2SampleDocLitService" that has been given. I generated the stubs and skeletons using the wsdl provided with the axis2 distribution (samples/wsdl/Axis2SampleDocLit.wsdl) , as shown in the user guide, using the xmlbeans option for data binding. I have also filled in the Skeleton class with the same code as given in the user guide. > I have a http client which I use to post the xml request to the server, and I got proper responses when I tested it with the client. > However, I have noticed that when I pump requests at a rapid rate, the memory usage keeps on increasing rapidly (checked using jmx console), in some cases ultimately leading to a jvm crash with an OutOfMemory Exception. This was occurring when default mx(which is 64M) was used. > I also tried setting the JVM mx option to 128M (-Xmx128M) and ran the test again. However, the memory usage keeps increasing all the way till it reaches 128 Mb, too, where it again crashes if I continue pumping further. > If I stop pumping requests at around that time, and wait for around half an hour, I notice that the memory usage begins to reduce, and slowly come back to the original value (10M approx.) upon forcing a GC. > I have also deployed axis1 on the same tomcat installation, with the intention of comparing performance. When I try the same test there, ie, pumping requests, I don't find any alarming memory increase. > Why is so much memory being used, and why does it grow to fill however much memory is available ? Is it a memory leak, or is there any way I can limit the amount of memory being used ? The memory usage does come down, but it takes a very long time for this. This would surely affect the performance of any webservice I try to deploy with axis2, and it may even result in the service being unavailable because of a crash. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org