• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

java out of memory error

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Today we experienced "java out of memory error : Permgen space". But we have java heap size value of 1GB.

While googled for this i found some thing like permgen space is a space where class files are being loaded and they were not unloaded and the scenario is termed as memory leak.

So i just want all your suggestions to get rid of this problem. And i cannot increase the java heap value as i have already assigned the maximum allowed value.

Kindly post your suggestions.

With Regards
Anish Kumar.V
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no simple answer to this common problem.

Any number of errors in your application programming could be at fault.

After a fresh start, how many requests are processed until you hit the error?

Have you used the Tomcat management app to watch changes in memory use?

Bill

 
Bartender
Posts: 20838
125
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The most common cause of this problem is when an application is redeployed "hot" in Tomcat6, and there are indications that it's actually somewhat of a bug. Certainly I'd never heard of it in Tomcat5.

The heap is not the PermGen space. There's a separate config parameter in the Oracle/Sun JVM for PermGen space. However, I played around with that parameter about 2 weeks ago to no avail. I'm hoping Tomcat7 is going to do better.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!