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

Hi,
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 java.security.SecureClassLoader.defineClass(Unknown Source)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2888)
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1172)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
      at org.drools.rule.builder.dialect.java.parser.JavaParser.<init>(JavaParser.java:11641)
      at org.drools.rule.builder.dialect.java.parser.JavaParser.<init>(JavaParser.java:219)
      at org.drools.rule.builder.dialect.java.JavaExprAnalyzer.analyzeBlock(JavaExprAnalyzer.java:90)
      at org.drools.rule.builder.dialect.java.JavaDialect.analyzeBlock(JavaDialect.java:258)
      at org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.build(JavaConsequenceBuilder.java:91)
      at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:99)
      at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:1813)
      at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:745)
      at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:338)
      at com.yatra.platform.rules.BusinessRulesExecutor.getNewRuleBase(BusinessRulesExecutor.java:140)
      at com.yatra.platform.rules.BusinessRulesExecutor.getRuleBase(BusinessRulesExecutor.java:108)
      at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(BusinessRulesExecutor.java:153)
      at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(BusinessRulesExecutor.java:73)
      at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(BusinessRulesExecutor.java:102)
      at com.yatra.products.air.web.controller.HomePageController.processHomeRules(HomePageController.java:66)
      at com.yatra.products.air.web.controller.HomePageController.home(HomePageController.java:58)
      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.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
      at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
      at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)

--------------------


How should i interpret it and resolve it
Thanks
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...
0

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
Programming

From novice to tech pro — start learning today.