Hi Enrico,

Xmx is a hint to the vm for the java heap size not a rule, so if memory is being
leaked the heap will grow to as much memory as the vm can get, if not gc'd in
time the issue will remain.

You could try increase the -XX:PermSize=<value>.

but you can check out the faq's at
http://java.sun.com/docs/hotspot/gc1.4.2/faq.html it describes the various
memory spaces, Eden, Tenure and Perm. 

If you on a dual core machine try enable parallel GC.

HTH's a bit,
Dion

Quoting Enrico Goosen <[EMAIL PROTECTED]>:

> 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(ApplicationFi
> lterConfig.java:223)
> 
>       at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio
> nFilterConfig.java:304)
> 
>       at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilte
> rConfig.java:77)
> 
>       at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav
> a:3634)
> 
>       at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4217
> )
> 
>       at
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:302
> 4)
> 
>       at
> org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.j
> ava:432)
> 
>       at
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j
> ava:1277)
> 
>       at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
> essChildren(ContainerBase.java:1569)
> 
>       at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
> essChildren(ContainerBase.java:1578)
> 
>       at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
> essChildren(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.jav
> a:39)
> 
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.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.jav
> a:39)
> 
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.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(ApplicationFi
> lterConfig.java:223)
> 
>       at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio
> nFilterConfig.java:304)
> 
>       at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilte
> rConfig.java:77)
> 
>       at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav
> a:3634)
> 
>       at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4217
> )
> 
>       at
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:302
> 4)
> 
>       at
> org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.j
> ava:432)
> 
>       at
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j
> ava:1277)
> 
>       at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
> essChildren(ContainerBase.java:1569)
> 
>       at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
> essChildren(ContainerBase.java:1578)
> 
>       at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
> essChildren(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
> 
> 
> 
> > 
> 




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