12 Replies Latest reply: Jan 24, 2014 12:16 PM by 39696764-e503-41dd-8c3b-d48844eca959 RSS

on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m

39696764-e503-41dd-8c3b-d48844eca959 Newbie
Currently Being Moderated

Hi,

-------------------------------------------------------------

system i am using for Oracle SOA is :

Windows 64 Bit

i5 Processor

6 GB RAM

29 GB on C Drive is already free after installation of all SOA related products.

-----------------------------------------------------------------------------------------------------------------

 

I have installed wlserver_10.3 for SOA 11g Development purpose and followed exact installation sequence and procedure as mention in oracle documentation

i created domain also and every thing look correct but after installation procedure there are "Additional actions required just after every thing installed" :

setting memory limit

starting weblogic server (Admin Server)

starting weblogic managed server

and so on

 

now Problem is when i execute C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin startWebLogic.cmd

as mention in oracle documentation i am getting following error message : (i have only included last error lines instead of complete console log)

--------------------------------------------------------------------------------------------------------------------------

oConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\

sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\syse

xt_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_ma

nifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_manif

est_classpath  weblogic.Server

Listening for transport dt_socket at address: 8453

Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m

Caused by: java.lang.ClassNotFoundException: vXmx512m

        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Could not find the main class: ++Xmx512m.  Program will exit.

------------------------------------------------------------------------------------------------------------------------

 

Now to resolve this what i already tried are :

 

I change JAVA_HOME and PATH to jdk6 which came with web logic installer

Location is at :

 

JAVA_HOME : C:\Oracle\Middleware\jdk160_29

PATH : C:\Oracle\Middleware\jdk160_29\bin

 

The above dose not include any space between path

 

I ran the startWebLogic.cmd and got same error

 

After that I also added

CLASSPATH : C:\Oracle\Middleware\jdk160_29\lib\tool.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\jdk160_29\bin

WL_HOME:  C:\Oracle\Middleware\wlserver_10.3

 

I ran the startWebLogic.cmd and got same error

 

 

I also used earlier path which I used with eclipse when I was working on other java development.

 

JAVA_HOME : C:\Program Files\Java\jdk1.7.0_21

PATH : C:\Program Files\Java\jdk1.7.0_21\bin

 

I ran the startWebLogic.cmd and got same error

 

Then I also gave PATH: C:\Oracle\Middleware\wlserver_10.3\server\lib      (including the existing one using ; )

I ran the startWebLogic.cmd and got same error

 

Now may be there is a file called setSOADomainEnv.cmd in

< C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\ setSOADomainEnv.cmd>

 

That include some values for memory set :

 

set JAVA_OPTIONS=%JAVA_OPTIONS%

set DEFAULT_MEM_ARGS=-Xms512m –Xmx512m

set PORT_MEM_ARGS=-Xms512m –Xmx768m

 

if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM

set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m

set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m

 

 

now as I change the red highlighted value to 512 value because I have less memory resource and I checked in installation documentation to change the above red highlighted value to 512 original is 1024 which is too high and it was crating problem and showing memory space problem so I change it to 512 and now I am not getting that memory space problem error but may be the above error is related with change value in setSOADomainEnv.cmd file or not

 

Following are my domain, weblogic and soa home directory path and all these path are exactly what it suppose to be according to Oracle Installation Documentation:

 

WebLogic :

C:\Oracle\Middleware\wlserver_10.3

C:\Oracle\Middleware\coherence_3.7

C:\Oracle\Middleware\oepe_11.1.1.8.0

 

SOA Oracle Home Directory :

C:\Oracle\Middleware\Oracle_SOA1

 

OSB Home Location :

C:\Oracle\Middleware\Oracle_OSB1

 

Domain name : soa_div_domain

Domain Location :       C:\Oracle\Middleware\user_projects\domains

Application Location :  C:\Oracle\Middleware\user_projects\applications

Domain Location:        C:\Oracle\Middleware\user_projects\domains\soa_div_domain

 

form here i am trying to start weblogic : C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\startWebLogic.cmd

 

 

 

Please tell me any body want more details.

 

Thanks.

  • 1. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    Kalyan Pasupuleti-Oracle Expert
    Currently Being Moderated

    Hi,

     

    Check what you put in the setDomainEnv.cmd.

     

    Secondly try to clear tmp and cache folder of your adminserver once before next start.

     

    Regards,

    Kal

  • 2. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    39696764-e503-41dd-8c3b-d48844eca959 Newbie
    Currently Being Moderated

    Hi,

    I clear tmp and cache folder of my adminserver and re-run but getting same error

     

    Regard “setSOADomainEnv.cmd” file :

     

    The red highlight value is the only thing I changed as at first run as it was shown memory space problem and to resolve that memory space problem in Oracle Installation documentation it is mention to change the default value of DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m to DEFAULT_MEM_ARGS=-Xms512m –Xmx512m

     

    Following lines are in setSOADomainEnv.cmd :

     

    JAVA_OPTIONS=%JAVA_OPTIONS%

    set DEFAULT_MEM_ARGS=-Xms512m –Xmx512m

    set PORT_MEM_ARGS=-Xms768m -Xmx1536m

     

    if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM

    set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m

    set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m

     

    so in oracle installation documentation it is mention : “The heap size is calculated as -Xmx + PermMaxSize. If these two add up to more than 1408MB then WLS will not start.”

    ------------------------------------------------------------------------------------------------------------------

    After change I got following CLI logs :

     

    xt_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_ma

    nifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_manif

    est_classpath  weblogic.Server

    Listening for transport dt_socket at address: 8453

    Exception in thread "main" java.lang.NoClassDefFoundError: √Xmx512m

    Caused by: java.lang.ClassNotFoundException: √Xmx512m

            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

            at java.security.AccessController.doPrivileged(Native Method)

            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    Could not find the main class: ├╗Xmx512m. Program will exit.

     

    ------------------------------------------------------------------------------------------------------------------------------------------

    So I reset it to default that is DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m  in setSOADomainEnv.cmd

    But now it is not showing memory problem instead it is showing same problem with this CLI logs :

     

     

    starting weblogic with Java version:

    Listening for transport dt_socket at address: 8453

    java version "1.6.0_29"

    Java(TM) SE Runtime Environment (build 1.6.0_29-b11)

    Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode)

    Starting WLS with line:

    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transpo

    rt=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE  -Xms512m ûXmx

    1024m  -XX:PermSize=128m -XX:MaxPermSize=768m -Dweblogic.Name=AdminServer -Djava

    .security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy  -Xver

    ify:none -da:org.apache.xmlbeans...   -ea -da:com.bea... -da:javelin... -da:webl

    • ogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplat
    1. form.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3

    \server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server  -Dcommon.component

    1. s.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.log
    2. ging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\Oracle\MID

    DLE~1\USER_P~1\domains\SOA_DI~1 -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\mo

    dules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\Oracle

    \MIDDLE~1\USER_P~1\domains\SOA_DI~1\config\FMWCON~1\servers\AdminServer -Doracle

    .domain.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DI~1\config\FMWCON~1

    -Digf.arisidbeans.carmlloc=C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DI~1\config\

    FMWCON~1\carml -Digf.arisidstack.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_D

    I~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\Oracle\MIDDLE

    ~1\USER_P~1\domains\SOA_DI~1\config\fmwconfig\jps-config.xml -Doracle.deployed.a

    1. pp.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DI~1\servers\AdminServer\tmp\_WL_

    user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\M

    IDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modul

    es\oracle.oamprovider_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jps_11.1

    .1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol"|"oracle.fabric.common.c

    1. lassloaderurl.handler"|"oracle.fabric.common.uddiurl.handler"|"oracle.bpm.io.fs.

    protocol  -Dweblogic.jdbc.remoteEnabled=false -Doracle.security.jps.policy.migra

    1. tion.validate.principal=false  -da:org.apache.xmlbeans... -Dbpm.enabled=true -Ds
    • oa.archives.dir=C:\Oracle\Middleware\Oracle_SOA1\soa -Dsoa.oracle.home=C:\Oracle

    \Middleware\Oracle_SOA1 -Dsoa.instance.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\

    SOA_DI~1 -Dtangosol.coherence.clusteraddress=227.7.7.9 -Dtangosol.coherence.clus

    terport=9778 -Dtangosol.coherence.log=jdk -Djavax.xml.soap.MessageFactory=oracle

    .j2ee.ws.saaj.soap.MessageFactoryImpl -Dweblogic.transaction.blocking.commit=tru

    e -Dweblogic.transaction.blocking.rollback=true -Djavax.net.ssl.trustStore=C:\Or

    acle\MIDDLE~1\WLSERV~1.3\server\lib\DemoTrust.jks -Dem.oracle.home=C:\Oracle\Mid

    dleware\oracle_common -Djava.awt.headless=true -Dbam.oracle.home=C:\Oracle\Middl

    eware\Oracle_SOA1 -Dums.oracle.home=C:\Oracle\Middleware\Oracle_SOA1 -Dweblogic.

    1. management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrors

    ToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default

    \sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\sys

    ext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_m

    anifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_mani

    fest_classpath  weblogic.Server

    Listening for transport dt_socket at address: 8453

    Exception in thread "main" java.lang.NoClassDefFoundError: √Xmx1024m

    Caused by: java.lang.ClassNotFoundException: √Xmx1024m

            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

            at java.security.AccessController.doPrivileged(Native Method)

            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    Could not find the main class: ├╗Xmx1024m. Program will exit.

     

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------

     

    I highly believe that I have to provide/change some parameter values in “setSOADomainEnv.cmd” file to resolve this issue

    And so far I have not changed any parameter value in “setSOADomainEnv.cmd” file except the one which I describe above “DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m ”

     

    I don’t know which parameter value are causing this exception error so I am copying “setSOADomainEnv.cmd” content here, can you please tell me where I have to change value for specific parameter:

    (may be -Dweblogic.alternateTypesDirectory= or not) see this : <https://community.oracle.com/thread/1134387?tstart=0> but I don’t know this location of weblogic.Server

    Or may be any other parameter value is causing:

     

    Please see this “setSOADomainEnv.cmd” file contents :

     

    ----------------------------------------------------------------------------------------------------------------------------------------------------------

    @ECHO OFF

     

    REM Skip running this script again if it was run once

    if "%XENGINE_DIR%" == "" goto set_env

    echo *********************************************************

    echo ** SOA specific environment is already set. Skipping ...

    goto end_set_env

     

    :set_env

     

    set PLATFORM_TYPE=win

    echo *********************************************************

    echo ** Setting up SOA specific environment for %PLATFORM_TYPE%...

    echo *********************************************************

     

    REM 8331492: Value of weblogic.resourcepool.max_test_wait_secs is 10

    REM seconds. It can be increased by uncommenting line below if your database

    REM connections are REM slow. See SOA documentation for more details.

    REM

    REM set EXTRA_JAVA_PROPERTIES=%EXTRA_JAVA_PROPERTIES% -Dweblogic.resourcepool.max_test_wait_secs=30

     

    REM 8395254: add -da:org.apache.xmlbeans... in EXTRA_JAVA_PROPERTIES

    set EXTRA_JAVA_PROPERTIES=%EXTRA_JAVA_PROPERTIES% -da:org.apache.xmlbeans...

     

    set XENGINE_DIR="%SOA_ORACLE_HOME%\soa\thirdparty\edifecs\XEngine"

    set PATH=%PATH%;%SOA_ORACLE_HOME%\soa\thirdparty\edifecs\XEngine\bin

     

    set JAVA_OPTIONS=%JAVA_OPTIONS%

    set DEFAULT_MEM_ARGS=-Xms512m –Xmx512m

    set PORT_MEM_ARGS=-Xms768m –Xmx1536m

     

    if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM

    set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m

    set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m

     

    :OracleJVM

     

    if "%JAVA_USE_64BIT%"=="true" (

        set USER_MEM_ARGS=%PORT_MEM_ARGS%

    ) else (

        set USER_MEM_ARGS=%DEFAULT_MEM_ARGS%

    )

     

    echo PATH=%PATH%

    echo .

    echo USER_MEM_ARGS=%USER_MEM_ARGS%

    echo .

    echo JAVA_OPTIONS=%JAVA_OPTIONS%

    echo .

    echo *****************************************************

    echo ** End SOA Specific environment setup  for %PLATFORM_TYPE%.

    echo *****************************************************

     

    :end_set_env

     

     

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    End of file

     

    Please suggest me if any parameter value I have to change of something is missing

     

    Thanks

  • 3. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    RenévanWijk Oracle ACE
    Currently Being Moderated

    Just a guess, but the character in front of your edited memory parameters is different ( –Xmx512m) then the one already present (-Xms512m) note the larger 'minus' sign.

     

    This could be parsed differently by the Java Virtual Machine, the Java Virtual Machine probably thinks –Xmx512m is the main class to start, which of course it cannot find on the classpath.

     

    Try using an editor such as notepad++ (Notepad++ v6.5.3 - Current Version).

  • 4. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    RenévanWijk Oracle ACE
    Currently Being Moderated

    Does the server comes into a running state?

     

    Are there any specific exception in the logging?

     

    Do not know how you installed and configured the environment, you probably used the wizards. After the installation did you change anything?

     

    Maybe an idea to start over (do not change a thing) and then run startWebLogic (some instructions for setting up a SOA environment can be found here: Middleware Snippets: Setting-up a High Available Tuned SOA Environment. Note that this is for an older version but things have not changed that much in the installation and configuration procedure).

  • 5. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    39696764-e503-41dd-8c3b-d48844eca959 Newbie
    Currently Being Moderated

    Hi,

    I realize that the problem is with java out of memory and I search it’s solution on different forum and post and everywhere it is mention to set correct value of :

     

    set DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m

    set PORT_MEM_ARGS=-Xms768m -Xmx1536m

     

     

    if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM

    set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m

    set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m

     

    so I applied different values combination as mention in different forum and posts but in every combination value I was getting ether out of memory problem or either different error

     

    so finally I gave up and decide to run last time, get the log, and show it to experts on this forum.

     

    to resolve memory issue I implement everything mention on these links :

    https://community.oracle.com/thread/2387719

    https://community.oracle.com/thread/988194 (include formula to calculate, but some people say (MaxHeapSize/2))

    http://docs.oracle.com/html/E18558_01/fusion_requirements.htm#BABEBFHJ

    http://docs.oracle.com/cd/E12839_01/integration.1111/e10229/app_perform.htm

    http://docs.oracle.com/cd/E15523_01/integration.1111/e10229/app_perform.htm

    https://blogs.oracle.com/imc/entry/weblogic_server_performance_and_tuning

    https://community.oracle.com/thread/2387719?tstart=-5

     

    Still finally I am not able to run weblogic successfully

    Note : for each run I was also deleting caches from “C:\Oracle\Middleware\user_projects\domains\soa_div_domain\servers\AdminServer” folder except security folder

     

    I also observed that nobody explained

    1. what is “DEFAULT_MEM_ARGS” and “PORT_MEM_ARGS” and there relation ship
    2. what first and second argument in both of these stand for and there relationship (Xms and Xmx)
    3. what is “XX:PermSize” and “XX:MaxPermSize” and there relation ship
    4. we have to set Xms and Xmx in “setDomainEnv.cmd” file or “setSOADomainEnv.cmd” file
    5. values mention in every forum post was not telling that it should be set for “DEFAULT_MEM_ARGS” or “PORT_MEM_ARGS” and every one is suggesting different values (I saw forumla also to calculate that) but still it is important to know above 4 question before going further.

     

    ----------------------------------------------------------------------------------------------------------------------------------------**

     

    For this Run I am using following values in “setSOADomainEnv.cmd” file and I have not touch “setDomainEnv.cmd” file (as I read in one article : “And setDomainEnv.sh file uses setSOADomainEnv.sh file for setting SOA specific environments. So the memory related arguments like Xmx and Xms are picked up from the file :setSoaDomainEnv.sh file”)

     

    “setSOADomainEnv.cmd” :

    set JAVA_OPTIONS=%JAVA_OPTIONS%

    set DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m

    set PORT_MEM_ARGS=-Xms768m -Xmx1530m

     

    if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM

    set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=512m

    set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m

     

    -------------------------------------------------------------------------------------------------------------------------------------

    only red highlighted one I change to 512 and original was 768. I think “DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m” is use for heap.

     

    Please suggest me correct values (my system hardware configuration is mention on top of this page)

    And if any thing else is required.

     

    Cmd Logs : (cmd logs keep on scroll up so I got the last log lines)

    -----------------------------------------------------------------------------------------------------------------------------------------------------

    te changed to RESUMING>

    <Jan 21, 2014 8:14:30 PM IST> <Critical> <WebLogicServer> <BEA-000386> <Server s

    ubsystem failed. Reason: java.lang.OutOfMemoryError: unable to create new native

    thread

    1. java.lang.OutOfMemoryError: unable to create new native thread

            at java.lang.Thread.start0(Native Method)

            at java.lang.Thread.start(Thread.java:640)

            at weblogic.server.channels.DynamicListenThread.start(DynamicListenThrea

    1. d.java:254)

            at weblogic.server.channels.DynamicListenThreadManager.start(DynamicList

    1. enThreadManager.java:149)

            at weblogic.t3.srvr.ListenerService.bindListeners(ListenerService.java:4

    5)

            Truncated. see log file for complete stacktrace

    >

    <Jan 21, 2014 8:14:30 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server sta

    te changed to FAILED>

    <Jan 21, 2014 8:14:30 PM IST> <Error> <WebLogicServer> <BEA-000383> <A critical

    service failed. The server will shut itself down>

    ***************************************************************************

    The WebLogic Server encountered a critical failure

    Reason: unable to create new native thread

    ***************************************************************************

    <Jan 21, 2014 8:14:30 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server sta

    te changed to FORCE_SHUTTING_DOWN>

     

    C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin>

    ----------------------------------------------------------------------------------------------------------------------------------**

    End of CMD Logs

     

    Following are AdminServer.log : (C:\Oracle\Middleware\user_projects\domains\soa_div_domain\servers\AdminServer\logs)

    ----------------------------------------------------------------------------------------------------------------------------------**

    ####<Jan 21, 2014 8:14:29 PM IST> <Info> <WorkManager> <KUSHAGRA> <AdminServer> <[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <80e5c4a5378d3ccf:-63df2e37:143b53a5297:-8000-0000000000000014> <1390315469785> <BEA-002903> <Creating WorkManager from "weblogic.wsee.mdb.DispatchPolicy" WorkManagerMBean for application "bea_wls9_async_response">

    ####<Jan 21, 2014 8:14:29 PM IST> <Info> <WorkManager> <KUSHAGRA> <AdminServer> <[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <80e5c4a5378d3ccf:-63df2e37:143b53a5297:-8000-0000000000000014> <1390315469867> <BEA-002903> <Creating WorkManager from "wm/SOAWorkManager" WorkManagerMBean for application "bea_wls9_async_response">

    ####<Jan 21, 2014 8:14:30 PM IST> <Critical> <WebLogicServer> <KUSHAGRA> <AdminServer> <main> <<WLS Kernel>> <> <80e5c4a5378d3ccf:-63df2e37:143b53a5297:-8000-0000000000000010> <1390315470306> <BEA-000386> <Server subsystem failed. Reason: java.lang.OutOfMemoryError: unable to create new native thread

    1. java.lang.OutOfMemoryError: unable to create new native thread

                at java.lang.Thread.start0(Native Method)

                at java.lang.Thread.start(Thread.java:640)

                at weblogic.server.channels.DynamicListenThread.start(DynamicListenThread.java:254)

                at weblogic.server.channels.DynamicListenThreadManager.start(DynamicListenThreadManager.java:149)

                at weblogic.t3.srvr.ListenerService.bindListeners(ListenerService.java:45)

                at weblogic.t3.srvr.EnableListenersHelper.start(EnableListenersHelper.java:47)

                at weblogic.t3.srvr.EnableListenersService.start(EnableListenersService.java:19)

                at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)

                at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

                at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    >

    ####<Jan 21, 2014 8:14:30 PM IST> <Notice> <WebLogicServer> <KUSHAGRA> <AdminServer> <main> <<WLS Kernel>> <> <80e5c4a5378d3ccf:-63df2e37:143b53a5297:-8000-0000000000000010> <1390315470365> <BEA-000365> <Server state changed to FAILED>

    ####<Jan 21, 2014 8:14:30 PM IST> <Error> <WebLogicServer> <KUSHAGRA> <AdminServer> <main> <<WLS Kernel>> <> <80e5c4a5378d3ccf:-63df2e37:143b53a5297:-8000-0000000000000010> <1390315470366> <BEA-000383> <A critical service failed. The server will shut itself down>

    ####<Jan 21, 2014 8:14:30 PM IST> <Notice> <WebLogicServer> <KUSHAGRA> <AdminServer> <main> <<WLS Kernel>> <> <80e5c4a5378d3ccf:-63df2e37:143b53a5297:-8000-0000000000000010> <1390315470399> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

     

    -----------------------------------------------------------------------------------------------------------------------------------------------**

    End of AdminServer.log file

     

    Please suggest me what is wrong.

     

    Thanks

  • 6. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    RenévanWijk Oracle ACE
    Currently Being Moderated

    Let us first answer your questions:

     

    "what is “DEFAULT_MEM_ARGS” and “PORT_MEM_ARGS” and there relation ship"

    As I remember correctly is the DEFAULT_MEM_ARGS used in when you are using a 32-bit environment and PORT_MEM_ARGS in a 64-bit environment. You can also trace this in setDomainEnv where you can see that values are added to a parameter called USER_MEM_ARGS. Note that this value overrides all JVM parameters that are set in setDomainEnv.

     

    "what first and second argument in both of these stand for and there relationship (Xms and Xmx)"

    Xms is the initial value of the heap size (this is what the JVM will reserve for Java objects when it initially starts). Xmx is the maximum value to which is can grow. In practice set these values equal to each other. Otherwise the JVM will be constantly shrinking and increasing its heap size (and a production environment you can do without this overhead).


    "what is “XX:PermSize” and “XX:MaxPermSize” and there relation ship"

    The HotSpot JVM uses a special reserved space for its metadata (such compiled classes etc.). You define this space by using XX:PermSize to the define the initial size and XX:MaxPermSize for the maximum. Just as in the case of Xms and Xmx, set these values equal to each other.

     

    "we have to set Xms and Xmx in “setDomainEnv.cmd” file or “setSOADomainEnv.cmd” file"

    In setSOADomainEnv (you can leave setDomainEnv alone) as the parameters DEFAULT_MEM_ARGS (or PORT_MEM_ARGS) are added to USER_MEM_ARGS in setDomainEnv.

     

    "values mention in every forum post was not telling that it should be set for “DEFAULT_MEM_ARGS” or “PORT_MEM_ARGS” and every one is suggesting different values"

    The values will depend on what your are deploying.

     

    Let just get some starting point (that hopefully will start-up the AdminServer).

    First how much free memory do you have in the machine itself? When running a SOA environment having 6GB of RAM is sort of mandatory (you can run it with less if you do not mind swapping).

     

    Depending if you are using a 32-bit or 64 bit system use the parameters DEFAULT_MEM_ARGS or PORT_MEM_ARGS (just keep them equal to each other, but for a 32-bit system you can not go above the theoretical level of 2048MB). With the HotSpot JVM you can use something like

     

    DEFAUL_MEM_ARGS=-Xms1024m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:NewRatio=3 -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:+UseParallelGC -XX:MaxGCPauseMillis=200 -XX:GCTimeRatio=19 -XX:+UseParallelOldGC -XX:+UseTLAB

    PORT_MEM_ARGS=-Xms2048m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:NewRatio=3 -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:+UseParallelGC -XX:MaxGCPauseMillis=200 -XX:GCTimeRatio=19 -XX:+UseParallelOldGC -XX:+UseTLAB

     

    The values presented for the memory are initial ones, it could be that your environment needs larger heap sizes. The other parameters set the garbage collection scheme to use (in this case the parallel collector will be used, more information on JVM tuning can be found here: Middleware Snippets: Tune the JVM that Runs Coherence and Middleware Snippets: Fast, Faster, JRockit).

  • 7. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    39696764-e503-41dd-8c3b-d48844eca959 Newbie
    Currently Being Moderated

    Hi,

    Just want to know what is this green highlighted terms :

     

    PORT_MEM_ARGS=-Xms2048m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:NewRatio=3 -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:+UseParallelGC -XX:MaxGCPauseMillis=200 -XX:GCTimeRatio=19 -XX:+UseParallelOldGC -XX:+UseTLAB

     

    In “setSOADomainEnv.cmd” these green highlighted terms are not mention so do I require to mention it some ware eg assign it to  PORT_MEM_ARGS

     

    Note : I am using JDK for div environment not JRockit for production

     

    ----------------------------------------------------------------------------------------------------------------------------------------------

    My machine is 64 Bit with 6 GB RAM so I set PORT_MEM_ARGS as follow in “setSOADomainEnv.cmd”

     

    set JAVA_OPTIONS=%JAVA_OPTIONS%

    set DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m

    set PORT_MEM_ARGS=-Xms2048m -Xmx2048m

     

    if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM

    set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m

    set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=512m -XX:MaxPermSize=512m

     

    and now I am getting following CMD Log :

    ---------------------------------------------------------------------------------------------------------------------------------****

    ext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_m

    anifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_mani

    fest_classpath weblogic.Server

    Error occurred during initialization of VM

    Could not reserve enough space for object heap

    Could not create the Java virtual machine.

     

    C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin>

    ---------------------------------------------------------------------------------------------------------------------------------**

     

    Again tried with this :

    set JAVA_OPTIONS=%JAVA_OPTIONS%

    set DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m

    set PORT_MEM_ARGS=-Xms1536m -Xmx1536m

     

    if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM

    set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m

    set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=768m -XX:MaxPermSize=768m

     

    CMD log got same error :

    Error occurred during initialization of VM

    Could not reserve enough space for object heap

    Could not create the Java virtual machine.

     

     

    Thanks

  • 8. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    39696764-e503-41dd-8c3b-d48844eca959 Newbie
    Currently Being Moderated

    Hi, I finally able to run weblogic successfully, following are the logs :

     

    <Jan 23, 2014 12:24:35 PM IST> <Notice> <WebLogicServer> <BEA-000331> <Started W

    ebLogic Admin Server "AdminServer" for domain "soa_div_domain" running in Develo

    pment Mode>

    <Jan 23, 2014 12:24:36 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server st

    ate changed to RUNNING>

    <Jan 23, 2014 12:24:36 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server st

    arted in RUNNING mode>

    SOA Platform is running and accepting requests

     

    After this I am getting this message also :

    <Jan 23, 2014 1:10:50 PM IST> <Critical> <Health> <BEA-310003> <Free memory in t

    he server is 3,635,528 bytes. There is danger of OutOfMemoryError>

    ------------------------------------------------------------------------------------

    My operating system is 64 bit OS and so I was changing PORT_MEM_ARGS values but my WebLogic installer is 32 Bit so I was not changing values in correct variable that is DEFAUL_MEM_ARGS and when I changed value in :

    DEFAUL_MEM_ARGS  =-Xms768m –Xmx768m -XX:PermSize=512m -XX:MaxPermSize=512

    Then my weblogic start running, so it depend on WebLogic installer version weather it is 32 bit or 64 bit not the OS Version and while first run of WebLogic important is to keep native area size and Perm size maximum.

     

    Please correct me if I am wrong. And regard this : <Free memory in the server is 3,635,528 bytes. There is danger of OutOfMemoryError> what should I do.

     

    Thank friend for helping me on this issue and I have learn many important JVM memory related things from you.

     

    --------------------------------------------------------------------

    Just want to know what is this green highlighted terms :

     

    PORT_MEM_ARGS=-Xms2048m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:NewRatio=3 -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:+UseParallelGC -XX:MaxGCPauseMillis=200 -XX:GCTimeRatio=19 -XX:+UseParallelOldGC -XX:+UseTLAB

     

    In “setSOADomainEnv.cmd” these green highlighted terms are not mention so do I require to mention it some ware eg assign it to PORT_MEM_ARGS

     

    Note : I am using JDK for div environment not JRockit for production


    Thanks.

  • 9. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    RenévanWijk Oracle ACE
    Currently Being Moderated

    "Free memory in the server is 3,635,528 bytes. There is danger of OutOfMemoryError what should I do?"

     

    Increase the values of Xms and Xmx (if you still have some free RAM left in your machine). Xms1024m and Xmx1024m will suffice.

     

    Note that the 64 or 32 bits depends on the Java Virtual Machine you are using. You can check this by using: java -version, for example

     

    C:\bea\app\oracle\weblogic12.1.2\jdk1.7.0_45\bin>java -version

    java version "1.7.0_45"

    Java(TM) SE Runtime Environment (build 1.7.0_45-b18)

    Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

     

    "Just want to know what is this green highlighted terms "

     

    -XX:NewRatio=N – sets the young generation to heap size / (1 + N).

    -XX:SurvivorRatio – ratio of eden/survivor space size.

    -XX:MaxTenuringThreshold – sets the maximum tenuring threshold (above we assume that objects that are not collected in the eden space are objects that will live for a long time).

    -XX:+UseParallelGC – select the parallel collector.

    -XX:ParallelGCThreads – sets the number of garbage collector threads, i.e., the number of CPUs to be used.

    -XX:MaxGCPauseMillis – sets the maximum pause time goal.

    -XX:GCTimeRatio=N – sets the throughput goal that is measured in terms of the time spent doing garbage collection versus the time spent outside of garbage collection. In the case above with N=19, the garbage collection time to application time is set to 1 / (1+N) = 1 / 20, i.e., 5% of the total time is spent in garbage collection.

    -XX:-UseParallelOldGC – selects the parallel collector for major collections. -XX:+UseTLAB – enables thread-local object allocation.

     

    More information can be found here: Middleware Snippets: Fun with Enterprise Manager.

     

    In short these values fine tune the garbage collection and can be added to either DEFAULT_MEM_ARGS or PORT_MEM_ARGS as shown above.

  • 10. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    39696764-e503-41dd-8c3b-d48844eca959 Newbie
    Currently Being Moderated

    Thank you so much for the valuable information.

     

    Q1.   Can I change Xms1024m and Xmx1024m while weblogic is running?

    Q2.   Can I increase Process Size eg for 64 Bit 4GB default to 5GB or 6GB because in real IT Market in production Environment there will be lots of classes, libraries

             and big size applications in that case I need to set Xmx and MaxPermSize with more memory ? so is it possible.

            (I think for that I need to change Process size at OS level) so in actual Production environment Process size are changed or not and if changed then how and up to

            what GB (general convention size)

    Q3.   One last important thing I want to know (which I already searched on internet but I didn't got answer) : What are the IT/Software Industry trends, preferred Operation System Platform (eg Windows Server 2012 R2, Linux, solaris etc) to install and run following Software : please also suggest me which Bit Operation system are used in real IT Market

            (I should use eg 32Bit or 64 Bit) :

      1. Oracle WebLogic
      2. Oracle Service Bus Release
      3. Oracle Application Adapters
      4. Oracle SOA Suite 11g and Oracle BPM
      5. Oracle Database 11g and Repository Creation Utility
      6. Oracle JDeveloper 11g
      7. Oracle Event Processing
      8. Oracle Enterprise Repository
      9. Oracle Service Registry
      10. Oracle AIA
      11. Oracle Application Testing Suite


    Thanks

  • 11. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    RenévanWijk Oracle ACE
    Currently Being Moderated

    "Can I change Xms1024m and Xmx1024m while weblogic is running?"

     

    Yes, but they will be effective after you restart the Java Virtual Machine (i.e. the WebLogic Server).

     

    "Can I increase Process Size?"

     

    With process size you mean the memory consumed by the WebLogic Server process, in that case Yes, as long as you have RAM available, you can increase it as high as you like on 64-bit systems (reserve at least 1GB for the operating system itself). One parameter to monitor with large JVM heap sizes is the pausetime (i.e. the time that the JVM is not doing any work when in collecting garbage) - but 6GB should in general not be a problem.

     

    "One last important thing I want to know...?"

     

    Depends on who you are asking, my personal favorite is Linux (64-bits), but the choice usually depends on where the expertise of the operators lies (that is also why you will not find a closed answer on the Internet, there is always something personal in it). But Linux is a powerful operating system, that can be easily tweaked to fit your needs, and it is updated frequently.

  • 12. Re: on starting WebLogic getting Error : Listening for transport dt_socket at address: 8453 Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
    39696764-e503-41dd-8c3b-d48844eca959 Newbie
    Currently Being Moderated

    Hi,

     

    Regard Increasing JVM Process size for WebLogic:

     

    So that mean for 32Bit JVM I can use max up to 2GB only (also if RAM is more then 2GB).

     

    And for 64Bit JVM, I can allocate more than 4GB depend on my available RAM size to Xmx, MaxPermSize parameters in setSOADomainEnv.cmd file

    So in that case if my RAM is 8GB then I can allocate 7GB memory between Xmx, MaxPermSize and remaining to Native By just assigning memory value to Xmx, MaxPermSize I don’t think so.

     

    because earlier i assigning 1536 to Xmx of “setSOADomainEnv.cmd” file even though it was showing out of memory error. I think that is because it was only taking default 2GB for my 32 Bit JVM not considering 3GB or 4GB. So i think we have to change default memory size what JVM can use (<http://www.wikihow.com/Increase-Java-Memory-in-Windows-7>

     

    Please correct me if I am wrong

     

    Please continue reading and answering here < https://community.oracle.com/thread/2622834>

     

    Thanks.

Legend

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