aspose file tools*
The moose likes Tomcat and the fly likes java out of memory error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "java out of memory error" Watch "java out of memory error" New topic
Author

java out of memory error

anish kumarv
Greenhorn

Joined: May 09, 2011
Posts: 7
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
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
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


Java Resources at www.wbrogden.com
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15662
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java out of memory error
 
Similar Threads
Issue in Eclipse 3.5 Galileo (PermGen Space Error and Out of memory error)
Instantiates Logger as STATIC
Grails memory usage
How to read memory usage for process running in Linux,
BEA 10 Admin server out of memory issue