Announcement Announcement Module
Collapse
No announcement yet.
java.lang.OutOfMemoryError: PermGen space error with tc sever developer edition Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.OutOfMemoryError: PermGen space error with tc sever developer edition

    Hi Friends,

    I am using tc-server-developer-2.0.3.RELEASE and my OS is WindowsXP.I deployed my application to tc-server and able to see the login page.But after login to the application i am getting java.lang.OutOfMemoryError: PermGen space error.

    In my exisitng tomcat server environment the jvm_opts setting
    is -Xmx1024m.

    So I tried update the tc-server jvm setting to -Xmx1024m and my experiments are endwith unsuccessfully.

    First ,I updated the values in spring-insight-instance\conf\wrapper.conf file
    i.e: wrapper.java.additional.8=-Xmx512m to
    wrapper.java.additional.8=-Xmx1024m.
    But after this change I am unable to see the application login page ,also the url http://localhost:8080/insight is not loading.

    Then I tried to change the values using
    spring-insight-instance\bin\setenv.bat file.ie set CATALINA_OPTS=-Xmx1024m

    But after that change also I am facing java.lang.OutOfMemoryError: PermGen space error.

    Please help me to resolve java.lang.OutOfMemoryError: PermGen space error.

  • #2
    @newToTc,

    Add "MaxPermSize" ( what is it: http://wiki.caucho.com/-XX:MaxPermSize )

    these settings may help you: http://www.dotkam.com/2010/08/26/tomcat-add-memory/

    Code:
    JAVA_OPTS="-Xms512m -Xmx1024m -XX:MaxPermSize=384m -Xss128k"
    /Anatoly

    P.S. If that doesn't help set these:

    Code:
    -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
    Last edited by litius; Sep 28th, 2010, 10:37 AM.

    Comment


    • #3
      Thanks litius ,Its worked for me

      I made the change in wraaper.conf file as
      wrapper.java.additional.8=-Xms512m -Xmx1024m -XX:MaxPermSize=384m .

      Comment

      Working...
      X