Hi,

I've edited eclipse.ini as per Jeff's email below, and that seems to
have fixed the problem. 

I wasn't able to get JConsole working.
I added this to eclipse.ini:
-Dcom.sun.management.jmxremote

I also added it to the Tomcat VM args, but when I startup JConsole via
the command line, it doesn't display any running Java processes.
Any ideas Brian?

PS. I'm trying to monitor my webapp running on Tomcat via Eclipse. 
From the JConsole examples I've seen, it seems to work fine for java
applications started via command line.

Furthermore, I am now getting another exception on context reload:

2007/01/30 01:29:10 org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
pm.closed
pm.closed
jdbc.con.close
jdbc.con.close
jdbc.con.close
2007/01/30 01:29:11 org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load org.apache.log4j.spi.VectorWriter.  The
eventual following stack trace is caused by an error thrown for
debugging purposes as well as to attempt to terminate the thread which
caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1241)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1201)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at
org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:145)
        at org.apache.log4j.Category.forcedLog(Category.java:372)
        at org.apache.log4j.Category.log(Category.java:864)
        at
org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:198)
        at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:
411)
        at
org.apache.catalina.session.StandardManager.load(StandardManager.java:32
0)
        at
org.apache.catalina.session.StandardManager.start(StandardManager.java:6
36)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4161
)
        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)
2007/01/30 01:29:11 org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load org.apache.log4j.spi.VectorWriter.  The
eventual following stack trace is caused by an error thrown for
debugging purposes as well as to attempt to terminate the thread which
caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1241)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1201)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at
org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:145)
        at org.apache.log4j.Category.forcedLog(Category.java:372)
        at org.apache.log4j.Category.log(Category.java:864)
        at
org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:198)
        at
org.apache.catalina.session.StandardManager.start(StandardManager.java:6
38)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4161
)
        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)
2007/01/30 01:29:11 org.apache.commons.modeler.Registry
registerComponent
SEVERE: Null component
Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/capri,J2EEApplic
ation=none,J2EEServer=none
2007/01/30 01:29:11
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
processChildren
SEVERE: Exception invoking periodic operation: 
java.lang.NoClassDefFoundError: org/apache/log4j/spi/VectorWriter
        at
org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:145)
        at org.apache.log4j.Category.forcedLog(Category.java:372)
        at org.apache.log4j.Category.log(Category.java:864)
        at
org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:198)
        at
org.apache.catalina.session.StandardManager.start(StandardManager.java:6
38)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4161
)
        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)




-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of [EMAIL PROTECTED]
Sent: 30 January 2007 11:46 AM
To: [email protected]
Subject: [CTJUG Forum] Re: java.lang.OutOfMemoryError: PermGen space


Hi

Yep, far too often.... I run eclipse 3.2 with JBoss 4.0.4

To set the Perm Mem, use the following params; Ilanded up setting the 
eclipse.ini and the JBoss configuration within eclipse.

-XX:PermSize=128M
-XX:MaxPermSize=256M

Hope this helps....
Cheers
Jeff Singer


Enrico Goosen 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(_ApplicationF
ilterConfig.java:223_)
>
> at 
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(_Applicati
onFilterConfig.java:304_)
>
> at 
>
org.apache.catalina.core.ApplicationFilterConfig.<init>(_ApplicationFilt
erConfig.java:77_)
>
> at 
>
org.apache.catalina.core.StandardContext.filterStart(_StandardContext.ja
va:3634_)
>
> at 
>
org.apache.catalina.core.StandardContext.start(_StandardContext.java:421
7_)
>
> at 
>
org.apache.catalina.core.StandardContext.reload(_StandardContext.java:30
24_)
>
> 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.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.ja
va:39_)
>
> at 
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAccesso
rImpl.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.ja
va:39_)
>
> at 
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAccesso
rImpl.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(_ApplicationF
ilterConfig.java:223_)
>
> at 
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(_Applicati
onFilterConfig.java:304_)
>
> at 
>
org.apache.catalina.core.ApplicationFilterConfig.<init>(_ApplicationFilt
erConfig.java:77_)
>
> at 
>
org.apache.catalina.core.StandardContext.filterStart(_StandardContext.ja
va:3634_)
>
> at 
>
org.apache.catalina.core.StandardContext.start(_StandardContext.java:421
7_)
>
> at 
>
org.apache.catalina.core.StandardContext.reload(_StandardContext.java:30
24_)
>
> 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.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]
<mailto:[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
>
>
> >


-- 



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