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
8
votes
3 answers

Are Inner Classes lightweight?

Are inner classes more lightweight than normal classes, or in the end java compiles inner classes just like normal classes? I know classes in java are not all very lightweight themselves, and they occupy part of the permgen memory, so I'd like to…
Waneck
  • 2,450
  • 1
  • 19
  • 31
8
votes
2 answers

Use PermGen space or roll-my-own intern method?

I am writing a Codec to process messages sent over TCP using a bespoke wire protocol. During the decode process I create a number of Strings, BigDecimals and dates. The client-server access patterns mean that it is common for the client to issue a…
Adamski
  • 54,009
  • 15
  • 113
  • 152
8
votes
2 answers

permgen, but Java VisualVM says "No GC root found"

I have a very simple 'Hello world' type web application (Spring 3.2.1, Hibernate 4.1.9) on stopping/restarting the web-app Tomcat 7.0.26 The following web applications were stopped (reloaded, undeployed), but their classes from previous runs are…
kmansoor
  • 4,265
  • 9
  • 52
  • 95
8
votes
4 answers

Tomcat 7 getting CreateJavaVM Failed Error

I have an Apache tomcat 7.0.5 Server on a Windows R2 Server and I've deployed a webApp ( java JSF) on it, everything was working fine, but it suddenly stopped and won't run again. when I try to run it, it tells me "Error 1067: The Process terminated…
Myy
  • 18,107
  • 11
  • 37
  • 57
8
votes
3 answers

Large Permgen size + performance impact

We are running a liferay portal on tomcat 6. Each portlet is a contained web application so it includes all libraries the portlet itself requires. We currently have 30+ portlets. The result of this is that the permgen of our tomcat increases with…
user1344117
  • 195
  • 2
  • 7
7
votes
3 answers

Java HotSpot 1.6 VM, Garbage Collection - Scary PermGen

My app shows rising 'Old Generation'/'Tenured Generation' size, and when this reaches the max limit for 'Old Gen', then suddenly PermGen size increases. Here are my generation sizings: -Xmx1200m -Xms1200m -Xmn450m -XX:MaxPermSize=600m…
Gala101
  • 464
  • 5
  • 14
7
votes
5 answers

Weblogic increase memory

How do I increase the memory used by my Weblogic (Java). While starting the server from eclipse it shows a message that JAVA Memory arguments: -Xms256m -Xmx512m -XX:MaxPermSize=256m. I couldn't understand from where is it taking that value from.…
Akhil K Nambiar
  • 3,835
  • 13
  • 47
  • 85
7
votes
2 answers

Why does allocated size of permanent generation increase after executing perform GC?

Following are the snapshots I took after executing perform GC from jvisualvm. and First image is Heap stats and 2nd one is perm gen stats. I am not able to understand when I did GC utilized heap size decreased(as expected) but the allocated size…
Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
7
votes
3 answers

--launcher.XXMaxPermSize appears twice in eclipse.ini

My eclipse is crashing with OOO: perm-gen error. I opened up the eclipse.ini to increase it but to my surprise I found two occurences of the XXMaxPermSize as shown below.. I am not sure why there are two and which one to…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
7
votes
1 answer

java.lang.OutOfMemoryError: PermGen space error

I've read all kind of solutions for this. A link in a comment in Dealing with “java.lang.OutOfMemoryError: PermGen space” error is the best I've found so far. Pretty complicated to follow though. The point is, I get this error just compiling a…
eskalera
  • 1,072
  • 2
  • 21
  • 36
7
votes
7 answers

What free JVM implementation has the best PermGen handling?

I'm running Tomcat6 in Sun's JRE6 and every couple deploys I get OutOfMemoryException: PermGen. I've done the Googling of PermGen solutions and tried many fixes. None work. I read a lot of good things about Oracle's JRockit and how its PermGen…
Robert Campbell
  • 6,848
  • 12
  • 63
  • 93
6
votes
1 answer

Saving PermGen space with several classloaders

We're writing a large GUI app in Scala with a lot of classes, and we've had to increase the PermGen space to be able to load all classes. The app itself shows a series of screen-based activities, each of which loads its own large set of classes.…
Jean-Philippe Pellet
  • 59,296
  • 21
  • 173
  • 234
6
votes
2 answers

Solving a PermGen issue on redeploy with Jetty 7

After a couple of days of debugging I have managed to have a medium-to-large web application redeploy successfully on Tomcat 6.0.32 without any PermGen leaks. I saw the PermGen drop after it filled, and the classloaders were garbage collected. After…
Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
6
votes
1 answer

Java class size in PermGen space

There are lots of Q&A's about the size of a Java object, which is quite straightforward to understand. But I'm wondering about the size of a Java class in the PermGen space. The reason I wonder about this is because I'm writing a code generator,…
Lukas Eder
  • 211,314
  • 129
  • 689
  • 1,509
6
votes
2 answers

PermGen Out of Memory reasons

I constantly detect OOM in PermGen for my environment: java 6 jboss-4.2.3 Not a big web-application I know about String.intern() problem - but I don't have enough valuable usage of it. Increasing of MaxPermGen size didn't take a force (from 128 Mb…
Raman
  • 887
  • 4
  • 12
  • 28