cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic restart of SAP J2EE Engine

Former Member
0 Kudos

Dear Experts,

We have a 2004s server. Once in a while the server automatically restarts. When i checked the J2EE Engine tab in NWDS, the SDM, dispatcher and server0 all have a flag called automatic restart and it is set to YES. How do i set them to NO.

Thanu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Krishnan

There is a possibility of Memory constraint as well

Some times this will be the reason for restart of Java Engineu2026..

Please check the logs in /usr/sap/SID/DVEBMGu2026/work u2026

you may get a clueu2026.

In the logs some times it shows like u201Cout of memoryu201D

If you find that there is problem with your Memoryu2026..

Most likely that will be with your Java VM settings. Please look into this SAP NOTE: 723909 for the same.

Regards

Hari.

Former Member
0 Kudos

See SAP note 709140 and the referenced notes.

-XX:PermSize=2048m

-XX:MaxPermSize=2048m

Find in the trace file if the Error Code is 666. then your issue will be resolved with above changes.

-


Reward if Helpful -


Former Member
0 Kudos

Parameter : rdisp/j2ee_start

Short description : Enable start of J2EE server

Parameter description :

You can use this parameter to activate or deactivate the start of

parameter. The J2EE Engine start is automatically deactivated, if a certain

number of attempts ( rdisp/j2ee_error ) to start the server have failed.

The start can be reactivated by dynamically changing this parameter

to the value 1.

The parameter exe/j2ee specifies where the SAP J2EE Engine can

be found, or the shell command with which it is started.

So you have to maintain the parameters rdisp/j2ee_start and rdisp/j2ee_error (on this restart depends)

Former Member
0 Kudos

Hi Deepak Sharma,

Thank you for the reply.

using rz10 I changed the value rdisp/j2ee_start to 0. After this the j2ee server is not starting.

Former Member
0 Kudos

Hi

If it is correct answer, then assign some points and close the thread.

Former Member
0 Kudos

Hi Deepak Sharma ,

I want my j2ee_server to run but not automatically restart

thanu

former_member698570
Active Participant
0 Kudos

Hi,

you can use jcmon to achieve this.

Goto your SYS/profile directory:

e.g. /usr/sap/<SID>/SYS/profile or X:\usr\sap.... on Windows

Start jcmon using:

jcmon pf=<PROFILE>



The Profile to be used is +<SID>_JC<InstanceNo>_<hostname>+

This will show up jcmon:


============================================================

JControl Monitor Program - Main Menu

============================================================

0 : exit

-


10 : Cluster Administration Menu

-


20 : Local Administration Menu

-


30 : Shared Memory Menu (Solid Rock, experimental)

-




Choose 20 for Local Administration Menu


You see a list of processes:

|Idx|Name               |PID     |State                |Error|Restart|
|---|-------------------|--------|---------------------|-----|-------|
|  0|dispatcher         |   16670|Running              |    0|yes    |
|  1|server0            |   16671|Running              |    0|yes    |
|  2|SDM                |   16672|Running              |    0|yes    |
------------------------------------------------------------


============================================================
JControl Monitor Program - Administration Menu  (Local)
Instance : JC_<hostname>_<SID>_<InstanceNo>
============================================================
0  : exit
1  : Refresh list
2  : Shutdown instance
3  : Enable process
4  : Disable process
5  : Restart process
6  : Enable bootstrapping on restart
7  : Disable bootstrapping on restart
8  : Enable debugging
9  : Disable debugging
10 : Dump stacktrace
11 : Process list
12 : Port list
13 : Activate debug session
14 : Deactivate debug session
15 : Increment trace level
16 : Decrement trace level
17 : Enable process restart
18 : Disable process restart
19 : Restart instance
------------------------------------------------------------
40 : Enable bootstrapping for all processes with specified process type
41 : Enable bootstrapping for all processes excluding specified process type
------------------------------------------------------------
99 : Extended process list on/off
------------------------------------------------------------

Now use 17/18 to toggle Process restart

e.g.

command => 18

Process Index : 1
        Do you want to disable process restart for process [0/dispatcher] ? (y/n): y

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

Hope this helps

Cheers