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

PermGen space issue with Glassfish/Hibernate

I'm running a GWT+Hibernate app on Glassfish 3.1. After a few hours, I run out of Permgen space. This is without any webapp reloads. I'm running with –XX:MaxPermSize=256m –XmX1024m. I took the advice from this page, and found that I'm leaking tons…
George Armhold
  • 30,824
  • 50
  • 153
  • 232
6
votes
2 answers

Why Oracle Specification does not tell anything about metaspace?

We all know that since Java 1.8 PermGen was removed and replaced by Metaspace. I have read a lot of topics about Metaspace and I am completely sure that it's exists, but today I was asked about the reference to Oracle JVM specification where is said…
Oleksandr Riznyk
  • 758
  • 1
  • 8
  • 19
6
votes
4 answers

How to make sure that Tomcat6 reads CATALINA_OPTS on Windows?

I have a Tomcat6 running on a Windows2003 machine. I deployed 2 Grails apps on this server and I soon noticed that everything was crashing sometime after the deploy with a classic PermGen error. java.lang.OutOfMemoryError: PermGen space …
Mulone
  • 3,603
  • 9
  • 47
  • 69
6
votes
4 answers

Track down PermGen problem with JRuby on Rails in Tomcat

We're running a small web application written JRuby on Rails running under Tomcat. We're using a Spring back-end that's shared with another production web application. Unfortunately, we keep running into PermGen problems. OS: Ubuntu Linux…
organicveggie
  • 559
  • 5
  • 22
6
votes
5 answers

java.lang.OutOfMemoryError: PermGen space error with Jetty

I am currently getting an java.lang.OutOfMemoryError: PermGen space. I am using Jetty and Linux Ubuntu. I have tried reading and attempting the different solutions that were provided in previous similar questions but I am not having any success. One…
Alex Thomson
  • 143
  • 1
  • 3
  • 10
6
votes
1 answer

How do I increase PermGen space for Scala compilation under Gradle?

I'm getting org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':compileScala' trying to build my Scala project with Gradle, and if I run Gradle with --stacktrace it looks like the culprit is java.lang.OutOfMemoryError: PermGen…
David Moles
  • 48,006
  • 27
  • 136
  • 235
6
votes
2 answers

Classpath scanning in OSGi

My project has a set of custom defined annotations that could be present in any bundle deployed in the OSGi 4.3 framework. I want to find any class with these annotations in the classpath. I tried using BundleWiring.listResources(...) and…
logoff
  • 3,347
  • 5
  • 41
  • 58
6
votes
2 answers

permgen garbage collection takes multiple Full GC

We are running grails and we are noticing multiple full garbage collections are needed to clear out the permgen space. 2013-06-06T16:11:27.016+0000: 32582.145: [Full GC 32582.145: [CMS2013-06-06T16:11:45.404+0000: 32600.532:…
tcollins
  • 61
  • 1
  • 3
6
votes
3 answers

String Creation and char array Memory Allocation

I have read a lot of conflicting articles regarding memory allocation when String is created. Some articles say that new operator creates a String in heap and String literal is created in String Pool [Heap] while some say that new operator creates…
Lokesh
  • 7,810
  • 6
  • 48
  • 78
6
votes
4 answers

Java server cpu usage at 100% after two days continous running with about 110 users

I have a tomcat 6.0.20, apr 1.2, jdk 1.6.0_15 with mysql 5.1.38 running on a rhel box with 4 GB ram. There is one simple jsp/servlet application on it with 5 users, one struts 1.2.0.9 with 64 users on it and one struts 2.0 application with 35 users…
sam
  • 61
  • 1
  • 3
6
votes
3 answers

How to analyze PermGen space?

Possible Duplicate: How to analyze PermGen contents? I want to know what is occupying the PermGen space - string intern() or classes? Is there any tool which will help with this analysis?
user1325695
  • 105
  • 1
  • 2
  • 6
5
votes
2 answers

When is finalize called on singletons when a classloader is released?

By "released" I mean there are no references to the classloader remaining. We're running into a problem where a frequently-redeployed Java EE application eats up permgen space. Analysis shows that a singleton in the Java EE app has passed…
Ed Staub
  • 15,480
  • 3
  • 61
  • 91
5
votes
1 answer

Effect of Scala class definitions on perm gen space

A standard pattern used in Scala class library is definition of classes within classes and traits. And most of the operations of objects of parent classes result in objects of those inner classes being created. Each inner class is different for each…
Khurram Ijaz
  • 136
  • 5
5
votes
6 answers

Jetty 7: OutOfMemoryError: PermGen space on application redeploy

First time app starts correctly. Then I delete webapp/*.war file and paste new version of *.war. Jetty start deploying new war but error java.lang.OutOfMemoryError: PermGen space occurs. How can I configure Jetty to fix error / make correct…
fedor.belov
  • 22,343
  • 26
  • 89
  • 134
5
votes
1 answer

Why would I see only "dead" classloaders from jmap -permstat (except the bootstrap)?

We've been pushing the permgen memory space in our app higher and higher and I'm trying to find out if we have a leak of some sort eating into the permgen area. We don't do hot undeploy/redeploy actions, but we have plenty of proxies, both dynamic…
Scott
  • 888
  • 7
  • 21