Skip to Content
avatar image
Former Member

Java process server0 restarts for single activity in EP

HI Experts,

We installed the Netwever Application server with EP+PI component. The installation is successful. But when we are trying to do any activity in portal, the server0 of J2ee process table in MMC gets restarts. We are getting message saying that the message server is nt available, follow the note 943498 and 764417 to resolve the problem.

After following the note 943498 and 764417 also we are unable to resolve this problem. The output of dev_jcontrol is as given below -

The java version is

C:\Documents and Settings\tndadm>java -version

java version "1.4.2_17"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_17-b06)

Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_17-b06, mixed mode)

Please reply soon.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 16, 2009 at 02:41 PM

    Hi,

    Error is FATAL: Caught OutOfMemoryError! Node will exit with exit code 666

    Memory issue.

    Is your j2ee heap memory size is 1G. and perm size is 256M(log says). Check it.

    Make max heap memory 2G and Perm 512M

    For 2 GB heap -XX:NewSize and -XX:MaxNewSize will be >=341m.

    You can change from configtool. Perm size should be >=512M for 64 bit.

    Suman

    Add comment
    10|10000 characters needed characters exceeded

    • Did you read SAP Note 723909 - Java VM settings for J2EE 6.40/7.0 as suggested ?

      You'll find all the info you need there.

      Never be scared to do changes... This is the only way to learn.

      Regards

      Juan

  • Jul 16, 2009 at 11:47 AM

    The output of dev_jcontrol is as given below

    Can't see it...

    Also check std_server0.out and std_dispatcher.out

    Regards

    Juan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Juan Reyes

      Hi,

      Please also make heap memory and the XMS parameter to 2048 in Configtool under Server0.

      When you just click on server you shall see these parameter in the right hand side.

      Thanks

      Rishi Abrol

  • avatar image
    Former Member
    Jul 16, 2009 at 11:58 AM

    Can you post server0 trace.

    Suman

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 21, 2009 at 09:19 AM

    Thanks Jaun / Ravi,

    I succseed in changing but the server0 is not starting. I think I need to keep the value of maxpersize diffrent. This is the log of developer trace of server0. I think I am near to my solution. Just suggest me about this parameter.

    JStartupIReadSection: read node properties [ID3788750]

    -> node name : server0

    -> node type : server

    -> node execute : yes

    -> jlaunch parameters :

    -> java path : C:\j2sdk1.4.2_17-x64

    -> java parameters : -Djco.jarm=1 -XX:MaxPermSize>=512M -XX:PermSize=512M -XX:NewSize=512M -XX:MaxNewSize>=512M -XX:DisableExplicitGC -verbose:gc -XX:PrintGCDetails -XX:+PrintGCTimeStamps -Djava.awt.headless=true -Dsun.io.useCanonCaches=false -XX:SoftRefLRUPolicyMSPerMB=1 -XX:SurvivorRatio=2 -XX:TargetSurvivorRatio=90 -Djava.security.policy=./java.policy -Djava.security.egd=file:/dev/urandom -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy

    -> java vm version : 1.4.2_17-b06

    -> java vm vendor : Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)

    -> java vm type : server

    -> java vm cpu : amd64

    -> heap size : 2048M

    -> init heap size : 1024M

    -> root path : C:\usr\sap\TND\DVEBMGS00\j2ee\cluster\server0

    -> class path : .\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.

    -> OS libs path : C:\usr\sap\TND\DVEBMGS00\j2ee\os_libs

    -> main class : com.sap.engine.boot.Start

    -> framework class : com.sap.bc.proj.jstartup.JStartupFramework

    -> registr. class : com.sap.bc.proj.jstartup.JStartupNatives

    -> framework path : C:\usr\sap\TND\DVEBMGS00\exe\jstartup.jar;C:\usr\sap\TND\DVEBMGS00\exe\jvmx.jar

    -> shutdown class : com.sap.engine.boot.Start

    -> parameters :

    -> debuggable : no

    -> debug mode : no

    -> debug port : 50021

    -> shutdown timeout : 120000

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

    [Thr 4176] JLaunchISetDebugMode: set debug mode [no]

    [Thr 4644] JLaunchIStartFunc: Thread 4644 started as Java VM thread.

    [Thr 4644] [JHVM_PrepareVMOptions] use java parameters set by profile parameter

    Java Parameters: -Xss2m

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

    JHVM_LoadJavaVM: VM Arguments of node [server0]

    -> stack : 1048576 Bytes

    -> arg[ 0]: exit

    -> arg[ 1]: abort

    -> arg[ 2]: vfprintf

    -> arg[ 3]: -Djco.jarm=1

    -> arg[ 4]: -XX:MaxPermSize>=512M

    -> arg[ 5]: -XX:PermSize=512M

    -> arg[ 6]: -XX:NewSize=512M

    -> arg[ 7]: -XX:MaxNewSize>=512M

    -> arg[ 8]: -XX:+DisableExplicitGC

    -> arg[ 9]: -verbose:gc

    -> arg[ 10]: -XX:+PrintGCDetails

    -> arg[ 11]: -XX:+PrintGCTimeStamps

    -> arg[ 12]: -Djava.awt.headless=true

    -> arg[ 13]: -Dsun.io.useCanonCaches=false

    -> arg[ 14]: -XX:SoftRefLRUPolicyMSPerMB=1

    -> arg[ 15]: -XX:SurvivorRatio=2

    -> arg[ 16]: -XX:TargetSurvivorRatio=90

    -> arg[ 17]: -Djava.security.policy=./java.policy

    -> arg[ 18]: -Djava.security.egd=file:/dev/urandom

    -> arg[ 19]: -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy

    -> arg[ 20]: -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy

    -> arg[ 21]: -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy

    -> arg[ 22]: -Dsys.global.dir=C:\usr\sap\TND\SYS\global

    -> arg[ 23]: -Dapplication.home=C:\usr\sap\TND\DVEBMGS00\exe

    -> arg[ 24]: -Djava.class.path=C:\usr\sap\TND\DVEBMGS00\exe\jstartup.jar;C:\usr\sap\TND\DVEBMGS00\exe\jvmx.jar;.\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.

    -> arg[ 25]: -Djava.library.path=C:\j2sdk1.4.2_17-x64\jre\bin\server;C:\j2sdk1.4.2_17-x64\jre\bin;C:\j2sdk1.4.2_17-x64\bin;C:\usr\sap\TND\DVEBMGS00\j2ee\os_libs;C:\Program Files\HP\NCU;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\j2sdk1.4.2_17-x64\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\usr\sap\TND\SYS\exe\uc\NTAMD64

    -> arg[ 26]: -Dmemory.manager=2048M

    -> arg[ 27]: -Xmx2048M

    -> arg[ 28]: -Xms1024M

    -> arg[ 29]: -DLoadBalanceRestricted=no

    -> arg[ 30]: -Djstartup.mode=JCONTROL

    -> arg[ 31]: -Djstartup.ownProcessId=4056

    -> arg[ 32]: -Djstartup.ownHardwareId=Q0970199207

    -> arg[ 33]: -Djstartup.whoami=server

    -> arg[ 34]: -Djstartup.debuggable=no

    -> arg[ 35]: -Xss2m

    -> arg[ 36]: -DSAPINFO=TND_00_server

    -> arg[ 37]: -DSAPSTART=1

    -> arg[ 38]: -DCONNECT_PORT=2891

    -> arg[ 39]: -DSAPSYSTEM=00

    -> arg[ 40]: -DSAPSYSTEMNAME=TND

    -> arg[ 41]: -DSAPMYNAME=TNWDEV_TND_00

    -> arg[ 42]: -DSAPPROFILE=C:\usr\sap\TND\SYS\profile\TND_DVEBMGS00_TNWDEV

    -> arg[ 43]: -DFRFC_FALLBACK=ON

    -> arg[ 44]: -DFRFC_FALLBACK_HOST=localhost

    -> arg[ 45]: -DSAPSTARTUP=1

    -> arg[ 46]: -DSAPSYSTEM=00

    -> arg[ 47]: -DSAPSYSTEMNAME=TND

    -> arg[ 48]: -DSAPMYNAME=TNWDEV_TND_00

    -> arg[ 49]: -DSAPDBHOST=TNWDEV

    -> arg[ 50]: -Dj2ee.dbhost=TNWDEV

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

    Unrecognized VM option 'MaxPermSize>=512M'

    [Thr 4644] *** ERROR => JHVM_LoadJavaVM: Cannot create Java VM (rc=-6) [jhvmxx.c 549]

    [Thr 4644] *** ERROR => Cannot load Java VM (server) (rc=-1) [jlnchxxi.c 752]

    [Thr 4644] **********************************************************************

    • ERROR => Java VM initialization failed.

    • Please see SAP Note 943602 , section 'Java VM initialization issues'

    • for additional information and trouble shooting.

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

    [Thr 4644] JLaunchCloseProgram: good bye (exitcode = -1)

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 21, 2009 at 10:01 AM

    Hi All,

    The problem solved. The paramter setting I found in Java are similar like ABAP 😊

    The >= value is not allowed for maxpersize and maxnewsize parameters. I made it = 512MB. Then its started working.

    Thanks Jaun to encourage me to resolve this problem.

    Ones again thanks to all.

    Regards,

    Jayendra.

    Add comment
    10|10000 characters needed characters exceeded