4 Replies Latest reply on Jun 26, 2013 11:00 AM by AnkitR Gupta

    OBIA Java out of memory

    AnkitR Gupta

      Hi Experts,

      I have done OBIA installation and configuration on windows server 2008 as mentioned in oracle guide.

      after restart of windows server Admin server and BI server gets started successfully but ODI server does not get started.

      for that i have to start first Nodemanager.cmd and then odi_server1 manually frm console.


      Once everythng starts successfully and i try to open either analytics or biacm then i face error mentioned below..

      I have installed JROCKET 64Bit with details as follows


      C:\Users\Administrator>java -version

      java version "1.6.0_37"

      Java(TM) SE Runtime Environment (build 1.6.0_37-b06)

      Oracle JRockit(R) (build R28.2.5-20-152429-1.6.0_37-20120927-1915-windows-x86_64, compiled mode)


      Kindly suggest any solution for these issue faced..

      thanks in advance for help..:)


      <Jun 17, 2013 3:47:50 PM IST> <Error> <HTTP> <BEA-101017> <[ServletContext@28255

      3721[app:oracle.biacm module:biacm path:/biacm spec-version:2.5 version:

      .1]] Root cause of ServletException.

      java.lang.OutOfMemoryError: classblock allocation, 25428704 loaded, 25088K footp

      rint, in check_alloc (src/jvm/model/classload/classalloc.c:215).



      Attempting to allocate 2G bytes



      There is insufficient native memory for the Java

      Runtime Environment to continue.



      Possible reasons:

        The system is out of physical RAM or swap space

        In 32 bit mode, the process size limit was hit



      Possible solutions:

        Reduce memory load on the system

        Increase physical memory or swap space

        Check if swap backing store is full

        Use 64 bit Java on a 64 bit OS

        Decrease Java heap size (-Xmx/-Xms)

        Decrease number of Java threads

        Decrease Java thread stack sizes (-Xss)

        Disable compressed references (-XXcompressedRefs=false)



              at java.lang.ClassLoader.defineClass1(Native Method)

              at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

              at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14


              at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericCla


              Truncated. see log file for complete stacktrace


        • 1. Re: OBIA Java out of memory

          try with higher  RAM..

          • 2. Re: OBIA Java out of memory



            Just in case try this ID 1386938.1


            If helps mark


            ~ http://cool-bi.com

            1 person found this helpful
            • 3. Re: OBIA Java out of memory
              AnkitR Gupta

              Hi ,

              I have made changes in D:\MWH\wlserver_10.3\common\bin\commEnv.cmd file as follows

              please mention if something is wrong i am still facing java out of memory issue and inturn when I run load frm using BIACM it always shows in inprogess state and no action takes place.



              please find the content of commEnv.cmd file below,

              Note :- i have made changes where text is highlighted as Bold and underlined.




              @rem Set BEA Home
              set BEA_HOME=D:\MWH
              FOR %%i IN ("%BEA_HOME%") DO SET BEA_HOME=%%~fsi
              @rem Set Middleware Home
              set MW_HOME=D:\MWH
              FOR %%i IN ("%MW_HOME%") DO SET MW_HOME=%%~fsi
              @rem Set WebLogic Home
              set WL_HOME=D:\MWH\wlserver_10.3
              FOR %%i IN ("%WL_HOME%") DO SET WL_HOME=%%~fsi
              @rem Set Coherence Home
              set COHERENCE_HOME=D:\MWH\coherence_3.7
              FOR %%i IN ("%COHERENCE_HOME%") DO SET COHERENCE_HOME=%%~fsi
              @rem Set Common Modules Directory
              set MODULES_DIR=D:\MWH\modules
              FOR %%i IN ("%MODULES_DIR%") DO SET MODULES_DIR=%%~fsi
              @rem Set Common Features Directory
              set FEATURES_DIR=D:\MWH\modules\features
              FOR %%i IN ("%FEATURES_DIR%") DO SET FEATURES_DIR=%%~fsi
              @rem Set Ant Home
              set ANT_HOME=%MODULES_DIR%\org.apache.ant_1.7.1
              FOR %%i IN ("%ANT_HOME%") DO SET ANT_HOME=%%~fsi
              @rem Set Ant Contrib
              set ANT_CONTRIB=%MODULES_DIR%\net.sf.antcontrib_1.1.0.0_1-0b2
              FOR %%i IN ("%ANT_CONTRIB%") DO SET ANT_CONTRIB=%%~fsi

              @rem Choose proper WebLogic jni libraries
              set  WL_USE_X86DLL=false
              set  WL_USE_IA64DLL=false
              set  WL_USE_AMD64DLL=true

              @rem JAVA_USE_64BIT, true if JVM uses 64 bit operations
              set JAVA_USE_64BIT=true

              @rem Reset JAVA_HOME, JAVA_VENDOR and PRODUCTION_MODE unless JAVA_HOME and
              @rem JAVA_VENDOR are defined already.
              if   DEFINED JAVA_HOME   if  DEFINED JAVA_VENDOR goto noReset

              @rem Reset JAVA Home
              set  JAVA_HOME=C:\Java\jrockit-jdk1.6.0_37-R28.2.5-4.1.0
              FOR %%i IN ("%JAVA_HOME%") DO SET JAVA_HOME=%%~fsi

              @rem JAVA VENDOR, possible values are:
              @rem Oracle, HP, IBM, Sun, etc.
              set  JAVA_VENDOR=Oracle

              @rem PRODUCTION_MODE, default to the development mode
              set  PRODUCTION_MODE=

              set JAVA_VENDOR_TMP=
              if "%JAVA_VENDOR%" == "Oracle" (
              set JAVA_VENDOR_TMP=Sun
              if exist %JAVA_HOME%/jre/bin/jrockit (
                set JAVA_VENDOR_TMP=Oracle
              ) else (
                for /d %%I in (%JAVA_HOME%\jre\lib\*) do if exist %%I\jrockit set JAVA_VENDOR_TMP=Oracle
              if defined JAVA_VENDOR_TMP set JAVA_VENDOR=%JAVA_VENDOR_TMP%

              @rem set up JVM options
              if "%JAVA_VENDOR%" == "Oracle" goto oracle
              if "%JAVA_VENDOR%" == "Sun" goto sun

              goto continue

              if "%PRODUCTION_MODE%" == "true" goto oracle_prod_mode
              set JAVA_VM=-jrockit
              set MEM_ARGS=-XX:+UnlockDiagnosticVMOptions -XX:InitialClassBlockMemory=256M -XX:MaxClassBlockMemory=256M -XXcompressedRefs:enable=true -Xms4g -Xmx4g  -XXcompressedRefs:size=32GB
              set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none
              goto continue
              set JAVA_VM=-jrockit
              set MEM_ARGS=-Xms64m -Xmx128m
              goto continue

              if "%PRODUCTION_MODE%" == "true" goto sun_prod_mode
              set JAVA_VM=-client
              set MEM_ARGS=-Xms64m -Xmx128m -XX:MaxPermSize=64m -XX:+UseSpinning
              set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none
              goto continue
              set JAVA_VM=-server
              set MEM_ARGS=-Xms64m -Xmx128m -XX:MaxPermSize=64m -XX:+UseSpinning
              goto continue


              @rem setup patch related class path, library path, path and extension dirs options
              if exist "%WL_HOME%\common\bin\setPatchEnv.cmd" call "%WL_HOME%\common\bin\setPatchEnv.cmd"

              @rem set up WebLogic Server's class path and config tools classpath
              set WEBLOGIC_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar;%FEATURES_DIR%\weblogic.server.modules_10.3.6.0.jar;%WL_HOME%\server\lib\webservices.jar;%ANT_HOME%/lib/ant-all.jar;%ANT_CONTRIB%/lib/ant-contrib.jar
              set FMWCONFIG_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%BEA_HOME%\utils\config\10.3\config-launch.jar;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar;%FEATURES_DIR%\weblogic.server.modules_10.3.6.0.jar;%WL_HOME%\server\lib\webservices.jar;%ANT_HOME%/lib/ant-all.jar;%ANT_CONTRIB%/lib/ant-contrib.jar

              @rem set up launch classpath for use by WLST
              set FMWLAUNCH_CLASSPATH=%BEA_HOME%\utils\config\10.3\config-launch.jar

              if NOT "%PATCH_CLASSPATH%"=="" (

              if /I "%SIP_ENABLED%"=="true" goto set_sip_classpath
              goto no_sip

              @rem set up SIP classpath
              set SIP_CLASSPATH=%WLSS_HOME%\server\lib\weblogic_sip.jar
              @rem add to WLS classpath

              @rem add jvm and WebLogic directory in path
              if "%WL_USE_X86DLL%" == "true" set PATH=%PATCH_PATH%;%WL_HOME%\server\native\win\32;%WL_HOME%\server\bin;%ANT_HOME%\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%PATH%;%WL_HOME%\server\native\win\32\oci920_8

              if "%WL_USE_IA64DLL%" == "true" set PATH=%PATCH_PATH%;%WL_HOME%\server\native\win\64;%WL_HOME%\server\bin;%ANT_HOME%\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%PATH%;%WL_HOME%\server\native\win\64\oci920_8

              if "%WL_USE_AMD64DLL%" == "true" set PATH=%PATCH_PATH%;%WL_HOME%\server\native\win\x64;%WL_HOME%\server\bin;%ANT_HOME%\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%PATH%;%WL_HOME%\server\native\win\x64\oci920_8

              @rem set up DERBY configuration
              set DERBY_HOME=%WL_HOME%\common\derby
              set DERBY_CLIENT_CLASSPATH=%DERBY_HOME%\lib\derbyclient.jar
              set DERBY_CLASSPATH=%DERBY_HOME%\lib\derbynet.jar;%DERBY_CLIENT_CLASSPATH%
              set DERBY_TOOLS=%DERBY_HOME%\lib\derbytools.jar
              set DERBY_SYSTEM_HOME=%WL_HOME%\common\derby\demo\databases
              set DERBY_OPTS="-Dderby.system.home=%DERBY_SYSTEM_HOME%"

              IF NOT "%DERBY_PRE_CLASSPATH%"=="" (
              IF NOT "%DERBY_POST_CLASSPATH%"=="" (

              IF NOT EXIST %WL_HOME%\common\eval\pointbase goto endpointbase
              @rem set up Point Base configuration

              set POINTBASE_HOME=%WL_HOME%\common\eval\pointbase
              set POINTBASE_CLIENT_CLASSPATH=%POINTBASE_HOME%\lib\pbclient57.jar
              set POINTBASE_TOOLS=%POINTBASE_HOME%\lib\pbtools57.jar

              IF NOT "%POINTBASE_PRE_CLASSPATH%"=="" (
              IF NOT "%POINTBASE_POST_CLASSPATH%"=="" (

              • 4. Re: OBIA Java out of memory
                AnkitR Gupta

                Finally I have got solution by updating the  D:\MWH\wlserver_10.3\common\bin\commEnv.cmd file with following values metioned as bold and underlined




                if "%PRODUCTION_MODE%" == "true" goto oracle_prod_mode

                set JAVA_VM=-jrockit

                set MEM_ARGS= -Xms64m -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:InitialClassBlockMemory=256M -XX:MaxClassBlockMemory=256M -XXcompressedRefs:enable=false

                set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none

                goto continue


                set JAVA_VM=-jrockit

                set MEM_ARGS=-Xms64m -Xmx128m

                goto continue