File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Permgen space:outofmemory exception analysis

 
RabiDas Sharma
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 236
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic