cancel
Showing results for 
Search instead for 
Did you mean: 

J2EE engine restarting frequently

Former Member
0 Kudos

Hi ,

We have a portal server(2004s) installed on windows 2003 server (64 bit) and sql database. The problem is server is getting restarted automatically some times. The below is the log file in dev_trace

[Thr 2632] Thu Jan 22 12:02:36 2009

[Thr 2632] JControlICheckProcessList: process server0 (pid:5908) died (RUN-FLAG)

[Thr 2632] JControlIResetProcess: reset process server0

[Thr 2632] JControlICheckProcessList: running flight recorder:

C:\j2sdk1.4.2_13-x64\bin\java -classpath ../j2ee/cluster/bootstrap/sap.comtcbloffline_launcherimpl.jar com.sap.engine.offline.OfflineToolStart com.sap.engine.flightrecorder.core.Collector ../j2ee/cluster/bootstrap -node ID4815450 1232600962 -bz D:\usr\sap\EP3\SYS\global

Every time its restarted this is the log which is observed.

Kindly help me in resolving this.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check the VM settings to see if they are big enough.

It is known that the J2EE server process is not very robust. The "official" workaround is to define several server work processes. If one fails, the J2EE engine is still available...

Regards,

Olivier

Former Member
0 Kudos

Hi ,

The VM parameters are properly set according to the SAP note.

Former Member
0 Kudos

That's what I said : Even with recommended VM parameters the J2EE server process is not robust enough.

Workaround : define several server processes.

Olivier

Answers (4)

Answers (4)

lakshminarayanan_m
Contributor
0 Kudos

Hi krishna,

Problem is due to overload of your server. What is ur RAM size.

I already provided one solution for this problem in this blog go thru..

U can add one more server node to ur java server.

Regards

MLN

Former Member
0 Kudos

Krishna,

Anytime the j2ee engine dies unexpectedly you must check the following log files in the work directory, std_server0.out and dev_server0. The dev_server0 will usually provide the exit code with a small description and the std_server0.out will provide the runtime details. In the std_server0.out search for "OutOfMemory" as this is one of the most common issues. Try to find the section of the std_server0.out that appears just before you see the restart occurring (before managers are restarting). Please provide any exception information you find there and the details just before the exception such as garbage collection data.

Regards,

Nathan

Former Member
0 Kudos

Hi,

This is the log in dev_sdm at the time its restarting:

[Thr 1972] JLaunchRequestFunc: receive command:17, argument:0 from pid:4712

[Thr 1972] JLaunchIShutdownInvoke: set shutdown interval (stop:1233548267/end:1233548387/TO:120)

[Thr 1972] JLaunchProcessCommand: Invoke VM Shutdown

[Thr 1972] JHVM_FrameworkShutdownDirect: invoke direct shutdown

[Thr 1972] JLaunchISetState: change state from [Running (3)] to [Stopping (5)]

[Thr 2480] Mon Feb 02 09:47:48 2009

[Thr 2480] JLaunchIExitJava: exit hook is called (rc = 0)

[Thr 2480] JLaunchCloseProgram: good bye (exitcode = 0)

-


trc file: "D:\usr\sap\EP3\JC00\work\dev_sdm", trc level: 1, release: "700"

-


node name : sdm

pid : 4568

system name : EP3

system nr. : 00

started at : Mon Feb 02 09:49:23 2009

arguments :

arg[00] : D:\usr\sap\EP3\JC00\exe\jlaunch.exe

arg[01] : pf=D:\usr\sap\EP3\SYS\profile\EP3_JC00_invtsvtzm109

arg[02] : -DSAPINFO=EP3_00_sdm

arg[03] : pf=D:\usr\sap\EP3\SYS\profile\EP3_JC00_invtsvtzm109

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

JStartupReadInstanceProperties: read instance properties [D:\usr\sap\EP3\JC00\SDM\program\config\sdm_jstartup.properties]

-> ms host : invtsvtzm109

-> ms port : 3901

-> OS libs : D:\usr\sap\EP3\JC00\exe

-> Admin URL :

-> run mode : NORMAL

-> run action : NONE

-> enabled : yes

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

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

Used property files

-> files [00] : D:\usr\sap\EP3\JC00\SDM\program\config\sdm_jstartup.properties

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

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

Instance properties

-> ms host : invtsvtzm109

-> ms port : 3901

-> os libs : D:\usr\sap\EP3\JC00\exe

-> admin URL :

-> run mode : NORMAL

-> run action : NONE

-> enabled : yes

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

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

Bootstrap nodes

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

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

Worker nodes

-> [00] sdm : D:\usr\sap\EP3\JC00\SDM\program\config\sdm_jstartup.properties

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

[Thr 5808] Mon Feb 02 09:49:23 2009

[Thr 5808] JLaunchRequestQueueInit: create named pipe for ipc

[Thr 5808] JLaunchRequestQueueInit: create pipe listener thread

[Thr 5988] JLaunchRequestFunc: Thread 5988 started as listener thread for np messages.

[Thr 4836] WaitSyncSemThread: Thread 4836 started as semaphore monitor thread.

[Thr 5808] NiInit3: NI already initialized; param 'maxHandles' ignored (1;202)

[Thr 5808] CPIC (version=700.2006.09.13)

[Thr 5808] INFO: Invalid property value [Debbugable=yes]

[Thr 5808] [Node: SDM] java home is set by profile parameter

Java Home: C:\j2sdk1.4.2_13-x64

[Thr 5808] JStartupICheckFrameworkPackage: can't find framework package D:\usr\sap\EP3\JC00\exe\jvmx.jar

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

JStartupIReadSection: read node properties [sdm]

-> node name : SDM

-> node type : sdm

-> node execute : yes

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

-> java parameters :

-> java vm version : 1.4.2_13-b06

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

-> java vm type : server

-> java vm cpu : amd64

-> heap size : 256M

-> root path : D:\usr\sap\EP3\JC00\SDM\program

-> class path : D:\usr\sap\EP3\JC00\SDM\program\bin\SDM.jar

-> OS libs path : D:\usr\sap\EP3\JC00\exe

-> main class : SDMInternal

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

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

-> framework path : D:\usr\sap\EP3\JC00\exe\jstartup.jar;D:\usr\sap\EP3\JC00\exe\jvmx.jar

-> shutdown class : com.sap.sdm.jstartup.shutdown.InternalShutDown

-> parameters : server sdmhome=D:/usr/sap/EP3/JC00/SDM/program

-> debuggable : yes

-> debug mode : no

-> debug port : 50002

-> shutdown timeout : 120000

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

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

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

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

Java Parameters: -Xss2m

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

JHVM_LoadJavaVM: VM Arguments of node [SDM]

-> stack : 1048576 Bytes

-> arg[ 0]: exit

-> arg[ 1]: abort

-> arg[ 2]: vfprintf

-> arg[ 3]: -Denv.class.path=C:\j2sdk1.4.2_13-x64\jre\lib

-> arg[ 4]: -Dsys.global.dir=D:\usr\sap\EP3\SYS\global

-> arg[ 5]: -Dapplication.home=D:\usr\sap\EP3\JC00\exe

-> arg[ 6]: -Djava.class.path=D:\usr\sap\EP3\JC00\exe\jstartup.jar;D:\usr\sap\EP3\JC00\exe\jvmx.jar;D:\usr\sap\EP3\JC00\SDM\program\bin\SDM.jar

-> arg[ 7]: -Djava.library.path=C:\j2sdk1.4.2_13-x64\jre\bin\server;C:\j2sdk1.4.2_13-x64\jre\bin;C:\j2sdk1.4.2_13-x64\bin;D:\usr\sap\EP3\JC00\exe;C:\Program Files\Support Tools\;c:\Program Files (x86)\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\Dell\SysMgt\RAC5;C:\Program Files (x86)\Dell\SysMgt\oma\bin;C:\j2sdk1.4.2_13-x64\bin;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\BINN;D:\usr\sap\EP3\SYS\exe\uc\NTAMD64

-> arg[ 8]: -Dmemory.manager=256M

-> arg[ 9]: -Xmx256M

-> arg[ 10]: -DLoadBalanceRestricted=no

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

-> arg[ 12]: -Djstartup.ownProcessId=4568

-> arg[ 13]: -Djstartup.ownHardwareId=K1574829461

-> arg[ 14]: -Djstartup.whoami=sdm

-> arg[ 15]: -Djstartup.debuggable=yes

-> arg[ 16]: -Xss2m

-> arg[ 17]: -DSAPINFO=EP3_00_sdm

-> arg[ 18]: -DSAPSTARTUP=1

-> arg[ 19]: -DSAPSYSTEM=00

-> arg[ 20]: -DSAPSYSTEMNAME=EP3

-> arg[ 21]: -DSAPMYNAME=invtsvtzm109_EP3_00

-> arg[ 22]: -DSAPDBHOST=INVTSVTZM109

-> arg[ 23]: -Dj2ee.dbhost=INVTSVTZM109

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

CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources

CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain

CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub

CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS

CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices

CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile

CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup

CompilerOracle: exclude com/sapportals/portal/navigation/cache/CacheNavigationNode getAttributeValue

CompilerOracle: exclude com/sapportals/portal/navigation/TopLevelNavigationiView PrintNode

CompilerOracle: exclude com/sapportals/wcm/service/ice/wcm/ICEPropertiesCoder encode

CompilerOracle: exclude com/sap/lcr/pers/delta/importing/ObjectLoader loadObjects

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readElement

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readSequence

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/TypeMappingImpl initializeRelations

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/GeneratedComplexType _loadInto

[Thr 5160] JHVM_LoadJavaVM: Java VM created OK.

and this is the dev _dispatcher log:

JLaunchISetHttpPort: set http port 50000

[Thr 3384] JLaunchISetHttpsPort: set https port 50001

[Thr 4696] JLaunchISetP4Port: set p4 port 50004

[Thr 5792] JLaunchISetHttpPort: set http port 50000

[Thr 5792] JLaunchISetHttpsPort: set https port 50001

Kindly help me.

Former Member
0 Kudos

Hi,

Check your physical memory and heap size.

If possible then tell me , what is your physical memory? and also post your VM settings. heap size and all.

Warm Regards

Pramod

Former Member
0 Kudos

Hi ,

I still could not solve this problem . Any help would be appreciable.

This is the log in dev_jcontrol:

[Thr 3900] JControlExecuteBootstrap: execute bootstrap process [bootstrap]

[Thr 3900] [Node: bootstrap] java home is set by profile parameter

Java Home: C:\j2sdk1.4.2_13-x64

[Thr 3900] JStartupICheckFrameworkPackage: can't find framework package D:\usr\sap\EP3\JC00\exe\jvmx.jar

Is there any thing to do with this..

lakshminarayanan_m
Contributor
0 Kudos

hi,

pls follows this blog

i already provided one solution for such problem..

Note : what is ur system type (dual or single stake), RAM and Paging size. Reply...

Regards

MLN

Former Member
0 Kudos

Hi,

There could be multiple reasons. Why dont you analyste the WORK directory of J2ee instance? Check log files like, dev_serve0, dev_disp e.t.c

These will help you in understanding the problem better.