Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 37091 invoked from network); 25 May 2006 11:51:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2006 11:51:53 -0000 Received: (qmail 73394 invoked by uid 500); 25 May 2006 11:51:43 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 73373 invoked by uid 500); 25 May 2006 11:51:42 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 73362 invoked by uid 99); 25 May 2006 11:51:42 -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 04:51:42 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [12.17.0.130] (HELO ns1.c-cor.com) (12.17.0.130) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 04:51:41 -0700 Received: from scpmail1.NTSCD.C-COR.com (scpo1.c-cor.com [192.168.128.18]) by ns1.c-cor.com (8.12.10/8.12.10) with ESMTP id k4PBpII7014983 for ; Thu, 25 May 2006 07:51:18 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C67FF1.8889D0D9" Subject: Axis2 High memory usage, OutOfMemory exception Date: Thu, 25 May 2006 07:51:18 -0400 Message-ID: <32EF7BBBB7373846BAA10F8818A8B50C2467CD@scpmail1.NTSCD.C-COR.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Axis2 High memory usage, OutOfMemory exception Thread-Index: AcZ/8Yev7bFDKBRCRACFf/02NmT06w== From: "Ramanathan, Subramanyam" To: "Axis-User \(E-mail\)" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C67FF1.8889D0D9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi,=20 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 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.=20 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.=20 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. Could you please help me out ? Regards,=20 Subramanyam ------_=_NextPart_001_01C67FF1.8889D0D9 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Axis2 High memory usage, OutOfMemory exception

Hi,

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 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.

Could you please help me out ?

Regards,
Subramanyam

------_=_NextPart_001_01C67FF1.8889D0D9--