cancel
Showing results for 
Search instead for 
Did you mean: 

How to start and Stop J2EE engine

Former Member
0 Kudos

I have installed WEB AS ABAP + JAVA. For some reason J2EE engine is not up after the Java installation. How to I start and stop J2EE engine. The visual Admin is not connecting either saying connection lost.

I am running on Linux

thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi all,

I had the same error and it was just an stupid error in our case which I did want to share (you'll never know it might be the same problem in your case).

the reason that jcmon gives the error 'Can't attach to administration shared memory' is very logical. When the J2EE server hasn't started, jcmon can't reach its shared memory since it isn't there. Therefore this error does not mean anything else then look further why the j2ee server didn't start. The problem in our case was however that all the j2ee logs weren't filled so without error messages it will be difficult to solve the problem. And since the Abap system did startup succesfully I didn't had to look it those logs.

Finally after one day of irritation we found our reason. We changed something in the Abap Profiles, it is still unsure how it happend but with the change to the profile, the entries for STARTING the j2ee server disappeared. This way the j2ee server will never start, jcmon will only give errors because of this and the other log files will not be filled since they are not called!

The entries I am talking about are, for example: ms/server_port_0

jstartup/instance_properties

SDM_PROPERTIES

INSTANCE_PROPERTIES

jstartup/vm/home

exe/jlaunch

jstartup/protocol

jstartup/trimming_properties

icm/HTTP/j2ee_0

rdisp/frfc_fallback

rdisp/j2ee_timeout

rdisp/j2ee_start

rdisp/j2ee_start_control

rdisp/start_icman

If these are missing in your system, then that is the problem for sure. To solve the problem you have to logon to an working system and check the parameters there and adjust them to you parameters. If you have any questions, please feel free to mail me at nico.van.der.linden@logicacmg.com.

Hope this is usefull for you guys!

Kind regards,

Nico van der Linden...

deidre_logan
Participant
0 Kudos

We are running on HP-UX and there are 2 ways to start the Java server. Go to the Abap stack to transaction SMICM and then take the menu path Administration then choose J2EE server => Send soft shutdown => with restart.

you will see messages in the System log transaction SM21 that the Java server was set to shutdown and then you will see messages about the restart...

I Look in the work directory for any errors on startup of the Java server. The work directory is /usr/sap/<SID>/DVEBMGS##/work

Option 2 is the unix command jcmon in the SAP executable directory /sapmnt/<SID>/exe but can only be used when the java server is up and you want to take down the SDM or server threads.

you would issue the following command jcmon pf=<instance profile>

I hope this helps

then 20 for

Former Member
0 Kudos

I am seeing error on dev_jcmon while trying the start J2EE engine. I have 3G memory and plenty of swap space linux box. I am wondering what's going on..

[Thr 3074343040] *** ERROR => Can't attach to administration shared memory (rc=3

) [jcmonxx_mt.c 219]

Former Member
0 Kudos

I removed kernel.shmmax from sysctl.conf and made it temporary in the command line after restart. Worked fine after that.

I had it as kernel.shmmax=1073741824 in sysctl