Thursday, March 11, 2010

Resolving java.lang.OutOfMemoryError: PermGen space in Weblogic

Hi,

To resolve the java.lang.OutOfMemoryError: PermGen space in Weblogic please add the following line

set USER_MEM_ARGS=-Xms512m -Xmx1024m -XX:MaxPermSize=128m

in :\Oracle\Middleware\user_projects\domains\dgmt_domain\bin\setDomainEnv.cmd

Thanks,


Enable Remote Debugging in Weblogic

Hi,

Remote debugging in Weblogic with Eclipse can be configured as follows:

In startWebLogic.cmd file, can be found at :\Oracle\Middleware\user_projects\domains\dgmt_domain\bin\startWebLogic.cmd,

Replace

set JAVA_OPTIONS =%SAVE_JAVA_OPTIONS%

With

set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n %SAVE_JAVA_OPTIONS%

While starting the Weblogic you will see “Listening for transport dt_socket at address: 1044” then we are sure that debug is enabled on weblogic.

Thanks,