SAP Knowledge Base Article - Preview

2310450 - Delay when starting Message Server

Symptom

A delay is noticed in starting the Message Server. Due to this reason, one or more application servers (D<nr>) are unable to establish connection to the Message Server during startup.

System Log entries (transaction SM21) show that system is starting, work processes are being started, but the Dispatcher is unable to connect to the Message Server:

pic1.jpg
...........
pic2.jpg

Dispatcher trace file (/usr/sap/<SYS>/<instance name>/work/dev_disp) shows the error when establishing connection to Message Server:

   ***LOG Q0I=> NiPConnect2: <MS_host>:39<nr>: connect (xxx: Connection refused) [nixxi.cpp 3283]
   *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 17/sock 11
       (SI_ECONN_REFUSE/xxx; I4; ST; <MS_host>:39<nr>) [nixxi.cpp    3283]
   NiICloseHandle: closing initial hdl 17
   *** ERROR => MsIAttachEx: NiBufConnect to <MS_host>/39<nr> failed (rc=NIECONN_REFUSED) [msxxi.c      718]
   ***LOG Q0L=> DpLoopInit, nomscon () [dpxxdisp.c   1804]

Once the Message Server is started, Dispatcher trace file shows normal connection:

   ***LOG Q0K=> DpMsAttach, mscon (<MS_host>) [dpMessageSer 1663]
   DpStartStopMsg: send start message (myname is > <hostname>_<SID>_<nr>                         <)
   DpStartStopMsg: start msg sent to message server o.k.


Read more...

Environment

  • Operating System independent
  • Database independent
  • SAP NetWeaver
  • SAP Web Application Server for SAP S/4HANA
  • ABAP Platform

Product

ABAP platform all versions ; SAP NetWeaver all versions ; SAP Web Application Server for SAP S/4HANA all versions

Keywords

delay, Message Server, Failed to establish a connection to the message server, /bin/sleep, sleep, application server, startup, starting, SM21, dispatcher, /usr/sap/<SYS>/<instance name>/work/dev_disp, LocalDrive\usr\sap\<SID>\SYS\profile, Operating system call connect failed, Execute_04 = local /bin/sleep 30; $(DIR_EXECUTABLE)/<service>$(FT_EXE), AL11 , KBA , BC-CST-MS , Message Service , BC-CST-DP , Dispatcher, Task Handler , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.