To solve out of memory error on Windows 7 64 bit platform, ensure the following
Open <WL_HOME>\common\bin\commEnv.cmd
set JAVA_HOME=<64 bit JDK Home>
set JAVA_VENDOR=Oracle
set JAVA_USE_64BIT=true
Save the commEnv.cmd
Open domain\bin\setSOADomainEnv.cmd
Set the memory options as follows
set JAVA_OPTIONS=%JAVA_OPTIONS%
set DEFAULT_MEM_ARGS=-Xms1024m -Xmx2048m -XX:MaxPermSize=1024m -XX:CompileThreshold=8000
set PORT_MEM_ARGS=-Xms1024m -Xmx2048m -XX:MaxPermSize=1024m -XX:CompileThreshold=8000
if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=512m -XX:MaxPermSize=1024m
set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=512m -XX:MaxPermSize=1024m
Save setSOADomainEnv.cmd
Restart the server
No comments:
Post a Comment