[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Tip of the day: Solved problem with Out of memory error when restarting a tomcat application  XML
Forum Index -> Development
Author Message
hilka

Power User

Joined: 23/11/2007 09:00:08
Messages: 191
Offline

We had the problem that we got a OutOfMemoryException (PermGenSpace) after two refreshs (the right refresh button in the jsp view) from Captain casa's development workspace.

I found a solution for this problem: just increase the size of the MaxPermGenSpace (default 64M) to some higher amount. Afterwards, this Exception will occur later, but sometimes it is good to restart the tomcat anyways ;-)...

The problem is that Tomcat holds all class information in this area and does not clean this properly upon a reload.

To increase the amount of memory just add -XX:MaxPermSize=256m to your Tomcat vm.

More information can be found in Tomcat wiki. Search for OutOfMemory.

Tobias
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team