• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

JVM parameter setting to cater high permgen usage,

 
Ranch Hand
Posts: 52
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

I have the following specs:

System Memory : 8,00 GB.
32bit Windows server
JVM Xmx : 1024m
Glassfish Server 3.1

My application keeps crashing (page not accessible HTTP status 500), and on my checking the Heap space, the permgen size is generally always full or close to full.

I am trying to analyse the application for the memory leaks, but i was also wondering if someone could recommend me better/optimized JVM parameters' settings on the machine that might help.
 
Marshal
Posts: 65425
248
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version of Java® are you using? The permgen has been removed from more recent versions (I think 7+ but not certain).
 
Norman Meister
Ranch Hand
Posts: 52
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry i forgot to mention Java version. It is 6.
 
Norman Meister
Ranch Hand
Posts: 52
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any help?
 
Master Rancher
Posts: 4223
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What values are you getting for your Permgen?

How are you checking those values?

If you were getting permgen errors then you would see them in your logs.
 
Bartender
Posts: 20995
128
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PermGen dies forever in Java 8. It's still there in Java 7. Java 6 isn't actively supported by Oracle anymore, I don't think.

For Sun/Oracle JVMs that inflicted PermGen on us, there were a couple of vendor-specific options. One was XX:MaxPermSize.

I heartily recommend upgrading to Java 8. It's less trouble and you can whine to Oracle if you have problems.
 
We don't have time for this. We've gotta save the moon! Or check this out:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!