Tuesday, June 6, 2017

What to do when you get "java.lang.OutOfMemoryError: PermGen space " issue once you login WSO2EI 6.1.1

After the successful start of the WSO2 Enterprise Integrator (EI) 6.1.1, I tried to log in the management console and encountered an error java.lang.OutOfMemoryErrorPermGenspace [1]. 

[1] java.lang.OutOfMemoryError: PermGen space
Dumping heap to /home/sa/Desktop/sachini/PROD-7/wso2ei-6.1.1/repository/logs/heap-dump.hprof ...
Unable to create /home/sa/Desktop/sachini/PROD-7/wso2ei-6.1.1/repository/logs/heap-dump.hprof: File exists
SEVERE:Memory usage is low, parachute is non existent, your system may start failing.
Exception in thread "http-nio-9443-exec-13" 
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-nio-9443-exec-13"
Exception in thread "PoolCleaner[1007456727:1496813475907]" 

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "PoolCleaner[1007456727:1496813475907]"


Please follow the steps to solve the issue.

  1. Open /wso2ei-6.1.1/bin/integrator.sh
  2.  Add the below value under "$JAVA_OPTS \ "             
            -Xms256m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m \

That's all.Once you restart the server you will be able to log to EI 6.1.1

 

3 comments:

  1. Hi Sachini, got same problem running WSO2EI 6.1.1 on Windows. Unfortunately, tried your solution still doesn't work.a
    When I added the above value on the end of the line 'set JAVA_OPTS=-Xdebug...' on integrator.bat file, got same error.
    Just solved when I changed the jdk from 1.7 to 1.8, on windows environment variables.

    ReplyDelete
    Replies
    1. The repointing of jdk to 1.8 worked on Windows. Thanks.

      Delete
  2. Hi Sachini, Got same problem with EI 6.1.0 and your answer solved the issue. Thanks :)

    ReplyDelete

Blogger Widgets