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
5
votes
4 answers

String literals using 2x the expected amount of permanent generation space

This is Sun JDK 1.6u21, x64. I have a class for the purpose of experimenting with perm gen usage which contains only a single large string (512k characters): public class Big0 { public String bigString = "A string with 2^19 characters,…
BeeOnRope
  • 60,350
  • 16
  • 207
  • 386
5
votes
2 answers

Tool to view objects in permgen

I have some problems with permgen overflow. What tools I can use to view what classes are now loaded into permgen and how much memory they use? Thanks.
alex543
  • 251
  • 5
  • 9
5
votes
3 answers

Gracefully stop Logback in container environment

Today I get PermGen OutOfMemory error. Analysis shown that Nearest GC Root for WebappClassLoader is Logback thread: this - value: org.apache.catalina.loader.WebappClassLoader #4 <- contextClassLoader (thread object) - class:…
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
5
votes
1 answer

Java program to deliberately fill up PermGen?

Glassfish sometimes fails to stop when the PermGen is full, in this case asadmin stop-domain domain1 doesn't work. In Glassfish 2.1.1 it would just sit there forever; in 3.x it times out after AS_ADMIN_READTIMEOUT. So I am now working on my…
Steve Kehlet
  • 6,156
  • 5
  • 39
  • 40
5
votes
3 answers

Avoiding PermGen out of memory and GC overhead limit exceeded

I'm trying to generate classes and load them at run time. I'm using a ClassLoader object to load the classes. Since I don't want to run out of PermGen memory, from time to time I un-reference the class loader and create a new one to load the new…
pablo
  • 747
  • 1
  • 10
  • 24
5
votes
3 answers

Permgen Memory Leak with hot redeploy and Oracle database

i've got a SpringRoo-based application that is running in a production environment, that is causing severe permgen memory leaks after some hot redeploys. In order to "find and fix" the leak and to reduce the variables during analysis, i've created a…
paoloyx
  • 575
  • 1
  • 7
  • 12
5
votes
3 answers

Maven "Exception in thread "http-bio-8080-exec-32" java.lang.OutOfMemoryError: PermGen space"

I made a project in NetBeans under Ubuntu 11.10 with Struts2 + Spring and Hibernate frameworks. The first run is ok, but when I run it for the second or third time I keep getting this exception. Without Maven all goes well. I installed maven with…
Denees
  • 9,100
  • 13
  • 47
  • 76
5
votes
4 answers

when do classes in jars enter the PermGen

My understanding is that the PermGen (in some sense) holds the class code in memory. Often we have lots of jar files referenced our classpath. When a jar file is included in the classpath (say in the lib directory of tomcat), are all the classes of…
adamSpline
  • 483
  • 4
  • 13
4
votes
2 answers

Is there any way to prevent Grails permgen leaking on redeploy in production mode on tomcat despite JVM flags

It's a familiar old problem but I really want to put it to bed once and for all! I've got the following JVM flags set: -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled…
barrymac
  • 2,750
  • 1
  • 20
  • 32
4
votes
4 answers

Grails PermGem error

I need help with this problem. I need someone to explain to me why is this happening and how to prevent or avoid it. Exception in thread "Thread-747" java.lang.OutOfMemoryError: PermGen space Exception in thread "Thread-748"…
John22_2
  • 123
  • 1
  • 1
  • 7
4
votes
1 answer

Getting Perm Gen space issue in running elasticsearch cluster

We are running elasticsearch-1.5.1 cluster with 6 nodes, Recent days I am facing the java.lang.OutOfMemoryError PermGen space issue in the cluster, This affect the node and the same will get down. I am restarting the particular node to get live. We…
Arun Prakash
  • 1,717
  • 17
  • 26
4
votes
1 answer

How can I see what exactly is stored in PermGen?

In my application I have a PermGen out of memory error and I want to see what led to it. I have connected to my application via VisualVM. I want to see what exactly consumes so much PermGen memory in my application but I cannot take a special…
MiamiBeach
  • 3,261
  • 6
  • 28
  • 54
4
votes
2 answers

What Java Garbage Collectors cleanup PermGen?

List of Garbage Collectors: Serial GC Parallel GC Parallel Old GC Conc Mark Sweep GC G1 GC I know that the Conc Mark Sweep GC supports cleaning up PermGen when you enable the ClassUnloading JVM option. Do other Garbage Collectors support…
ColinMc
  • 1,238
  • 3
  • 16
  • 33
4
votes
1 answer

JVM memory cleaned up without any GC activity

I am currently running a long running JVM application (that includes groovy classes), and I have observed some strange behaviour. I run the application and update my Groovy classes (correctly cleaning up metaclass info etc - I know there isn't a…
rhinds
  • 9,976
  • 13
  • 68
  • 111
4
votes
1 answer

JDK 1.8 - can't with import sbt project

I have some trouble after installing java 1.8 on Ubuntu Gnome 14.04 with Intellij Idea 13.1. When I tried to import sbt project it throws next: I tried to install and set up java 1.7 at .pam-environment. But it keep taking 1.8 as main configuration…
catch23
  • 17,519
  • 42
  • 144
  • 217