Weblogic - increase runtime memory and change GC Algorithm Follow
In order to increase runtime memory follow the steps below:
- Go into the Folder <YOURDOMAIN>\bin
- Open the file setDomainEnv.cmd
You will find statements like these :
if "%SERVER_NAME%"=="WLS_REPORTS" (
set EXTRA_JAVA_PROPERTIES=-Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m -Djava.ext.dirs=E:\oracle\fmw11\FRHome11\jdk\jre\lib\ext -Doracle.security.jps.config=E:\oracle\user_projects\domains\FRDomain\config\fmwconfig\jps-config.xml -Doracle.home=E:\oracle\fmw11\FRHome11 -Ddomain.home=E:\oracle\user_projects\domains\FRDomain -Doracle.instance=E:\oracle\fmw11\asinst_1 %EXTRA_JAVA_PROPERTIES%
set LD_LIBRARY_PATH=E:\oracle\fmw11\FRHome11\lib;%LD_LIBRARY_PATH%
set PATH="E:\oracle\fmw11\FRHome11\bin";"%PATH%"
set TNS_ADMIN=E:\oracle\fmw11\asinst_1\config
)
if "%SERVER_NAME%"=="WLS_FORMS" (
set EXTRA_JAVA_PROPERTIES=-Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m -Djava.ext.dirs=E:\oracle\fmw11\FRHome11\jdk\jre\lib\ext -Doracle.security.jps.config=E:\oracle\user_projects\domains\FRDomain\config\fmwconfig\jps-config.xml -Doracle.home=E:\oracle\fmw11\FRHome11 -Ddomain.home=E:\oracle\user_projects\domains\FRDomain -Doracle.instance=E:\oracle\fmw11\asinst_1 -Doracle.instance.name=asinst_1 -Doracle.forms.weblogic=1 -Ddomain.name=FRDomain %EXTRA_JAVA_PROPERTIES%
set LD_LIBRARY_PATH=E:\oracle\fmw11\FRHome11\lib;%LD_LIBRARY_PATH%
)
Please note you can create an additional one by using the code below as an example:
if "%SERVER_NAME%"==" AdminServer " (
set EXTRA_JAVA_PROPERTIES=-Xms756m -Xmx756m -XX:PermSize=256m -XX:MaxPermSize=512m -
)
See the screenshot below to see what you will find in Regedit editor:
Navigate to services and change the parameter inside the command line.
If you have additional questions, feel free to contact our Support team support@auraplayer.com.
Change GC (Garbage Collection) Algorithm for improved Performance on high load
If you have high load on the AuraPlayer server, you can improve the JVM performance by changing the GC Algorithm.
On the same location that you set the memory parameters add the following:
-XX:+UseSerialGC
For Example:
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx1024m -XX:+UseSerialGC
On Managed weblogic servers please perform the following:
1. Edit the setDomainEnv.sh file, located at:
<WebLogicInstallDirectory>/user_projects/domains/<DomainName>/bin/
2. Add the following option: -Djava.awt.headless=true to the existing JAVA_OPTIONS line:
JAVA_OPTIONS="${JAVA_OPTIONS} ${JAVA_PROPERTIES} -XX:+UseSerialGC"
Comments
0 comments
Please sign in to leave a comment.