File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Permgen space:outofmemory exception analysis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Permgen space:outofmemory exception analysis" Watch "Permgen space:outofmemory exception analysis" New topic
Author

Permgen space:outofmemory exception analysis

RabiDas Sharma
Ranch Hand

Joined: Nov 18, 2013
Posts: 69
Hi
when jvm is short of memory then it uses garbage collector for
removing all objects in heap which are not referenced anymore.

so my tech lead says to close all connections other wise i may end up
with permgenut of memory exception.

which is basically caused when no. of class files are more in the web app
or if the class files are not garbage collected even though the some web app is
undeployed.

why this happens? why the class files of some app are not garbage collected even though
app is undeployed.


thanks in advance
Surendra Kumar
Ranch Hand

Joined: Jul 04, 2006
Posts: 235
Here you're talking about OutOfMemory error of servlet container (not of your app).
Servlet Container has it's own classes etc.
You may get this error if the initial PermGen size is small.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Permgen space:outofmemory exception analysis