File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Permgen space:outofmemory exception analysis" Watch "Permgen space:outofmemory exception analysis" New topic

Permgen space:outofmemory exception analysis

RabiDas Sharma
Ranch Hand

Joined: Nov 18, 2013
Posts: 69
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

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: 236
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:
subject: Permgen space:outofmemory exception analysis
It's not a secret anymore!