Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 44991 invoked from network); 5 Mar 2009 12:38:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2009 12:38:50 -0000 Received: (qmail 70889 invoked by uid 500); 5 Mar 2009 12:38:41 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 70858 invoked by uid 500); 5 Mar 2009 12:38:41 -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 70849 invoked by uid 99); 5 Mar 2009 12:38:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 04:38:41 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hakon.sagehaug@googlemail.com designates 72.14.220.152 as permitted sender) Received: from [72.14.220.152] (HELO fg-out-1718.google.com) (72.14.220.152) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 12:38:32 +0000 Received: by fg-out-1718.google.com with SMTP id e12so370041fga.14 for ; Thu, 05 Mar 2009 04:38:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=RIvGt28AxIl5f0p1IIgK3CwCHKw9SGb/ggRZ2+6Wk4Y=; b=pNR0PyeOZo4WEeyfds8hBUsRj+BLTmxWe6EdaWbZ5stCbsStrCI1m5Vx2+96gNZpbM cwQYtSDew1fsmcWmwHbxpWLTTPOqBLGsVWc9mbFsGOqpBNwdeOHavfM1OD2OxQ5FWVkv eKg49Vv05LN58gtbD/RtdmLw4Weoq8OVchAU4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=d6uYHMa3AXCnEd66BfbPpnBwIWizsy581Vp0bWKQk20d0IwKMcQu0dL/qc+ugV1Tut qlSGO2vZfq2BIgWh3H+4XEguM+XQKY9V0fAA6PlN/EnMOh2VhIWjjYRLcfvQMtW54vrf wlqwpdJwXu9isFyMV58yTh4w5sF7tpmlXR3Kw= MIME-Version: 1.0 Sender: hakon.sagehaug@googlemail.com Received: by 10.86.4.14 with SMTP id 14mr899868fgd.22.1236256690940; Thu, 05 Mar 2009 04:38:10 -0800 (PST) In-Reply-To: <495382000902270914j2fa3149dlc500907e59dc5aa4@mail.gmail.com> References: <495382000902270914j2fa3149dlc500907e59dc5aa4@mail.gmail.com> Date: Thu, 5 Mar 2009 13:38:10 +0100 X-Google-Sender-Auth: f0ef2af38d4f006a Message-ID: Subject: Re: Memory problems using axis2 tomcat and ssl From: =?ISO-8859-1?Q?H=E5kon_Sagehaug?= To: axis-user@ws.apache.org Content-Type: multipart/alternative; boundary=000e0cd29b4cea2c9804645e70b5 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd29b4cea2c9804645e70b5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hi Thanks for the replays, I'll play with the startup memory configurations of tomcat and hopefully it will have the wanted effect. 2009/2/27 Seshi Patibanda > Hello Hakon, > > As you may already know, PermGen space (a separate area of heap memory) > contains long-lived classes, anonymous classes and interned strings. Memo= ry > errors related to PermGen indicate that the GC (Garbage collection) is > running frequently to cleanup those classes and thereby consuming the > limited available PermGen space. > > Couple of recommendations: > > 1. Take a deep look into your code (as deep as possible) and cleanup > your objects explicitly. > By this "cleanup your objects explicitly." do you mean setting the to nul= l or something similar?? cheers, H=E5kon > Perhaps, running a memory profiler would validate the frequent invocation= s > of GC. You may have to find a suitable profiler. > 2. Increase the PermGen space available to JVM along with the Heap space > using the command switches: > -Xms256m -Xmx512m -XX:MaxPermSize=3D512m > > As seen, the first two swiches take care of Heap space and the last one f= or > PermGen space. I normally set the system env variable CATALINA_OPTS to se= t > the above JVM switches. > > Hope this helps. > > Thanks, > > Seshi Patibanda > > > > On Thu, Feb 26, 2009 at 8:37 AM, H=E5kon Sagehaug < > Hakon.Sagehaug@bccs.uib.no> wrote: > >> Hi all, >> >> I'm experimenting with web services deployed with axis2 in tomcat using >> ssl for securing them and noticed something strange. I can call one of t= he >> services many times and no problems, but when I want to call another >> service I get >> >> java.lang.OutOfMemoryError: PermGen space >> >> from tomcat. If I start tomcat without ssl enabled all services and >> container behaves normally, calling them multiple times works as it shou= ld. >> Have anyone experienced anything similar? I've not altered any of the we= b >> services just added the tomcat ssl connector and configured it like this >> >> > maxThreads=3D"200" scheme=3D"https" secure=3D"true" >> clientAuth=3D"false" sslProtocol=3D"TLS" enableLookups=3D= "true" >> keystoreFile=3D"${user.home}/my.jks" >> keystorePass=3D"password" acceptCount=3D"100" >> minSpareThreads=3D"5" maxSpareThreads=3D"75" >> disableUploadTimeout=3D"true" >> /> >> >> I'm usign axis2-1.4.1, tomat 6.0.18 >> >> cheers, H=E5kon >> >> >> -- >> H=E5kon Sagehaug, Scientific Programmer >> Parallab, Bergen Center for Computational Science (BCCS) >> UNIFOB AS (University of Bergen Research Company) >> > > --=20 H=E5kon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) --000e0cd29b4cea2c9804645e70b5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hi

Thanks for the replays, I'll play with the startup memory con= figurations of tomcat and hopefully it will have the wanted effect.

=

2009/2/27 Seshi Patibanda <seship67@gmail.com>
Hello Hakon,=
=A0
As you may already know, PermGen space (a separate area of heap memory= ) contains long-lived classes, anonymous classes and interned strings. Memo= ry errors related to PermGen indicate that the GC (Garbage collection) is r= unning frequently to cleanup those classes and thereby consuming the limite= d available PermGen space.
=A0
Couple of recommendations:
=A0
1. Take a deep look into your code (as deep as possible) and cleanup y= our=A0objects explicitly.

By this=A0 "clea= nup your=A0objects explicitly."=A0 do you mean setting the to null or = something similar??

cheers, H=E5kon
Perhaps, running a memory profiler would validate the freq= uent invocations of GC. You may have to find a suitable profiler.
2. Increase the PermGen space available to JVM along with the Heap spa= ce using the command switches:
=A0=A0=A0=A0 -Xms256m -Xmx512m -XX:MaxPermSize=3D512m
=A0
As seen, the first two swiches take care of Heap space and the last on= e for PermGen space. I normally set=A0the system env variable CATALINA_OPTS= to set the above JVM switches.
=A0
Hope this helps.
=A0
Thanks,
=A0
Seshi Patibanda


=A0
On Thu, Feb 26, 2009 at 8:37 AM, H=E5kon Sagehau= g <Hakon.Sagehaug@bccs.uib.no> wrote:
Hi all,

I&= #39;m experimenting with web services deployed with axis2 in tomcat using s= sl for securing them and noticed something strange. I can call one of the s= ervices many times and no problems, but when I want to call=A0 another serv= ice I get

java.lang.OutOfMemoryError: PermGen space

from tomcat. If I start tomcat= without ssl enabled all services and container behaves normally, calling t= hem multiple times works as it should. Have anyone experienced anything sim= ilar? I've not altered any of the web services just added the tomcat ss= l connector and configured it like this

=A0<Connector port=3D"8443" protocol=3D"HTTP/1.1"= ; SSLEnabled=3D"true"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 maxThreads=3D"200" scheme=3D"https" secure=3D"= true"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 clientAuth=3D"= ;false" sslProtocol=3D"TLS" enableLookups=3D"true"= =A0
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 keystoreFile=3D"${user.home= }/my.jks"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 keystorePass= =3D"password" acceptCount=3D"100"=A0 minSpareThreads=3D= "5" maxSpareThreads=3D"75"
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 disableUploadTimeout=3D"true"=A0
/>

I'm usign axis2-1.4.1, tomat 6.0.18

cheers, H=E5kon=


--
H=E5kon Sagehaug, Scientific Pro= grammer
Parallab, Bergen Center for Computational Science (BCCS)
UNIF= OB AS (University of Bergen Research Company)




--
H=E5kon Sag= ehaug, Scientific Programmer
Parallab, Bergen Center for Computational S= cience (BCCS)
UNIFOB AS (University of Bergen Research Company)
--000e0cd29b4cea2c9804645e70b5--