Results 1 to 5 of 5

Thread: java.lang.OutOfMemoryError: PermGen space

  1. #1
    Join Date
    Feb 2013
    Posts
    11

    Default java.lang.OutOfMemoryError: PermGen space

    <Feb 26, 2013 2:47:13 PM MET> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListe ner failed: java.lang.OutOfMemoryError: PermGen space.
    java.lang.OutOfMemoryError: PermGen space

    after auto-deploying the war in weblogic 10.3 server. Any thought why this happened? Very simple application...
    Can I investigate the reason why this happened?


    This is how the server is configured
    JAVA_MEMORY : -Xms512m -Xmx512m -XX:PermSize=192m -XX:MaxPermSize=192m -XX:+UseParallelGC -XX:ParallelGCThreads=4 -XX:+UseParallelOldGC -XX:LargePageSizeInBytes=4m -XX:-BindGCTaskThreadsToCPUs

    similar topic:
    http://forum.springsource.org/showth...rmGen-space%29

    Is there any way to prevent this?
    Last edited by boom123; Feb 26th, 2013 at 08:10 AM.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    Don't auto-deploy... There are several frameworks/solutions which are notorious for memory leaks/classloader locking (commons-logging and cglib being 2 of them).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Feb 2013
    Posts
    11

    Default

    Quote Originally Posted by Marten Deinum View Post
    Don't auto-deploy... There are several frameworks/solutions which are notorious for memory leaks/classloader locking (commons-logging and cglib being 2 of them).
    Screenshot from 2013-03-03 17:28:14.jpg

    class:org.apache.log4j.config.PropertySetter[2 classes] instance count: 216.000 size 80.XXXkB


    I run Jprofiler to investigate the reason of this perm gen leak. I am new though to profiling apps, so can somebody give hos lights...
    Are all these instances of log4j needed? and why all this memory consumption?

    Thanks for your answers
    Last edited by boom123; Mar 3rd, 2013 at 11:04 AM.

  4. #4
    Join Date
    Feb 2013
    Posts
    11

    Default

    Quote Originally Posted by Marten Deinum View Post
    Don't auto-deploy... There are several frameworks/solutions which are notorious for memory leaks/classloader locking (commons-logging and cglib being 2 of them).

    If the application stops and the starts again? Should there be a problem with that or all the static classes are being removed from the classloader and this occurs only on auto-deploy?

  5. #5
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    The behavior you see only occurs at auto-deploy/hot-deploy. Stopping, deploying, starting should not lead to these issues.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •