Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Memory Leak

    SmartGwt power 2.4


    Jan 27, 2012 2:30:54 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet DataSourceLoader threw exception
    java.lang.OutOfMemoryError: PermGen space



    Now a days we see the above messages very often in our logs.Are there any memory leaks in the framework

    #2
    No, there are currently no known memory leaks in the framework. Let us know if you put together data that suggests there may be one.

    Comment


      #3
      Try increasing the JVM's MaxPermSize.

      Eg
      Code:
      -XX:MaxPermSize=256m
      You're running out of MaxPermSize which is memory taken by class metadata and based on your application (number of classes, use of proxies, Hibernate etc) you will need to adjust this value.

      Comment


        #4
        as of now we have -Xms512m -Xmx2048m and as soon as it reached that max size it it OutOfMemory . But 2048 is huge. and every time we get the OutOfMemory at the DataSourceLoader.Is there a way we can collect some logs?

        Comment


          #5
          Did you read my previous post? You're running out of PermGen space, not the JVM's application memory heap.

          Comment


            #6
            This is most likely due to some code you wrote. Most likely, your code is creating objects that can't be garbage collected for some reason.

            A quick google brought up this link:
            http://blogs.oracle.com/fkieviet/entry/classloader_leaks_the_dreaded_java

            Comment

            Working...
            X