Hi

I did not want to just increase the heap size and other properties, because
this just as markus say often "just delay the error."

I now this error has something to do with classloading and, redeployment,
but since I dont do anything like this and everything works fine with out
ssl enabled for tomcat, I'm sort of lost. Does tomcat need more memory when
ssl is enabled, could this be the issue?

Håkon

2009/2/26 m4rkuz <[email protected]>

>
> Hello Martin,
>
> I've been down that path too, but extracted from the same blog:
>
> http://my.opera.com/karmazilla/blog/2007/03/15/permgen-strikes-back
>
> This solution only works fine in some cases, in other it just delay the
> error.
>
> Regards,
>
>
> Marcus V. Sánchez D.
> ______________________
> Enterprise Developer.
> Sun Certified Java Programmer (SCJP)
>
>
> On Thu, Feb 26, 2009 at 8:54 AM, Martin Gainty <[email protected]>wrote:
>
>>  Hakkon
>>
>> If you dont mind taking advice from a norsk please read
>>
>> http://my.opera.com/karmazilla/blog/2007/03/13/good-riddance-permgen-outofmemoryerror
>>
>> as this is related to the JVM and permgen settings you must tweak
>> JAVA_OPTS env parameter
>> please add these parameters to your JAVA_OPTS env variable
>>
>> switch garbage-collector to concurrent
>> -XX:+UseConcMarkSweepGC
>>
>> collect in permgen space
>> -XX:+CMSPermGenSweepingEnabled
>>
>> allow classes to be unloaded
>> -XX:+CMSClassUnloadingEnabled
>>
>> tweak the Max Perm Gen size up to 128M
>> -XX:MaxPermSize=128m
>>
>> SET JAVA_OPTS=-XX:UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled 
>> -XX:+CMSClassUnloadingEnabled
>>
>> -XX:MaxPermSize=128m
>>
>> Takk
>> Martin
>> ______________________________________________
>> Disclaimer and confidentiality note
>> Everything in this e-mail and any attachments relates to the official
>> business of Sender. This transmission is of a confidential nature and Sender
>> does not endorse distribution to any party other than intended recipient.
>> Sender does not necessarily endorse content contained within this
>> transmission.
>>
>>
>>
>>
>> ------------------------------
>> Date: Thu, 26 Feb 2009 14:37:58 +0100
>> Subject: Memory problems using axis2 tomcat and ssl
>> From: [email protected]
>> To: [email protected]
>>
>>
>> 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 the
>> 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 should.
>> Have anyone experienced anything similar? I've not altered any of the web
>> services just added the tomcat ssl connector and configured it like this
>>
>>  <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
>>                maxThreads="200" scheme="https" secure="true"
>>                clientAuth="false" sslProtocol="TLS" enableLookups="true"
>>                keystoreFile="${user.home}/my.jks"
>>                keystorePass="password" acceptCount="100"
>> minSpareThreads="5" maxSpareThreads="75"
>>                 disableUploadTimeout="true"
>> />
>>
>> I'm usign axis2-1.4.1, tomat 6.0.18
>>
>> cheers, Håkon
>>
>>
>> --
>> Håkon Sagehaug, Scientific Programmer
>> Parallab, Bergen Center for Computational Science (BCCS)
>> UNIFOB AS (University of Bergen Research Company)
>>
>> ------------------------------
>> Windows Live™: Discover 10 secrets about the new Windows Live. View 
>> post.<http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns%21550F681DAD532637%217540.entry?ocid=TXT_TAGLM_WL_t2_ugc_post_022009>
>>
>
>


-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

Reply via email to