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
1242
votes
34 answers

Dealing with "java.lang.OutOfMemoryError: PermGen space" error

Recently I ran into this error in my web application: java.lang.OutOfMemoryError: PermGen space It's a typical Hibernate/JPA + IceFaces/JSF application running on Tomcat 6 and JDK 1.6. Apparently this can occur after redeploying an application a…
Chris
  • 632
  • 4
  • 11
  • 18
243
votes
6 answers

PermGen elimination in JDK 8

I have installed JDK 8 and trying to run Eclipse. I am getting following warning message: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0 What are the reasons for ignoring this VM option?
Shamim Ahmmed
  • 8,265
  • 6
  • 25
  • 36
185
votes
7 answers

"java.lang.OutOfMemoryError: PermGen space" in Maven build

I'm getting this error while building Maven project, I increased MAVEN_OPTS but all the same, I found some similar posts but they are refering to something else. How do I fix this? The system is out of resources. Consult the following stack trace…
Gandalf StormCrow
  • 25,788
  • 70
  • 174
  • 263
133
votes
5 answers

What is the difference between PermGen and Metaspace?

Until Java 7 there was an area in JVM memory called PermGen, where JVM used to keep its classes. In Java 8 it was removed and replaced by area called Metaspace. What are the most important differences between PermGen and Metaspace? The only…
Kao
  • 7,225
  • 9
  • 41
  • 65
128
votes
8 answers

What does PermGen actually stand for?

I know what PermGen is, what it's used for, why it fails, how to increase it etc. What I don't know is what PermGen actually stands for. Permanent... Gen... something? Does anyone know what PermGen actually stands for?
SCdF
  • 57,260
  • 24
  • 77
  • 113
90
votes
5 answers

Increase permgen space

I am working with tomcat 6.0, and while I am indexing (not while i am starting tomcat), I have a permgen space error. How could I increase that space?? Thanks
Blanca
  • 957
  • 2
  • 8
  • 10
64
votes
4 answers

How do I properly set the permgen size?

I have this VM with tomcat, java, and grails in it. I've been getting permgen errors so I looked around and found the solution: set JAVA_OPTS="-Xms256m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m" I use SSH to access the vm and type the…
황현정
  • 3,451
  • 6
  • 28
  • 35
63
votes
7 answers

ThreadLocal & Memory Leak

It is mentioned at multiple posts: improper use of ThreadLocal causes Memory Leak. I am struggling to understand how Memory Leak would happen using ThreadLocal. The only scenario I have figured out it as below: A web-server maintains a pool of…
Sandeep Jindal
  • 14,510
  • 18
  • 83
  • 121
54
votes
11 answers

How to clear PermGen space Error in tomcat

I am working in a Windows Environment, and I am getting this error every time I am working with tomcat- Apr 30, 2012 5:30:37 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet default threw…
AKIWEB
  • 19,008
  • 67
  • 180
  • 294
53
votes
3 answers

-XX:MaxPermSize with or without -XX:PermSize

We've run into a Java.lang.OutOfMemoryError: PermGen space error and looking at the tomcat JVM params, other than the -Xms and -Xmx params we also specify -XX:MaxPermSize=128m. After a bit of profiling I can see occasionally garbage collection…
dimitrisli
  • 20,895
  • 12
  • 59
  • 63
38
votes
2 answers

How to diagnose a Java 8 metaspace leak?

I have a J2EE application with some interesting behavior ... the heap seems to behave well, growing and shrinking with garbage collections as expected over time. There is no appreciable overall long term heap expansion. However, the metaspace just…
29
votes
4 answers

Significance of PermGen Space

What is the significance of PermGen space in java?
java_geek
  • 17,585
  • 30
  • 91
  • 113
28
votes
5 answers

Tomcat thread dump

Is there away to take a thread dump from Tomcat? I would like to monitor the threads running in Tomcat at a certain point in time. Note: I was doing that on Web logic but i don't know how it can be done on Tomcat.
Abdullah
  • 401
  • 2
  • 7
  • 15
27
votes
7 answers

what to do with tomcat PermGen space

BACKGROUND: I have a web Project which uses JSP. The IDE is Eclipse. The configuration of tomcat is: Automatically publish when resources change and publishing interval is "1 second". A property file in the classes folder which used to save some…
SKing7
  • 301
  • 2
  • 4
  • 4
25
votes
2 answers

How do I programmatically find out my PermGen space usage?

I'm trying to diagnose a java.lang.OutOfMemoryError: PermGen Space error when running on Sun's Hotspot JVM, and would like to know how much PermGen space my program is using at various points. Is there a way of finding out this information…
Simon Nickerson
  • 42,159
  • 20
  • 102
  • 127
1
2 3
22 23