Thanks for the article Dion - it explains the situation beautifully. I've been 
suffering with the same issue for a while and the resolution was to increase 
the MaxPermSize as describe by Renier: *XX:MaxPermSize=128M. It's nice now to 
know what causes the problem.

I've had to increase the MaxPermSize for our production Tomcat and JBoss 
servers (never Eclipse though, since Tomcat runs in it's own JVM).

Paul





>>> [EMAIL PROTECTED] 01/30/07 1:28 PM >>>


Very relevant the issue:
http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java



Quoting Brian Silberbauer < [EMAIL PROTECTED] >:

>
> Wow! There's quite a lot of theories and finger pointing on this, I'd
> love to hear if you found a way around this one, Enrico.
>
> Have you tried upgrading the VM?
>
> You can use jconsole to monitor the VM's memory usage and watch the
> permgen space increase everytime you reload your webapp.
>
> Brian
>
>
> On 1/30/07, Brian Silberbauer < [EMAIL PROTECTED] > wrote:
> > Hi Enrico
> >
> > I can confirm this too. From what I remember; classes loaded into
> > permgen space are those that the vm feels will last the life cycle of
> > your application and are never checked for garbage collection. So,
> > classes from your webapp put into perm space accumulate everytime you
> > reload your webapp :(
> >
> > I seem to remember mustang helping in this situation, but I can't confirm.
> >
> > Brian
> >
> >
> > On 1/30/07, Enrico Goosen < [EMAIL PROTECTED] > wrote:
> > >
> > >
> > >
> > >
> > > Hi All,
> > >
> > >
> > >
> > > Has anyone experienced this problem, and found a solution to it?
> > >
> > > I'm experiencing this error in Eclipse 3.2, running Tomcat 5.5.20.
> > >
> > >
> > >
> > > I've edited Eclipse.ini as follows:
> > >
> > > -vmargs
> > >
> > > -Xms512m
> > >
> > > -Xmx1024m
> > >
> > >
> > >
> > > I've also edited Tomcat's VM arguments to the same values, but having no
> > > luck.
> > >
> > >
> > >
> > > I'm not sure if this is an Eclipse problem or a Tomcat problem, but it
> > > occurs when Tomcat tries to reload a web context.
> > >
> > >
> > >
> > > Here's a stack trace:
> > >
> > >
> > >
> > > 2007/01/30 11:32:14
> > > org.apache.catalina.core.StandardContext reload
> > >
> > > INFO: Reloading this Context has started
> > >
> > > jdbc.con.close
> > >
> > > jdbc.con.close
> > >
> > > 16
> > > [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> > > ERROR
> > > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/capri]
> > > - Exception starting filter JDOFilter
> > >
> > > javax.jdo.JDOFatalUserException: Exception thrown by
> > > getPersistenceManagerFactory(Properties)
> > >
> > > NestedThrowables:
> > >
> > > java.lang.reflect.InvocationTargetException
> > >
> > > at
> > > javax.jdo.JDOHelper.getPersistenceManagerFactory(Unknown
> > > Source)
> > >
> > > at
> > > javax.jdo.JDOHelper.getPersistenceManagerFactory(Unknown
> > > Source)
> > >
> > > at
> > > za.co.metcapri.common.util.JDOContext.initialize(JDOContext.java:88)
> > >
> > > at
> > > za.co.metcapri.common.web.JDOFilter.init(JDOFilter.java:61)
> > >
> > > at
> > >
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
> > >
> > > at
> > >
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
> > >
> > > at
> > >
>
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
> > >
> > > at
> > >
>
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
> > >
> > > at
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
> > >
> > > at
> > >
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:3024)
> > >
> > > at
> > >
>
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
> > >
> > > at
> > >
>
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1277)
> > >
> > > at
> > >
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
> > >
> > > at
> > >
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
> > >
> > > at
> > >
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
> > >
> > > at
> > >
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
> > >
> > > at java.lang.Thread.run(Thread.java:595)
> > >
> > > Caused by: java.lang.reflect.InvocationTargetException
> > >
> > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >
> > > at
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >
> > > at
> > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >
> > > at java.lang.reflect.Method.invoke(Method.java:585)
> > >
> > > ... 17 more
> > >
> > > Caused by: java.lang.OutOfMemoryError: PermGen space
> > >
> > > NestedThrowablesStackTrace:
> > >
> > > java.lang.reflect.InvocationTargetException
> > >
> > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >
> > > at
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >
> > > at
> > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >
> > > at java.lang.reflect.Method.invoke(Method.java:585)
> > >
> > > at
> > > javax.jdo.JDOHelper.getPersistenceManagerFactory(Unknown
> > > Source)
> > >
> > > at
> > > javax.jdo.JDOHelper.getPersistenceManagerFactory(Unknown
> > > Source)
> > >
> > > at
> > > za.co.metcapri.common.util.JDOContext.initialize(JDOContext.java:88)
> > >
> > > at
> > > za.co.metcapri.common.web.JDOFilter.init(JDOFilter.java:61)
> > >
> > > at
> > >
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
> > >
> > > at
> > >
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
> > >
> > > at
> > >
>
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
> > >
> > > at
> > >
>
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
> > >
> > > at
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
> > >
> > > at
> > >
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:3024)
> > >
> > > at
> > >
>
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
> > >
> > > at
> > >
>
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1277)
> > >
> > > at
> > >
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
> > >
> > > at
> > >
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
> > >
> > > at
> > >
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
> > >
> > > at
> > >
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
> > >
> > > at java.lang.Thread.run(Thread.java:595)
> > >
> > > Caused by: java.lang.OutOfMemoryError: PermGen space
> > >
> > > 2007/01/30 11:32:24
> > > org.apache.catalina.core.StandardContext start
> > >
> > > SEVERE: Error filterStart
> > >
> > > 2007/01/30 11:32:24
> > > org.apache.catalina.core.StandardContext start
> > >
> > > SEVERE: Context [/capri] startup failed due to previous errors
> > >
> > >
> > >
> > > Enrico Goosen
> > >
> > > Software Developer
> > >
> > > Metropolitan Employee Benefits
> > >
> > > Email: [EMAIL PROTECTED]
> > >
> > > Direct: 021 940 6231
> > >
> > > Fax: 021 917 3089
> > >
> > > Mobile: 083 305 5676
> > >
> > >
> > >
> > > Metropolitan is an authorised Financial Services Provider.
> > >
> > > NOTE: This e-mail (including attachments) is subject to the
> restrictions,
> > > qualifications and disclaimers (the "disclaimer") published at
> > > http://www.metropolitan.co.za Please read the disclaimer before opening
> any
> > > attachments or taking any other action in terms of this e-mail.
> > > If you cannot access the disclaimer, kindly send an e-mail to
> > > [EMAIL PROTECTED] or contact
> > > [EMAIL PROTECTED] and a copy will be sent to you.
> > > By reading this e-mail or opening any attachment you agree to be bound
> by
> > > the provisions of the disclaimer.
> > >
> > > Web: http://www.metropolitan.co.za/
> > > Disclaimer:
> > > http://www.metropolitan.co.za/email_disclaimer.html
> > >
> > >
> > > Metropolitan Life subscribes to KPMG, a completely independent crime
> > > disclosure service - make a contribution to the establishment of a fraud
> > > free environment by reporting any suspicion to the KPMG Hotline
> > >
> > > * RSA 0800 22 14 18
> > > * NAMIBIA 0800 00 00 77
> > >
> > >
> > > > >
> > >
> >
> >
> > --
> > Brian Silberbauer
> > Consultant
> >
> > +27 (0)83 566 2705
> > skype: brian.silberbauer
> >
>
>
> --
> Brian Silberbauer
> Consultant
>
> +27 (0)83 566 2705
> skype: brian.silberbauer
>
> >
>









SANTAM Bpk / Ltd
Reg. No. 1918/001680/06

Directors: DK Smith (Chairman), SC Gilbert (Chief Executive), S Bray (Company 
Secretary), BTPKM Gamedze, JJ Geldenhuys, JG le Roux, Dr NM Magau,AR Martin, JP 
Moller, RK Morathi, P de V Rademeyer, J Rowse,GE Rudman, Dr J van Zyl, BP 
Vundla, MJ Reyneke (Executive)

Please note: This email and its content are subject to the disclaimer as 
displayed at the following link http://www.santam.co.za/disclaimer.htm. Should 
you not have Web access, send a mail to [EMAIL PROTECTED] and a copy will be 
emailed to you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
-~----------~----~----~----~------~----~------~--~---

Reply via email to