JMSException: onMessage took too long and was interrupted

298 views
Skip to first unread message

Marcio Vidal

unread,
Oct 27, 2020, 5:25:06 AM10/27/20
to rabbitmq-users

Hi All,

Anyone already had any similar problem before?

I am using RabbitMQ 3.8.2 , Erlang 22.1(Windows version) for more than 6 months and now sometimes I got this error

2020-10-23T01:07:16,069 ERROR [pool-190-thread-5] [com.rabbitmq.client.impl.ForgivingExceptionHandler] Consumer com.rabbitmq.jms.client.MessageListenerConsumer@3ed9bdf2 (jms-consumer-6c36f632-6e57-4d5f-9866-52c0089ba4eb) method handleDelivery for channel AMQChannel(amqp://inte...@10.xxx.xx.xx:5672/,38) threw an exception for channel AMQChannel(amqp:// interlok  @10.xxx.xx.xx:5672/,38)

java.io.IOException: com.rabbitmq.jms.util.RMQJMSException: onMessage took too long and was interrupted

After that error, the queue stuck, and to come back to work I need to restart the adapters to reset the connection with RabitMQ to clean the queues and reprocess the message manually. 

Any thoughts or ideas?


Many Thanks,

Marcio Vidal


Arnaud Cogoluegnes

unread,
Nov 2, 2020, 6:08:47 AM11/2/20
to rabbitm...@googlegroups.com
It's likely the processing of the message took too long. The client behavior is a bit drastic in this case, see [1] for a discussion about this. You can bump the value of RMQConnectionFactory#onMessageTimeoutMs to mitigate this.

I'm not sure I understand what you had to do to make the system work again, but this is a client-only problem, it should not affect the server in a bad way (making a queue crash or even the server crash).

[1] https://groups.google.com/g/rabbitmq-users/c/fD_cjNNgxoI/m/F268SjBODAAJ

________________________________________
From: rabbitm...@googlegroups.com <rabbitm...@googlegroups.com> on behalf of Marcio Vidal <marc...@gmail.com>
Sent: Tuesday, October 27, 2020 10:25 AM
To: rabbitmq-users
Subject: [rabbitmq-users] JMSException: onMessage took too long and was interrupted

Hi All,

Anyone already had any similar problem before?

I am using RabbitMQ 3.8.2 , Erlang 22.1(Windows version) for more than 6 months and now sometimes I got this error

2020-10-23T01:07:16,069 ERROR [pool-190-thread-5] [com.rabbitmq.client.impl.ForgivingExceptionHandler] Consumer com.rabbitmq.jms.client.MessageListenerConsumer@3ed9bdf2<mailto:com.rabbitmq.jms.client.MessageListenerConsumer@3ed9bdf2> (jms-consumer-6c36f632-6e57-4d5f-9866-52c0089ba4eb) method handleDelivery for channel AMQChannel(amqp://inte...@10.xxx.xx.xx:5672/,38) threw an exception for channel AMQChannel(amqp:// interlok @10.xxx.xx.xx:5672/,38)

java.io.IOException: com.rabbitmq.jms.util.RMQJMSException: onMessage took too long and was interrupted

After that error, the queue stuck, and to come back to work I need to restart the adapters to reset the connection with RabitMQ to clean the queues and reprocess the message manually.

Any thoughts or ideas?


Many Thanks,

Marcio Vidal


--
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<mailto:rabbitmq-user...@googlegroups.com>.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/610aa537-ae78-4781-a25e-0ee7cd585109n%40googlegroups.com<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2F610aa537-ae78-4781-a25e-0ee7cd585109n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cacogoluegnes%40vmware.com%7C5ba2884e166c4c00e66608d87a5a34e5%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637393875144417893%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Y05aWMURrsJT7NxMCDwNFTV79T%2Fqzb92btr6jwx%2B2TI%3D&reserved=0>.
Reply all
Reply to author
Forward
0 new messages