Results 1 to 3 of 3

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

  1. #1
    Join Date
    Sep 2010
    Posts
    2

    Default 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. #2
    Join Date
    Apr 2008
    Location
    Philadelphia, US
    Posts
    198

    Arrow

    @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 at 10:37 AM.
    Humans are stateful and mutable beings that have no problems processing many things concurrently and share state with others + they are usually "coupled"

  3. #3
    Join Date
    Sep 2010
    Posts
    2

    Default

    Thanks litius ,Its worked for me

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

Posting Permissions

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