-5

I encounter java out of memory: perm gen exception. I tried to resolve it by expanding the java heap size, but unable to solve it. How can I increase the memory?

Martin Schröder
  • 3,546
  • 5
  • 43
  • 77
efi
  • 11
  • 4

1 Answers1

2

You need to use a directive like this when starting Java: -XX:MaxPermSize=128m

PermGen is where class definitions and such are stored. It's not part of the same body of memory that is referenced by things like Xmx and Xms.

Mike Thomsen
  • 35,490
  • 10
  • 55
  • 80