0

I am using quartz schedular.

After some time of deployment it is showing folowing Exception

Exception in thread "http-bio-8084-exec-3" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8084-exec-1" java.lang.OutOfMemoryError: PermGen space

How to resolve this exception.

user2302288
  • 305
  • 1
  • 5
  • 17

2 Answers2

2

Try setting the Maximum size property of the jvm while starting jvm

-XX:MaxPermSize=128M

You can read more about the option here, here and here

Community
  • 1
  • 1
Arun P Johny
  • 384,651
  • 66
  • 527
  • 531
0

Yes definitely it's not a heap problem.

Permgen space problem occurs if there is any error while loading a class. So, here your class is not loaded properly meaning you have a less permgen ( different from heap size and is also configurable attribute in jvm ).

Shailesh Pratapwar
  • 4,054
  • 3
  • 35
  • 46
  • How to detect which class in not loading properly – user2302288 May 18 '13 at 04:22
  • I have no idea about this but the classloading problem is solely due to the fact that there isn't any free space to load your class definition in memory. Rather , I would advice to first try increasing the Permgen size and then to see the consequence. – Shailesh Pratapwar May 18 '13 at 11:34