Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
To be reviewed
-
Resolution: Won't Fix or Usage Issue
-
Affects Version/s: 2.1.2
-
Fix Version/s: None
-
Component/s: Transport: JMS
-
Labels:
-
Environment:
My environment is Mule 2.1.2, ActiveMQ 5.1.0 and JDK 1.5.0 on Mac OS X 10.5.6
-
User impact:Medium
-
Configuration:
-
Log Output:As described above
-
Similar Issues:
MULE-143JMS connector to Oracle Queues (Oracle Advanced Queuing)MULE-1546JMS "Not connected" when stopping Mule under loadMULE-248Tcp Provider not handling large messagesMULE-2863Problems sending JMS messages inside JMS-transacted UMOMULE-4254Some transport dispatchers send messages even when the connector has been stoppedMULE-1610Issue sending message to File Directory using Mule 1.3.3
MULE-5785 Automatic response when sending message to a queueMULE-203Unable to send messages to SeeBeyond JMS queueMULE-1758Simple functional test fails for large number of messages
MULE-5749 Expected size of the number of messages to aggregate being set to -1 when using a jms reply-to channel
Description
I have noted a problem with Mule and ActiveMQ where Mule stops sending JMS messages when no receiver consumes the messages sent by Mule.
Mule stops sending after some 2200 messages (1 kB each) are placed on the out-queue.
I have attached my Mule config and a sample JMS Producer and Consumer.
My environment is Mule 2.1.2, ActiveMQ 5.1.0 and JDK 1.5.0 on Mac OS X 10.5.6
Test Scenario: Producer --> in-queue --> Mule --> out-queue --> Consumer
(Using the ActiveMQ Console to monitor queue-depth)
1. Only ActiveMQ and Mule are started and the queues are empty
in-queue: 0 messages
out-queue: 0 messages
2. Start Producer (sends 2000 messages)
- all messages are consumed by Mule and send to its out-queue as expected.
in-queue: 0 messages
out-queue: 2000 messages
3. Start Producer again (sends 2000 messages)
- PROBLEM: Only some of the messages from the in-queue are processed by Mule and sent to the out-queue
in-queue: 1779 messages
out-queue: 2220 messages
4. Start Producer a third time (sends 2000 messages)
- PROBLEM REMAINS: Sometimes the Producer hangs and sometimes is succeeds in sending its messages but nothing is passed on by Mule to the out-queue.
in-queue: 3779 messages if producer succeeds and for example 2511 messages if the Producer hangs
out-queue: 2220 messages
5. Start Consumer
- The hanging Producer (if any) completes and the Consumer process all 6000 messages, both queues are now empty again as expected!
in-queue: 0 messages
out-queue: 0 messages
So no messages are lost, Mule does however not process them until the Consumer is started!
I can easily send 10 000 messages to the out-queue using the Producer directly so it seems not to be an "ActiveMQ only" problem.
I don't know on how to proceed with error analysis, any help would be very appreciated.
Regards,
Magnus.
Tried the above with ActiveMQ 4.1.1, same result but at a later stage.
Mule stops sending messages from the in-queue to the out-queue after some 6398 messages and the producer that sends messages to the mule in-queue hangs until the consumer is started (consuming messages from the out-queue).