MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  AMQ9271E: Channel 'YMT.SV.SRVCON' timed out.

    Posted 2 days ago

    Hello All,

    I am see Channel 'YMT.SV.SRVCON' timed out. below is error log followed by channel snippet.

    ----- amqrmrsa.c : 628 --------------------------------------------------------
    06/16/2025 12:37:29 PM - Process(57585.1879) User(mqm) Program(amqrmppa)
                        Host(uc3600pmq01) Installation(Installation1)
                        VRMF(9.4.0.5) QMgr(RVCQQ1)
                        Time(2025-06-16T16:37:29.423Z)
                        RemoteHost(10.XXX.XX.XXX)
                        CommentInsert1(YMT.SV.SRVCON)
                        CommentInsert2(10.XXX.XX.XXX)
                        CommentInsert3(65 seconds)
     
    AMQ9271E: Channel 'YMT.SV.SRVCON' timed out.
     
    EXPLANATION:
    A timeout occurred with error code 0 (X'0') while waiting to receive from the
    other end of channel 'YMT.SV.SRVCON'. The address of the remote end of the
    connection was '10.XXX.XX.XXX'. The timeout value used was: 65 seconds.
     
    This error is an indication that the other end of the channel has become
    unresponsive or has terminated without the usual TCP/IP closure packets. The
    problem could be an abend of the remote channel MCA or a hang in a remote
    channel exit. The problem could also be that a router's or firewall's idle
    timeout policy has cut the connection such that a receive only ends when it
    eventually times out (as the TCP connection may not necessarily have been
    closed in a graceful manner). Normally a channel heartbeat keeps a connection
    alive, but if a router's or firewall's idle timeout is less than the channel
    heartbeat interval then that is a likely cause for this error. But if no
    channel heartbeat is configured then if a router's or firewall's idle timeout
    is less than the channel's disconnect interval, or if no channel disconnect
    interval is configured, then that can also be the cause for this error.
    ACTION:
    Check the other end of the channel for any errors that might point to being the
    cause of the timeout. If a router or firewall is present then check that any
    configured timeouts are not less than the channel's HBINT and/or DISCINT
    attribute values.
    ----- amqccita.c : 5335 -------------------------------------------------------
    06/16/2025 12:37:29 PM - Process(57585.1879) User(mqm) Program(amqrmppa)
                        Host(uc3600pmq01) Installation(Installation1)
                        VRMF(9.4.0.5) QMgr(RVCQQ1)
                        Time(2025-06-16T16:37:29.423Z)
                        CommentInsert1(YMT.SV.SRVCON)
                        CommentInsert2(57585)
                        CommentInsert3(10.XXX.XX.XXX)
     
    AMQ9999E: Channel 'YMT.SV.SRVCON' to host '10.XXX.XX.XXX' ended abnormally.
     
    Below is my channel definition:
     
    AMQ8414I: Display Channel details.
       CHANNEL(YMT.SV.SRVCON)                CHLTYPE(SVRCONN)
       ALTDATE(2025-05-06)                     ALTTIME(10.52.37)
       CERTLABL( )                             COMPHDR(NONE)
       COMPMSG(NONE)                           DESCR( )
       DISCINT(0)                              HBINT(300)
       KAINT(AUTO)                             MAXINST(999999999)
       MAXINSTC(999999999)                     MAXMSGL(4194304)
       MCAUSER(SrvcPriyank)                    MONCHL(QMGR)
       RCVDATA( )                              RCVEXIT( )
       SCYDATA( )                              SCYEXIT( )
       SENDDATA( )                             SENDEXIT( )
       SHARECNV(10)                            SSLCAUTH(OPTIONAL)
       SSLCIPH(TLS_RSA_WITH_AES_256_GCM_SHA384)
       SSLPEER( )                              TRPTYPE(TCP)

    Thanks



    ------------------------------
    K Priyanka
    ------------------------------


  • 2.  RE: AMQ9271E: Channel 'YMT.SV.SRVCON' timed out.

    Posted 2 days ago

    A likely reason for this, as noted in the error message explanation, is a firewall has closed the socket due to inactivity. One way to keep the channel "active" from the perspective of the firewall is to set the heartbeat to a lower value to ensure something flows across the socket more frequently than this time out.

    So I advise to change the heartbeat value use to 60 seconds instead of the current (and default) 300 seconds.

    Try:

    ALTER CHANNEL(YMT.SV.SRVCON) CHLTYPE(SVRCONN) HBINT(60)

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 3.  RE: AMQ9271E: Channel 'YMT.SV.SRVCON' timed out.

    Posted 2 days ago

    Hello Morag,

    I changed channel's DISINT  property to 6000(that is default value as per documentation )
    HBINT to 300 and qm.ini file's tcp stanza as AtiveAlive =yes.

    I don't see any issue anymore. I am not sure about disint property 

    thanks 



    ------------------------------
    K Priyanka
    ------------------------------



  • 4.  RE: AMQ9271E: Channel 'YMT.SV.SRVCON' timed out.

    Posted 2 days ago

    Take care with this DISCINT attribute - the default is NOT 6000 for a SVRCONN type of channel, it is zero. The default 6000 is only for qmgr-qmgr channels, like a SENDER type channel.

    Setting DISCINT(6000) for a SVRCONN will end the channel after the client application has been inactive for this period of time. Probably not an issue, but perhaps just make sure that the design of the client application isn't one that sits idle for long periods?

    An alternative way of keeping the socket open instead of the way I suggested, is indeed to enable KeepAlive. That is the TCP/IP way of doing heartbeating, and HBINT is the MQ way of doing heartbeating. Both will have the same effect of keeping the socket alive.

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 5.  RE: AMQ9271E: Channel 'YMT.SV.SRVCON' timed out.

    Posted 2 days ago

    Thanks Morag,

    KP



    ------------------------------
    K Priyanka
    ------------------------------



  • 6.  RE: AMQ9271E: Channel 'YMT.SV.SRVCON' timed out.

    Posted 2 days ago

    I am confused with value 100 min on DISINT as per documentation this is default I altered the value to 100.

    When I created the channel the earlier value was 0

    during change window I did all change now I am not sure how these combinations worked.

    KAINT is auto

    please advise.

    thanks.



    ------------------------------
    K Priyanka
    ------------------------------



  • 7.  RE: AMQ9271E: Channel 'YMT.SV.SRVCON' timed out.

    Posted 2 days ago

    Perhaps you can provide the link to the page where it says the DISCINT(6000) is the default for SVRCONN channels and we can get that corrected.

    The DEFINE channel page for a SENDER and the DEFINE channel page for a SVRCONN show the defaults as 6000 and zero respectively.

    The SVRCONN channel was created with DISCINT(0) earlier because that is the default value for that type of channel.

    KAINT(AUTO) is fine - that is the only value available on Distributed platforms as keepalive is set to one value for the whole system in TCP/IP.

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 8.  RE: AMQ9271E: Channel 'YMT.SV.SRVCON' timed out.

    Posted yesterday

    Please see the link below:

    https://www.ibm.com/docs/en/ibm-mq/9.2.x?topic=keywords-discint-disconnect-interval



    ------------------------------
    K Priyanka
    ------------------------------



  • 9.  RE: AMQ9271E: Channel 'YMT.SV.SRVCON' timed out.

    Posted yesterday

    Thanks - I'll let IBM know the correction that is needed. I suspect what has happened is that page was originally written before the DISCINT field was even applicable to SVRCONN channels, and it didn't get quite enough of an update to explain the different default values when the field was added to SVRCONN channels at later date.

    Are you all sorted now? or is there anything else still troubling you?

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 10.  RE: AMQ9271E: Channel 'YMT.SV.SRVCON' timed out.

    Posted 20 hours ago

    Thank you Morag,

    I have updated the change you suggested.

    Thanks 



    ------------------------------
    K Priyanka
    ------------------------------