Some of our applications are running on Oracle Service Bus and are seriously resource consuming on mobile connections.
While installing the Oracle Service Bus, the oepe-wls installation is done with the oppressed 32 bit.
32-bit java can handle a maximum of 2 GB of ram, you may experience difficulties in busy environments.
The solution is quite simple.
First, install Jdk6u35 on the system. Make a note of the installed folder. I will install it under “C:\Java”.
Then open “SetDomainENV.bat” under “C:\Oracle\Middleware\user_projects\domains\osb_domain\bin” and find the following lines and edit the “JAVA_HOME” line according to you.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
set BEA_JAVA_HOME= set SUN_JAVA_HOME=C:\Java\jdk1.6.0_35 if “%JAVA_VENDOR%”==”Oracle” ( set JAVA_HOME=%BEA_JAVA_HOME% ) else ( if “%JAVA_VENDOR%”==”Sun” ( set JAVA_HOME=%SUN_JAVA_HOME% ) else ( set JAVA_VENDOR=Sun set JAVA_HOME=C:\Java\jdk1.6.0_35 ) ) |
In this way, when Weblogic and other services start, it will run on 64-bit java path, not 32-bit java.
Now we are making ram settings.
We find the following lines again in setdomainenv.bat. Since the test machine I use has 16 GB of ram, I make my settings on it.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
set XMS_SUN_64BIT=8196 set XMS_SUN_32BIT=2048 set XMX_SUN_64BIT=8196 set XMX_SUN_32BIT=2048 set XMS_JROCKIT_64BIT=8196 set XMS_JROCKIT_32BIT=2048 set XMX_JROCKIT_64BIT=8196 set XMX_JROCKIT_32BIT=2048 if “%JAVA_VENDOR%”==”Sun” ( set WLS_MEM_ARGS_64BIT=-Xms8196m -Xmx8196m set WLS_MEM_ARGS_32BIT=-Xms2048m -Xmx2048m ) else ( set WLS_MEM_ARGS_64BIT=-Xms8196m -Xmx8196m set WLS_MEM_ARGS_32BIT=-Xms2048m -Xmx2048m ) |
In this way, we can now increase the heap space according to the demand with our new settings.