Please help with PermGen OutOfMemory error

2005-06-27 Thread Andy Kriger
After many webapp installs, I get this in my tomcat logs...

Exception in thread
ContainerBackgroundProcessor[StandardEngine[Catalina]]
java.lang.OutOfMemory
Error: PermGen space

MaxPermSize=128m, but the errors still happen. I understand that this
comes from apps not releasing all their resources. How do I track down
what part of my app is leaving these resources behind? I'm hoping for
pointers to tools/articles/blog entries - anything that'll let me
isolate this problem (hopefully to a part of my code that I can
actually fix as opposed to third party code I have no control over).

thx
andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help with PermGen OutOfMemory error

2005-06-27 Thread Phillip Qin
What is the version of your tomcat? 5.5 supposed to have resolved this issue
by flush reflection cache when undeploy your web app.

-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED] 
Sent: June 27, 2005 12:12 PM
To: tomcat-user@jakarta.apache.org
Subject: Please help with PermGen OutOfMemory error


After many webapp installs, I get this in my tomcat logs...

Exception in thread ContainerBackgroundProcessor[StandardEngine[Catalina]]
java.lang.OutOfMemory
Error: PermGen space

MaxPermSize=128m, but the errors still happen. I understand that this comes
from apps not releasing all their resources. How do I track down what part
of my app is leaving these resources behind? I'm hoping for pointers to
tools/articles/blog entries - anything that'll let me isolate this problem
(hopefully to a part of my code that I can actually fix as opposed to third
party code I have no control over).

thx
andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:42c02542251611437718752!


Re: Please help with PermGen OutOfMemory error

2005-06-27 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
 What is the version of your tomcat? 5.5 supposed to have resolved this issue
 by flush reflection cache when undeploy your web app.

  I get this with 5.5.9, using jdk 1.5, under Solaris 8, when I copy my
new beehive-based webapp into my webapps directory. After about 5-8 new
versions within a few hours then I get this error and have to restart
tomcat.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwDZhikQgpVn8xrARAmGqAJ90O/O0HFgB6cCL/PvpcqOldhoFPQCeJ60A
kPBnA55zhnUmNtiNp6z1iqU=
=s7n+
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help with PermGen OutOfMemory error

2005-06-27 Thread Phillip Qin
I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to
5.5, I have encountered any outofmemory even after 100 hundreds deployments.

Does your web app use struts? You can always clean up resource by adding
Introspector.flushCaches(); in your context listener's contextDestroyed
method. Otherwise, you will have to go through your web app carefully to
find out if there is any memory leak.

-Original Message-
From: James Black [mailto:[EMAIL PROTECTED] 
Sent: June 27, 2005 1:25 PM
To: Tomcat Users List
Subject: Re: Please help with PermGen OutOfMemory error


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
 What is the version of your tomcat? 5.5 supposed to have resolved this 
 issue by flush reflection cache when undeploy your web app.

  I get this with 5.5.9, using jdk 1.5, under Solaris 8, when I copy my new
beehive-based webapp into my webapps directory. After about 5-8 new versions
within a few hours then I get this error and have to restart tomcat.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwDZhikQgpVn8xrARAmGqAJ90O/O0HFgB6cCL/PvpcqOldhoFPQCeJ60A
kPBnA55zhnUmNtiNp6z1iqU=
=s7n+
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:42c03666260791431712512!


Re: Please help with PermGen OutOfMemory error

2005-06-27 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
 I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to
 5.5, I have encountered any outofmemory even after 100 hundreds deployments.
 
 Does your web app use struts? You can always clean up resource by adding
 Introspector.flushCaches(); in your context listener's contextDestroyed
 method. Otherwise, you will have to go through your web app carefully to
 find out if there is any memory leak.

  Struts is used in my beehive-based project
(http://incubator.apache.org/beehive), but I will need to check if there
is some memory leak otherwise.

  Thanx.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwEduikQgpVn8xrARAooaAJsEjG6T/a52rsNyIQjIPbbOP7nm7ACfepMP
ukLUqtHP8YY5mkK41AEdcFk=
=lOrA
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Please help with PermGen OutOfMemory error

2005-06-27 Thread Anoop kumar V
As per tools - I think you can use JMeter. It gives u some pretty
useful graphs and analysis.

-Anoop

On 6/27/05, James Black [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Phillip Qin wrote:
  I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to
  5.5, I have encountered any outofmemory even after 100 hundreds deployments.
 
  Does your web app use struts? You can always clean up resource by adding
  Introspector.flushCaches(); in your context listener's contextDestroyed
  method. Otherwise, you will have to go through your web app carefully to
  find out if there is any memory leak.
 
   Struts is used in my beehive-based project
 (http://incubator.apache.org/beehive), but I will need to check if there
 is some memory leak otherwise.
 
   Thanx.
 
 - --
 Love is mutual self-giving that ends in self-recovery. Fulton Sheen
 James Black[EMAIL PROTECTED]
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.1 (MingW32)
 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
 iD8DBQFCwEduikQgpVn8xrARAooaAJsEjG6T/a52rsNyIQjIPbbOP7nm7ACfepMP
 ukLUqtHP8YY5mkK41AEdcFk=
 =lOrA
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Thanks and best regards,
Anoop

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]