This discussion is archived
3 Replies Latest reply: Jan 10, 2013 4:01 AM by 983093 RSS

Classpath values over weblogic12c incompare to weblogic10mp1

983093 Newbie
Currently Being Moderated
Hi ,

I am observing the difference between classpath over weblogic10.0mp1 and weblogic 12c over windows in startmanagedweblogic.cmd


weblogic10-@rem Start WebLogic Server
set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%


weblogic12c

@rem Start WebLogic Server
set CLASSPATH=%WEBLOGIC_CLASSPATH%;%DERBY_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%

Commonenv.cmd

weblogic10-

@rem Reset JAVA Home
set JAVA_HOME=D:\jdk150_14_64
FOR %%i IN ("%JAVA_HOME%") DO SET JAVA_HOME=%%~fsi

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

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

:noReset

@rem set up JVM options
if "%JAVA_VENDOR%" == "BEA" goto bea
if "%JAVA_VENDOR%" == "Sun" goto sun

goto continue

:bea
if "%PRODUCTION_MODE%" == "true" goto bea_prod_mode
set JAVA_VM=-jrockit
set MEM_ARGS=-Xms128m -Xmx256m
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none
goto continue
:bea_prod_mode
set JAVA_VM=-jrockit
set MEM_ARGS=-Xms128m -Xmx256m
goto continue


:sun
if "%PRODUCTION_MODE%" == "true" goto sun_prod_mode
set JAVA_VM=-client
set MEM_ARGS=-Xms512m -Xmx2048m -XX:MaxPermSize=512m -XX:+PrintClassHistogram -XX:+UseSpinning
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none
goto continue
:sun_prod_mode
set JAVA_VM=-server
set MEM_ARGS=-Xms512m -Xmx2048m -XX:MaxPermSize=512m -XX:+PrintClassHistogram -XX:+UseSpinning
goto continue

:continue


Over weblogic12c


@rem Reset JAVA Home
set JAVA_HOME=D:\Java7
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=true

:noReset
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


ECHO JAVA VENDOR IS..... ####### %JAVA_VENDOR%

PAUSE

goto continue

:oracle
if "%PRODUCTION_MODE%" == "true" goto oracle_prod_mode
set JAVA_VM=-jrockit
set MEM_ARGS=-Xnohup -Xms512m -Xmx1024m
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none -Djava.endorsed.dirs=%JAVA_HOME%/jre/lib/endorsed;%WL_HOME%/endorsed
goto continue
:oracle_prod_mode
set JAVA_VM=-jrockit
set MEM_ARGS=-Xnohup -Xms512m -Xmx1024m
set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.endorsed.dirs=%JAVA_HOME%/jre/lib/endorsed;%WL_HOME%/endorsed
goto continue


:sun
if "%PRODUCTION_MODE%" == "true" goto sun_prod_mode
set JAVA_VM=-client
set MEM_ARGS=-Xms32m -Xmx200m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseSpinning
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none -Djava.endorsed.dirs=%JAVA_HOME%/jre/lib/endorsed;%WL_HOME%/endorsed
goto continue
:sun_prod_mode
set JAVA_VM=-server
set MEM_ARGS=-Xms32m -Xmx200m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseSpinning
set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.endorsed.dirs=%JAVA_HOME%/jre/lib/endorsed;%WL_HOME%/endorsed
goto continue

:continue
  • 1. Re: Classpath values over weblogic12c incompare to weblogic10mp1
    anjhawar - oracle Explorer
    Currently Being Moderated
    I think the comparison between 10MP1 and 12c would not be a wise idea. There are a lot of changes like:

    with WLS 10MP1, Oracle/BEA use to ship pointbase DB for testing/dev.
    with 12c, Oracle ships derby.

    and there may be lot of new variables added in the script.

    Are you looking for something specific?

    AJ
  • 2. Re: Classpath values over weblogic12c incompare to weblogic10mp1
    983093 Newbie
    Currently Being Moderated
    Hi

    This is the entry over weblogic 10.0mp1 for commonend.cmd look at the sections *** what should be values for weblogic 12c with jdk7 in production with 5GB RAM




    set JAVA_HOME=D:\jdk150_14_64
    FOR %%i IN ("%JAVA_HOME%") DO SET JAVA_HOME=%%~fsi

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

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

    :noReset

    @rem set up JVM options
    if "%JAVA_VENDOR%" == "BEA" goto bea
    if "%JAVA_VENDOR%" == "Sun" goto sun

    goto continue

    :bea
    if "%PRODUCTION_MODE%" == "true" goto bea_prod_mode
    set JAVA_VM=-jrockit
    set MEM_ARGS=-Xms128m -Xmx256m
    set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none
    goto continue
    :bea_prod_mode
    set JAVA_VM=-jrockit
    set MEM_ARGS=-Xms128m -Xmx256m
    goto continue


    ***:sun***
    ***if "%PRODUCTION_MODE%" == "true" goto sun_prod_mode***
    ***set JAVA_VM=-client***
    ***set MEM_ARGS=-Xrs -Xms512m -Xmx1024m -XX:MaxPermSize=256m -XX:+PrintClassHistogram -XX:+UseSpinning***
    ***set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none***
    ***goto continue***
    ***:sun_prod_mode***
    ***set JAVA_VM=-server***
    ***set MEM_ARGS=-Xrs -Xms512m -Xmx1024m -XX:MaxPermSize=256m -XX:+PrintClassHistogram -XX:+UseSpinning***
    ***goto continue***
    *:continue*


    Weblogic 12c


    set JAVA_HOME=D:\Java7
    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=true

    :noReset
    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


    ECHO JAVA VENDOR IS..... ####### %JAVA_VENDOR%

    PAUSE

    goto continue

    :oracle
    if "%PRODUCTION_MODE%" == "true" goto oracle_prod_mode
    set JAVA_VM=-jrockit
    set MEM_ARGS=-Xnohup -Xms512m -Xmx1024m
    set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none -Djava.endorsed.dirs=%JAVA_HOME%/jre/lib/endorsed;%WL_HOME%/endorsed
    goto continue
    :oracle_prod_mode
    set JAVA_VM=-jrockit
    set MEM_ARGS=-Xnohup -Xms512m -Xmx1024m
    set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.endorsed.dirs=%JAVA_HOME%/jre/lib/endorsed;%WL_HOME%/endorsed
    goto continue


    ***:sun***
    ***if "%PRODUCTION_MODE%" == "true" goto sun_prod_mode***
    ***set JAVA_VM=-client***
    ***set MEM_ARGS=-Xms32m -Xmx200m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseSpinning***
    ***set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none -Djava.endorsed.dirs=%JAVA_HOME%/jre/lib/endorsed;%WL_HOME%/endorsed***
    ***goto continue***
    ***:sun_prod_mode***
    ***set JAVA_VM=-server***
    ***set MEM_ARGS=-Xms32m -Xmx200m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseSpinning***
    ***set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.endorsed.dirs=%JAVA_HOME%/jre/lib/endorsed;%WL_HOME%/endorsed***
    ***goto continue***
    **:continue**
  • 3. Re: Classpath values over weblogic12c incompare to weblogic10mp1
    983093 Newbie
    Currently Being Moderated
    which section in need to change if the java is jdk7

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points