Questions tagged [permgen]

In the Java Virtual Machine, the permanent generation (or permgen) is used for class definitions and associated metadata.

In the Java Virtual Machine, the permanent generation (or permgen) is used for class definitions and associated metadata.

References:

337 questions
25
votes
4 answers

How to analyze PermGen contents?

I want to get a dump of the PermGen to see why it is filling. Is there a way to analyze this? I already know about the common suspects like log4j, tomcat webapp reloading etc, but I have some custom proxy generation code in my application, too, and…
Daniel
  • 27,718
  • 20
  • 89
  • 133
24
votes
5 answers

Real Life, Practical Example of Using String.intern() in Java?

I've seen many primitive examples describing how String intern()'ing works, but I have yet to see a real-life use-case that would benefit from it. The only situation that I can dream up is having a web service that receives a considerable amount of…
Tom N
  • 241
  • 2
  • 3
24
votes
2 answers

What is Klass & KlassKlass

What is Klass & KlassKlass in JVM Hotspot Implementation? As far as I understood from the article Presenting the Perm Generation, Klass is the internal representation of a Java class (let's say A) & it will hold the basic information about the…
Vivek
  • 1,640
  • 1
  • 17
  • 34
22
votes
3 answers

How to dump Permgen?

I wanted to take the dump of the Permgen of a application server. I do not want to use -XX:+TraceClassLoading -XX:+TraceClassUnloading as i do not want to restart the server, Neither i want to use jconsole. I there any tool like jmap(used to heap…
Vikas Madhusudana
  • 1,482
  • 1
  • 10
  • 20
22
votes
8 answers

What can be done with 'PermGen out of space' exception in Tomcat-Spring-Hibernate web application?

We have an web application that uses Spring-Hibernate to persist registered users data in Oracle database. The application works fine in development environment, but when we copy it int live environment with much more data, it failed. Initially the…
igorg
21
votes
7 answers

Tomcat on production server, PermGen and redeploys

It looks like MemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space is a common problem. You can Increase the size of your perm space, but after 100 or 200 redeploys it will be full. Tracking ClassLoader memory leaks is nearly…
Piotr Gwiazda
  • 12,080
  • 13
  • 60
  • 91
20
votes
4 answers

Method Area and PermGen

I was trying to understand the memory structure of HotSpot JVM and got confused with the two terms "Method Area" and "PermGen" space. The docs I referred to say that Method Area contains the definition of classes and methods including the byte code.…
Ratheesh P Kumar
  • 233
  • 1
  • 2
  • 10
18
votes
2 answers

Is permgen included in -Xmx?

When I say -Xmx=1024m, does this include permgen i.e -XX:MaxPermSize= is taken from these 1024m or it is separate? Looking at this I thought that it takes from 1024m, but until now I had believed they were separate.
Vikas Madhusudana
  • 1,482
  • 1
  • 10
  • 20
18
votes
3 answers

Why is the default size of PermGen so small?

What would be the purpose of limiting the size of the Permgen space on a Java JVM? Why not always set it equal to the max heap size? Why does Java default to such a small number of 64MB? Are they trying to force people to notice permgen issues…
djangofan
  • 28,471
  • 61
  • 196
  • 289
18
votes
1 answer

Running out of PermGen space when using DeferredTasks in GAE 1.7.3

I switched to Google App Engine Java SDK 1.7.3 recently. Since then, I am running out of PermGen space every time I am submitting DeferredTasks into the task queue. This does not happen when the app is deployed to App Engine. It only happens…
Ingo
  • 1,552
  • 10
  • 31
17
votes
1 answer

Interned strings not in permgen?

I've run the jmap -heap command on our running Java application and here's what I got: C:\Program Files\Java\jdk1.7.0_05\bin>jmap -heap 2384 Attaching to process ID 2384, please wait... Debugger attached successfully. Server compiler…
Vic
  • 21,473
  • 11
  • 76
  • 97
15
votes
3 answers

what, besides Class objects, is stored in Perm Gen Space (sun 1.6 VM)?

I am seeing 'java.lang.OutOfMemoryError: PermGen space' while running ~300 JUnit tests and using Spring context. Having a tough time figuring out what's eating up PermGen since: in steady state the app consumes about 90m of permgen space I've tried…
Nikita
  • 6,019
  • 8
  • 45
  • 54
15
votes
1 answer

How to interpret the output from "jmap -permstat"?

I'm trying to troubleshoot a permgen leak, and wanted to ask you folks for your opinions on how to interpret the output from jmap -permstat. Let's say that I have a jmap -permstat report, like this: class_loader classes bytes …
Michael
  • 377
  • 1
  • 3
  • 12
13
votes
4 answers

Java Class (PermGen) Memory Leak (Web Applications) - Generic Solution?

I have a perm gen memory leak, that I know. Profiling using jvisualvm shows that when doing hot deployment (e.g. stop and start an application without killing the JVM, in tomcat, WebSphere, WebLogic etc) - the PermGen space is constantly…
Eran Medan
  • 44,555
  • 61
  • 184
  • 276
12
votes
5 answers

java.lang.OutOfMemoryError: PermGen space

i'm getting the following error "http-9000-5" java.lang.OutOfMemoryError: PermGen space org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: PermGen space. My…
jayavardhan
  • 587
  • 5
  • 9
  • 19
1
2
3
22 23