-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
  • 4,176
  • 7
  • 47
  • 81
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
  • 36,828
  • 10
  • 60
  • 83