[rabbitmq-discuss] STOMP error report: client_timeout

Michael Justin michael.justin at gmx.net
Thu Jun 19 08:01:17 BST 2014

Hello! Will the RabbitMQ 3.3.2 server STOMP plugin log client_timeout 
errors like the one below when the client connection dies and the Stomp 
client-side heartbeat stops? A user of my Stomp library reports that 
this error message appears frequently in a RPC system.

The RPC architecture is:

* Stomp clients (1000+) + Java AMQP 
servers(several)---HAproxy---RabbitMQ (cluster of two nodes)

Further information I received from the user:

* client time-out parameter of HAproxy is set to 120 seconds
* heart-beat parameter of RabbitMQ is set to 580 seconds
* Stomp client-side heart-beat parameter 10 seconds, no server heart-beats

I can imagine that the server operating system will keep the Stomp 
connection in TIME_WAIT state for a while after a client crash and the 
server will detect missing Stomp heart-beats if there is no more pending 
data in the socket. Would this be a potential cause of this log message?


=ERROR REPORT==== 15-May-2014::08:32:20 ===
** Generic server <0.4515.272> terminating
** Last message in was {'$gen_cast',client_timeout}
** When Server state == 
                                 <<" ->">>,
** Reason for termination ==
** client_timeout

2, erlang's report:

=CRASH REPORT==== 15-May-2014::08:32:20 ===
     initial call: gen:init_it/6
     pid: <0.4515.272>
     registered_name: []
     exception exit: client_timeout
       in function  gen_server2:terminate/3
     ancestors: [<0.4506.272>,rabbit_stomp_client_sup_sup,rabbit_stomp_sup,
     messages: [{'EXIT',<0.4523.272>,{shutdown,normal}}]
     links: [<0.4506.272>]
     dictionary: [{guid_secure,{{4,rabbit at fqmq1,#Ref<0.0.314.394>},0}}]
     trap_exit: true
     status: running
     heap_size: 987
     stack_size: 27
     reductions: 1097
=SUPERVISOR REPORT==== 15-May-2014::08:32:20 ===
      Supervisor: {<0.4506.272>,
      Context:    child_terminated
      Reason:     client_timeout
      Offender:   [{pid,<0.4515.272>},

More information about the rabbitmq-discuss mailing list