|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
java.lang.OutOfMemoryError: PermGen spaceHello,
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 I know the root of this error is that the garbage collector does not clean up and memory allocated for java object generation is used up. But what can I do about it? If I allocate more memory I'm only postponing the problem. So do I have to shutdown every day my tomcat server to ensure the deletion of unused objects or Will only a tomcat cluster help in this case? I also read the archives but could not find any useful explenation. I defined max memory usage for 2 Gig with the Catalina_Opts variable in my start script. CATALINA_OPTS="-Xmx2048m -Xms1536m" Tomcat 5.5.9 Java 1.5.0_04-b05 SuSE Linux ES 9 Cheers, Pete SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor10" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor11" Exception in thread "TP-Processor1" java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor7" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor6" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor2" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor12" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor5" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor9" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor16" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor15" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor14" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor13" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor20" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor18" Exception in thread "TP-Processor19" java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor17" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor24" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor23" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor22" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor21" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor28" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor27" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor26" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor25" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor32" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor30" Exception in thread "TP-Processor29" Exception in thread "TP-Processor31" java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor36" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor35" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor34" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor33" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor39" Exception in thread "TP-Processor37" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor40" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor38" java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor44" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor43" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor41" Exception in thread "TP-Processor48" java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor42" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor46" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor47" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor45" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor52" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor51" java.lang.OutOfMemoryError: PermGen space Exception in thread "TP-Processor50" java.lang.OutOfMemoryError: PermGen space |
|
|
Re: java.lang.OutOfMemoryError: PermGen spaceHi,
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. your permanent space might be to small, adjust using: -XX:MaxPermSize=<newvalue> see here for options: http://java.sun.com/docs/hotspot/VMOptions.html regards, Ingo Peter Neu schrieb: > 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 > > > > I know the root of this error is that the garbage collector does not clean > up and memory allocated > > for java object generation is used up. But what can I do about it? If I > allocate more memory I'm only postponing > > the problem. So do I have to shutdown every day my tomcat server to ensure > the deletion of unused objects or > > Will only a tomcat cluster help in this case? I also read the archives but > could not find any useful explenation. > > > > I defined max memory usage for 2 Gig with the Catalina_Opts variable in my > start script. CATALINA_OPTS="-Xmx2048m -Xms1536m" > > > > Tomcat 5.5.9 > > Java 1.5.0_04-b05 > > SuSE Linux ES 9 > > > > Cheers, > > > > Pete > > > > > > > > > > SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception > > java.lang.OutOfMemoryError: PermGen space > > Exception in thread "TP-Processor10" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor11" Exception in thread "TP-Processor1" > java.lang.OutOfMemoryError: PermGen space > > java.lang.OutOfMemoryError: PermGen space > > Exception in thread "TP-Processor7" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor6" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor2" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor12" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor5" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor9" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor16" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor15" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor14" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor13" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor20" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor18" Exception in thread "TP-Processor19" > java.lang.OutOfMemoryError: PermGen space > > java.lang.OutOfMemoryError: PermGen space > > Exception in thread "TP-Processor17" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor24" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor23" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor22" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor21" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor28" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor27" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor26" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor25" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor32" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor30" Exception in thread "TP-Processor29" > Exception in thread "TP-Processor31" java.lang.OutOfMemoryError: PermGen > space > > java.lang.OutOfMemoryError: PermGen space > > java.lang.OutOfMemoryError: PermGen space > > Exception in thread "TP-Processor36" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor35" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor34" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor33" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor39" Exception in thread "TP-Processor37" > java.lang.OutOfMemoryError: PermGen space > > Exception in thread "TP-Processor40" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor38" java.lang.OutOfMemoryError: PermGen > space > > java.lang.OutOfMemoryError: PermGen space > > Exception in thread "TP-Processor44" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor43" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor41" Exception in thread "TP-Processor48" > java.lang.OutOfMemoryError: PermGen space > > java.lang.OutOfMemoryError: PermGen space > > Exception in thread "TP-Processor42" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor46" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor47" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor45" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor52" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor51" java.lang.OutOfMemoryError: PermGen > space > > Exception in thread "TP-Processor50" java.lang.OutOfMemoryError: PermGen > space > > > > > > > > > > -- PIRONET NDH AG Dipl. Inf. Ingo Rockel - Produktentwicklung Maarweg 149-161, 50825 Koeln Tel.: +49 (0)221-770-1788 / Fax: +49 (0)221-770-1005 mailto:irockel@... - http://www.pironet-ndh.com --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: java.lang.OutOfMemoryError: PermGen spaceHi
> 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 Bonnet SunWizard - Le site francais dédié aux amateurs de stations Unix http://www.sunwizard.net --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: java.lang.OutOfMemoryError: PermGen spacehi,
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 things. this helps because otherwise they are all loaded by a different classloader so they all need for each webapp some permGen space. does it needs some redeploys of webapps till the memory exception ocures? in this case the class loader of the undeployed webapp can't be garbage collected and all the classdefinitions remain in memory for ever... or until tomcat is restarted. regards chris Ingo Rockel wrote: > 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. your permanent space might be to small, > adjust using: > > -XX:MaxPermSize=<newvalue> > > see here for options: > > http://java.sun.com/docs/hotspot/VMOptions.html > > regards, > > Ingo > > Peter Neu schrieb: > >> 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 >> >> >> >> I know the root of this error is that the garbage collector does not >> clean >> up and memory allocated >> for java object generation is used up. But what can I do about it? If I >> allocate more memory I'm only postponing >> >> the problem. So do I have to shutdown every day my tomcat server to >> ensure >> the deletion of unused objects or >> >> Will only a tomcat cluster help in this case? I also read the >> archives but >> could not find any useful explenation. >> >> >> >> I defined max memory usage for 2 Gig with the Catalina_Opts variable >> in my >> start script. CATALINA_OPTS="-Xmx2048m -Xms1536m" >> >> >> >> Tomcat 5.5.9 >> >> Java 1.5.0_04-b05 >> >> SuSE Linux ES 9 >> >> >> >> Cheers, >> >> >> >> Pete >> >> >> >> >> >> >> >> >> >> SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception >> >> java.lang.OutOfMemoryError: PermGen space >> >> Exception in thread "TP-Processor10" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor11" Exception in thread "TP-Processor1" >> java.lang.OutOfMemoryError: PermGen space >> >> java.lang.OutOfMemoryError: PermGen space >> >> Exception in thread "TP-Processor7" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor6" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor2" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor12" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor5" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor9" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor16" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor15" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor14" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor13" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor20" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor18" Exception in thread >> "TP-Processor19" >> java.lang.OutOfMemoryError: PermGen space >> >> java.lang.OutOfMemoryError: PermGen space >> >> Exception in thread "TP-Processor17" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor24" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor23" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor22" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor21" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor28" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor27" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor26" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor25" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor32" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor30" Exception in thread >> "TP-Processor29" >> Exception in thread "TP-Processor31" java.lang.OutOfMemoryError: PermGen >> space >> >> java.lang.OutOfMemoryError: PermGen space >> >> java.lang.OutOfMemoryError: PermGen space >> >> Exception in thread "TP-Processor36" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor35" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor34" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor33" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor39" Exception in thread >> "TP-Processor37" >> java.lang.OutOfMemoryError: PermGen space >> >> Exception in thread "TP-Processor40" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor38" java.lang.OutOfMemoryError: PermGen >> space >> >> java.lang.OutOfMemoryError: PermGen space >> >> Exception in thread "TP-Processor44" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor43" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor41" Exception in thread >> "TP-Processor48" >> java.lang.OutOfMemoryError: PermGen space >> >> java.lang.OutOfMemoryError: PermGen space >> >> Exception in thread "TP-Processor42" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor46" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor47" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor45" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor52" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor51" java.lang.OutOfMemoryError: PermGen >> space >> >> Exception in thread "TP-Processor50" java.lang.OutOfMemoryError: PermGen >> space >> >> >> >> >> >> >> >> >> >> > > --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: java.lang.OutOfMemoryError: PermGen spacePeter 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 --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
AW: java.lang.OutOfMemoryError: PermGen spaceHello,
thanks for the many replies. I do have many third party libaries (struts, fop etc.) so that could cause it. I also have a singleton pattern which is used many times because it hands out database connections. I will set the MaxPermSize variable in the CATALINA_OPTS variable and see what happens. The problem whith PermGen space also occurs when I redeploy too often in a short amount of time. Does that point in any direction? Cheers, Pete -----Ursprüngliche Nachricht----- Von: Antonio Petrelli [mailto:brenmcguire@...] Gesendet: Dienstag, 6. Juni 2006 15:38 An: Tomcat Users List Betreff: Re: java.lang.OutOfMemoryError: PermGen space 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 --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: AW: java.lang.OutOfMemoryError: PermGen space> The problem whith PermGen space also occurs when I redeploy too often in a
> short amount of time. Does that point in any direction? it points to the "class loader not released-problem" or at least to a "class loader not released immediately-problem". some more infos: http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 Peter Neu wrote: >Hello, > >thanks for the many replies. I do have many third party libaries (struts, >fop etc.) so that could cause it. I also have a singleton pattern which is >used many times because it hands out database connections. > >I will set the MaxPermSize variable in the CATALINA_OPTS variable and see >what happens. > >The problem whith PermGen space also occurs when I redeploy too often in a >short amount of time. Does that point in any direction? > >Cheers, >Pete > > >-----Ursprüngliche Nachricht----- >Von: Antonio Petrelli [mailto:brenmcguire@...] >Gesendet: Dienstag, 6. Juni 2006 15:38 >An: Tomcat Users List >Betreff: Re: java.lang.OutOfMemoryError: PermGen space > >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 > >--------------------------------------------------------------------- >To start a new topic, e-mail: users@... >To unsubscribe, e-mail: users-unsubscribe@... >For additional commands, e-mail: users-help@... > > > > >--------------------------------------------------------------------- >To start a new topic, e-mail: users@... >To unsubscribe, e-mail: users-unsubscribe@... >For additional commands, e-mail: users-help@... > > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |