• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JVM parameter setting to cater high permgen usage,

 
Ranch Hand
Posts: 52
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
any help?
 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic