java.lang.OutOfMemoryError: PermGen space in tomcat while loading site

I got the following error while loading a page after deploying my app in tomcat :

SEVERE: Servlet.service() for servlet [spring-servlet] in context with path [/flights-india-yt] threw exception [Handler processing failed; nested exception is java.lang.OutOfMemoryError: PermGen space] with root cause
java.lang.OutOfMemoryError: PermGen space
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClassCond(Unknown Source)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at Source)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(
      at org.apache.catalina.loader.WebappClassLoader.findClass(
      at org.apache.catalina.loader.WebappClassLoader.loadClass(
      at org.apache.catalina.loader.WebappClassLoader.loadClass(
      at org.drools.compiler.PackageBuilder.addRule(
      at org.drools.compiler.PackageBuilder.addPackage(
      at org.drools.compiler.PackageBuilder.addPackageFromDrl(
      at com.yatra.platform.rules.BusinessRulesExecutor.getNewRuleBase(
      at com.yatra.platform.rules.BusinessRulesExecutor.getRuleBase(
      at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(
      at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(
      at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(
      at com.yatra.products.air.web.controller.HomePageController.processHomeRules(
      at com.yatra.products.air.web.controller.HomePageController.home(
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(
      at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(


How should i interpret it and resolve it
Rohit BajajAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
There is a fairly common problem with Tomcat in that if you deploy and undeploy a web app X number of times, due to memory leaks Tomcat will give this message. If you are to restart Tomcat, do you still get these errors? The answer to this will at least direct us as to which path to follow...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.