• Post Reply Bookmark Topic Watch Topic
  • New Topic

JVM parameter setting to cater high permgen usage,  RSS feed

 
Norman Meister
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.
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • 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?
 
Dave Tolls
Ranch Hand
Posts: 2839
30
  • 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.
 
Tim Holloway
Bartender
Posts: 18663
71
Android Eclipse IDE 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!