frame_too_large error on RabbitMQ DLQ

99 views
Skip to first unread message

Felipe Costa

unread,
Jan 17, 2019, 2:34:29 PM1/17/19
to rabbitmq-users
I'm using rabbitMQ 3.6.16 and using Spring cloud Strem (@StreamListenter) for consumer my messages.

My consumer are with error.

Channel shutdown: connection error; protocol method: #method<connection.close>(reply-code=501, reply-text=FRAME_ERROR - type 2, all octets = <<>>: {frame_too_large,141402,131064}, class-id=0, method-id=0).

is there any way to limit the size of the exception thrown by the DLQ or is it better to increase the size of the frame?

Gary Russell

unread,
Jan 17, 2019, 2:56:38 PM1/17/19
to rabbitm...@googlegroups.com
Please ask Spring questions on Stack Overflow (tagged with spring-amqp and/or spring-cloud-stream); we (the Spring team) only monitor this group sporadically.

Starting with version 2.1.0. the Rabbit binder has a new property...

frameMaxHeadroom

The number of bytes to reserve for other headers when adding the stack trace to a DLQ message header. All headers must fit within the frame_max size configured on the broker. Stack traces can be large; if the size plus this property exceeds frame_max then the stack trace will be truncated. A WARN log will be written; consider increasing the frame_max or reducing the stack trace by catching the exception and throwing one with a smaller stack trace.

Default: 20000

With earlier versions you had to catch the exception in the listener and throw a new exception with a shorter stack trace (or increase the frame_max).

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages