A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Java in General
Permgen space:outofmemory exception analysis
Joined: Nov 18, 2013
Feb 13, 2014 18:26:08
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
ut 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
Joined: Jul 04, 2006
Feb 13, 2014 21:09:27
Here you're talking about OutOfMemory error of
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
Reg Garbage Collection
GC (Boone's Exam 2)
java.lang.OutOfMemoryError: PermGen space
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014