Re: java.lang.OutOfMemoryError: PermGen space when we redeploy same application multiple times

2020-10-12 Thread Prabhu Gurunathan
Thanks Manuel Dominguez On Mon, Oct 12, 2020 at 5:51 PM Manuel Dominguez Sarmiento wrote: > > The articles in this page will be helpful: > https://java.jiderhamn.se/category/classloader-leaks/ > > On 12/10/2020 04:19, Mark Thomas wrote: > > On 11/10/2020 02:39, Prabhu Gurunathan wrote: > >> Hi

Re: java.lang.OutOfMemoryError: PermGen space when we redeploy same application multiple times

2020-10-12 Thread Manuel Dominguez Sarmiento
The articles in this page will be helpful: https://java.jiderhamn.se/category/classloader-leaks/ On 12/10/2020 04:19, Mark Thomas wrote: On 11/10/2020 02:39, Prabhu Gurunathan wrote: Hi All, We have an setup where we are using OpenJDK 1.7 and Tomcat 7.0.100 , in CentOs 7 Env . and we have

Re: java.lang.OutOfMemoryError: PermGen space when we redeploy same application multiple times

2020-10-12 Thread Prabhu Gurunathan
Thanks Mark , for your thoughts , will explore more and get back . On Mon, Oct 12, 2020 at 12:49 PM Mark Thomas wrote: > > On 11/10/2020 02:39, Prabhu Gurunathan wrote: > > Hi All, > > > > We have an setup where we are using OpenJDK 1.7 and Tomcat 7.0.100 , > > in CentOs 7 Env . and we have many

Re: java.lang.OutOfMemoryError: PermGen space when we redeploy same application multiple times

2020-10-12 Thread Mark Thomas
On 11/10/2020 02:39, Prabhu Gurunathan wrote: > Hi All, > > We have an setup where we are using OpenJDK 1.7 and Tomcat 7.0.100 , > in CentOs 7 Env . and we have many application deployed in > Tomcat/webapps and the common lib's needed for those apps are kept in > Tomcat/lib directory like log4j ,

Re: java.lang.OutOfMemoryError: PermGen space

2016-10-21 Thread Christopher Schultz
"grep". I had never even heard of FINDSTR before. - -chris > -Original Message- From: Christopher Schultz > [mailto:ch...@christopherschultz.net] Sent: 20 October 2016 17:40 > To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError: > PermGen space > &g

Re: java.lang.OutOfMemoryError: PermGen space

2016-10-21 Thread Christopher Schultz
mcat6w.exe the fields are all blank, hence >> trying to find out what the defaults are before I enter anything >> in them as I don't want to put in a lesser value then the >> defaults. >> >> -Original Message- From: André Warnier (tomcat) >> [mailto:a...@ice-s

RE: java.lang.OutOfMemoryError: PermGen space

2016-10-21 Thread Berneburg, Cris J. - US
Hi Jon -Original Message- From: Moore, Jon, Vodafone UK [mailto:jon.mo...@vodafone.com] Sent: Thursday, October 20, 2016 6:00 AM To: users@tomcat.apache.org Subject: java.lang.OutOfMemoryError: PermGen space > I have a problem where our customers application server stops > working

Re: java.lang.OutOfMemoryError: PermGen space

2016-10-21 Thread tomcat
-Original Message- From: André Warnier (tomcat) [mailto:a...@ice-sa.com] Sent: 21 October 2016 09:34 To: users@tomcat.apache.org Subject: Re: java.lang.OutOfMemoryError: PermGen space On 21.10.2016 09:46, Moore, Jon, Vodafone UK wrote: Thanks Chris. (and to everyone else who has replied) Yes I am

RE: java.lang.OutOfMemoryError: PermGen space

2016-10-21 Thread Moore, Jon, Vodafone UK
: 21 October 2016 09:34 To: users@tomcat.apache.org Subject: Re: java.lang.OutOfMemoryError: PermGen space On 21.10.2016 09:46, Moore, Jon, Vodafone UK wrote: > Thanks Chris. (and to everyone else who has replied) > > Yes I am a novice at Java as well. I support the IVR system th

Re: java.lang.OutOfMemoryError: PermGen space

2016-10-21 Thread tomcat
r Schultz [mailto:ch...@christopherschultz.net] Sent: 20 October 2016 17:40 To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError: PermGen space -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jon, On 10/20/16 6:00 AM, Moore, Jon, Vodafone UK wrote: I have a problem where our customers appl

RE: java.lang.OutOfMemoryError: PermGen space

2016-10-21 Thread Moore, Jon, Vodafone UK
Subject: Re: java.lang.OutOfMemoryError: PermGen space -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jon, On 10/20/16 6:00 AM, Moore, Jon, Vodafone UK wrote: > I have a problem where our customers application server stops working > intermittently and when we check the Tomcat logs

Re: java.lang.OutOfMemoryError: PermGen space

2016-10-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jon, On 10/20/16 6:00 AM, Moore, Jon, Vodafone UK wrote: > I have a problem where our customers application server stops > working intermittently and when we check the Tomcat logs we get the > message " java.lang.OutOfMemoryError: PermGen space"

Re: java.lang.OutOfMemoryError: PermGen space

2016-10-20 Thread tomcat
On 20.10.2016 12:00, Moore, Jon, Vodafone UK wrote: I have a problem where our customers application server stops working intermittently and when we check the Tomcat logs we get the message " java.lang.OutOfMemoryError: PermGen space" but the Tomcat service is still running, and we have to

Re: java.lang.OutOfMemoryError: PermGen space

2016-10-20 Thread Román Valoria
1. Bad memory settings or a java class having a memory leak. 2. The place to setup the values will depend if you run Tomcat as a Windows Service, from the tomcat7.exe or from the startup.bat. BTW, those are super outdated releases of OS, Java and Tomcat. On Thu, Oct 20, 2016 at 6:00 PM, Moore,

RE: java.lang.OutOfMemoryError: PermGen space

2010-07-16 Thread Caldarale, Charles R
From: Mehrotra, Anurag [mailto:amehro...@telebright.com] Subject: java.lang.OutOfMemoryError: PermGen space Off lately I have been running into PermGenSpace Out of memory errors. Are you reloading any webapps? Have you looked inside the heap to see what classes are consuming the PermGen

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Caldarale, Charles R
From: Bruce Wayne [mailto:chur...@gmail.com] Subject: java.lang.OutOfMemoryError: PermGen space I keep getting the following error: java.lang.OutOfMemoryError: PermGen space 1) Use JConsole or equivalent to verify that you are actually using 1G of PermGen. 2) Turn on -verbose:class just

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Jeffrey Janner
Bruce - You don't say if the JVM is 32-bit or 64-bit, but assuming the latter: 1) By splitting the Heap in half between NewGen and PermGen, you are leaving no room for OldGen, and I'm sure java is going to want to set aside some space for OldGen. So you are probably getting the error because

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: java.lang.OutOfMemoryError: PermGen space You don't say if the JVM is 32-bit or 64-bit Actually, he did: Architecture: amd64 JVM Version:1.6.0_16-b01 JVM Vendor: Sun Microsystems Inc. The architecture would

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Jeffrey Janner
: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Wednesday, September 16, 2009 9:31 AM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError: PermGen space Chuck - I couldn't tell from the post if the Architecture line meant hardware, OS, or JVM. And I'm under the impression from

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Jeffrey Janner
, September 16, 2009 9:31 AM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError: PermGen space Chuck - I couldn't tell from the post if the Architecture line meant hardware, OS, or JVM. And I'm under the impression from multiple re-reads of the Java tuning docs that ALL generations

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: java.lang.OutOfMemoryError: PermGen space I couldn't tell from the post if the Architecture line meant hardware, OS, or JVM. A little experimentation will show that the value is dependent on the mode of the JVM, despite

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: java.lang.OutOfMemoryError: PermGen space Something else Bruce can look into is if his apps are using common jar files that can be loaded into Shared space. That's almost always a bad idea, since it usually makes

Re: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Bruce Wayne
[mailto:jeffrey.jan...@polydyne.com] Sent: Wednesday, September 16, 2009 9:31 AM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError: PermGen space Chuck - I couldn't tell from the post if the Architecture line meant hardware, OS, or JVM. And I'm under the impression from multiple re-reads

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Jeffrey Janner
: Wednesday, September 16, 2009 9:31 AM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError: PermGen space Chuck - I couldn't tell from the post if the Architecture line meant hardware, OS, or JVM. And I'm under the impression from multiple re-reads of the Java tuning docs that ALL

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: java.lang.OutOfMemoryError: PermGen space See my other posts, I did re-read the tuning guide and it specifically states PermGen is part of Heap. The total heap (NewGen + OldGen + PermGen) is allocated in one contiguous

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Jeffrey Janner
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, September 16, 2009 9:51 AM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError: PermGen space From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Caldarale, Charles R
From: Bruce Wayne [mailto:chur...@gmail.com] Subject: Re: java.lang.OutOfMemoryError: PermGen space What's too many classes ? More than will fit in PermGen. Heap usage is around 1GB. You need to be more specific; post the sizes for each portion of the heap, including PermGen. Also

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: java.lang.OutOfMemoryError: PermGen space Here's another Sun doc that specifically states that PermGen is an area of the Heap. Paper != code. PermGen is logically part of the overall heap, but its size is not included

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Jeffrey Janner
List Subject: Re: java.lang.OutOfMemoryError: PermGen space What's too many classes ? I have JConsole running, and I see that across my 8 apps on one server, 14,000 classes are loaded. Heap usage is around 1GB.With the settings below, I am not seeing PermGen errors as of yet, although it's too

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Jeffrey Janner
Subject: RE: java.lang.OutOfMemoryError: PermGen space From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: java.lang.OutOfMemoryError: PermGen space See my other posts, I did re-read the tuning guide and it specifically states PermGen is part of Heap. The total heap (NewGen

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: java.lang.OutOfMemoryError: PermGen space It appeared each app loaded its own version of the library into PermGen That is correct, since each webapp has its own classloader. I stated before, I don't think

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Jeffrey Janner
16, 2009 9:54 AM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError: PermGen space From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: java.lang.OutOfMemoryError: PermGen space Something else Bruce can look into is if his apps are using common jar files that can

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Jeffrey Janner
I stated before, I don't think the MaxNewSize option is available anymore. You should be using NewRatio instead. MaxNewSize is still functional in 1.6; haven't looked in 1.7. Chuck, what good does it do to set this value? Is it any better than setting NewRatio? ***

RE: java.lang.OutOfMemoryError: PermGen space

2009-09-16 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: java.lang.OutOfMemoryError: PermGen space what good does it do to set this value? Unless I've got extremely predictable behavior from my webapps that never varies with time, load, phase of the moon, or whatever, I

RE: java.lang.OutOfMemoryError: PermGen space

2008-06-12 Thread Caldarale, Charles R
From: Shashidhar Rampally [mailto:[EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError: PermGen space I need to increase the heap space by adding -Xms128m -Xmx512m to either JAVA_OPTS or CATALINA_OPTS environment variable That won't help if you're running out of PermGen space. In my

Re: java.lang.OutOfMemoryError: PermGen space

2008-06-12 Thread Shashidhar Rampally
Thanks for the quick reply Chuck! I found java5w.exe immediately after I sent the email. Increasing the heap did not solve my issue. I had to increase the PermSize by setting -XX:MaxPermSize=256m Now I am getting some IO and RMI exceptions. However, they are all related to Alfrsco. Thanks again!

Re: java.lang.OutOfMemoryError: PermGen space

2007-11-16 Thread Edward Dowgiallo
I'm getting this error on a development server as we constantly redeploy the same app for testing. The problem does not occur until after several dozen redeployments. This makes sense since each redeployment contains new versions of some of the application's classes. Ed On 11/16/07, Peter

Re: java.lang.OutOfMemoryError: PermGen space

2007-11-16 Thread Martin Gainty
2 options will help Xerces consume less memory 1)turn OFF validation for any Documents created from the DocumentBuilderFactory e.g. factory.setValidating(false); 2)turn OFF namespace awareness for any Documents created from the DocumentBuilderFactory e.g. factory.setNamespaceAware(false); More

Re: java.lang.OutOfMemoryError: PermGen space

2007-11-16 Thread loredana loredana
into the xerces solution. 10x - Original Message From: Martin Gainty [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, November 16, 2007 4:53:42 PM Subject: Re: java.lang.OutOfMemoryError: PermGen space 2 options will help Xerces consume less memory 1)turn OFF

RE: java.lang.OutOfMemoryError: PermGen space

2007-11-16 Thread Peter Crowther
From: loredana loredana [mailto:[EMAIL PROTECTED] I'm having some problems figuring out what webapp is causing this problem. It's not simple! However, the main use for PermGen is storage for classes. Do you have any webapps that dynamically generate classes? Is it happening when you

Re: java.lang.OutOfMemoryError: PermGen space

2007-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ed, Edward Dowgiallo wrote: I'm getting this error on a development server as we constantly redeploy the same app for testing. The problem does not occur until after several dozen redeployments. This makes sense since each redeployment contains

RE: java.lang.OutOfMemoryError: PermGen space .

2007-02-21 Thread Peter Crowther
From: Muruganantham [mailto:[EMAIL PROTECTED] *java.lang.OutOfMemoryError: PermGen space* . http://tomcat.apache.org/faq/memory.html - search for MaxPermSize. - Peter - To start a new topic, e-mail:

Re: java.lang.OutOfMemoryError: PermGen space .

2007-02-21 Thread Mohan Wickramasinghe
try setting in JVM paramerter MaxPermSize=256m (if using linux) hi, I am using RHEL 4 and Tomcat. I have restarted my tomcat. After restarting my Tomcat server i am getting the following error while i try to view some jsp pages *java.lang.OutOfMemoryError: PermGen space* . Please any

Re: java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread Ingo Rockel
Hi, Your Permanent Generation is running out of memory, this is a special space in the vm memory, where the vm stores all of its internal data (classes, etc.). You should pass -XX:+PrintGCDetails to the VM to see how much perm-space is used. If you have a lot of third-party-libraries etc.

Re: java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread William Bonnet
Hi I have many memory consuming apps on my tomcat server. I a lot pdf excel generation. So every other week I get this error java.lang.OutOfMemoryError: PermGen space Try to add more space for PermGen using -XX:MaxPermSize=256m I think default is 64 megs Kind regards, -- William

Re: java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread Christian Reichlin
hi, if you have a lot of different webapps with the same third party libs in the WEB-INF/lib folder it might help if you move them to the shared/lib folder. i recommend to put only the third party libs there, who are definitely the same for all webapps, for example jdbc-driver and similar

Re: java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread Antonio Petrelli
Peter Neu ha scritto: Hello, I have many memory consuming apps on my tomcat server. I a lot pdf excel generation. So every other week I get this error java.lang.OutOfMemoryError: PermGen space http://wiki.apache.org/tomcat/OutOfMemory HTH Antonio

Re: java.lang.OutOfMemoryError: PermGen space

2005-12-28 Thread Rodrigo Ruiz
I guess it does not. Such an action should be considered a responsibility of the web application. Anyway, you could suggest this in the Tomcat bug list as a new feature. Surely, it will not hurt ;-D Regards, Rodrigo Ruiz On 12/23/05, Durfee, Bernard [EMAIL PROTECTED] wrote: Does Tomcat call

Re: java.lang.OutOfMemoryError: PermGen space

2005-12-23 Thread Stephen Caine
Chuck, For starters, I'd try -verbose:gc and perhaps -verbose:class to give you a general idea of what's happening when. There are many flavors of profilers out there, a lot of them free. (Our customers tend to go for the premium stuff like Wily Introscope, which definitely isn't

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-23 Thread Durfee, Bernard
Does Tomcat call releaseAll() when a web-app is undeployed? Bernie - It is very common to find a declaration like this: private static final Log log = LogFactory.getLog(MyClass.class); From the commons-logging API documentation: LogFactory needs to keep a static map of

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Warren Lewis
You probably will need to update the setting of -XX:MaxPermSize= I believe the default value is 64m. cheers - Warren -Original Message- From: Mike Dippold [mailto:[EMAIL PROTECTED] Sent: Thursday, December 22, 2005 1:57 PM To: users@tomcat.apache.org Subject:

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Mike Dippold
Wont that just give me more time between having to restart? Is it normal to have permgen space fill up and never get it back? -- Original Message -- From: Warren Lewis [EMAIL PROTECTED] Date: Thu, 22 Dec 2005 14:07:40 -0500 You probably will need to

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Durfee, Bernard
I've seen the same thing with 5.5.12 running Confluence and JIRA. I needed to bounce Tomcat after making a bunch of changes to the JIRA workflow, which triggered lot's of processing. I assumed it was a JIRA problem, but maybe it is related to Tomcat 5.5.12? I haven't had the problem since, that

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Carl Olivier
[mailto:[EMAIL PROTECTED] Sent: 22 December 2005 20:25 To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError: PermGen space I've seen the same thing with 5.5.12 running Confluence and JIRA. I needed to bounce Tomcat after making a bunch of changes to the JIRA workflow, which triggered lot's

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Caldarale, Charles R
From: Carl Olivier [mailto:[EMAIL PROTECTED] Subject: RE: java.lang.OutOfMemoryError: PermGen space Additionally - AFAIK this PermGenSpace does NOT get cleared by the Garbage collector - and only a restart of the JVM will rid you of that used space. Not really true. A full GC does clean

Re: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Stephen Caine
Mike, We are using tomcat 5.5.12 and every couple days the tomcat server goes down hard and the last line in the log is: java.lang.OutOfMemoryError: PermGen space It appears to only happen if we: Update jsp pages Reload Webapp Deploy Webapp If we do not do any of the following the server

Re: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Stephen Caine
Chuck, I can only speculate that reducing the size of the NewGen area (due to the larger value of NewRatio) forced more frequent collections of recently allocated objects, thereby eliminating some class object references. Without knowing a lot more about your applications and doing some

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Caldarale, Charles R
From: Stephen Caine [mailto:[EMAIL PROTECTED] Subject: Re: java.lang.OutOfMemoryError: PermGen space Thank you for your thoughts. I am using a Quad 4 Mac OS X with a 1.4.2 JVM. Any recommendations for testing tools so I can monitor memory allocations, garbage collection and the like