Archive for the 'PermGen' Category

The What and Why of fixing java.lang.OutOfMemoryError: PermGen space

The permanent generation is the area of heap that holds all the reflective data of the virtual machine itself, such as class and method objects (also called “method area” in The Java Virtual Machine Specification).

Translation: PermGen holds the information that makes the JVM work.

Why do you care?

If an application loads “too many” [...]

Java JVM, PermGen and String.intern(): More tips about dealing with those pesky OutOfMemory errors.

I got pingback from haakon on a great post entitled Java Permgen space, String.intern, XML parsing. I always love a good debugging session story, when you throw in a memory leak that’s an instant Nerdgasm. This post covers String.intern() , a bit more about Classloaders, and leaves you with a great tools [...]

Java JVM GC, PermGen, and Memory Options

I’m still new to Java and so, I still am reading about the nitty-gritty, so when I ran into a situation with some code where we were running out of PermGen space I had to do some reading. In the JVM, PermGen holds the metadata about classes that have been loaded/created. This information [...]