Friday, 15 June 2012

java - Spring JMS listener receives empty messages causing CPU consumption -


I am working on an application that uses some Jm Cues to update / obtain an external system is. To test my application, I am using Mokroviner and especially the JM module. I am facing a strange behavior: When I start my application, I see the CPU increasing 100% and analyzing the thread dump, I can see that the main reason JM is related to the listeners, which is the message me empty This message causes a message like:

  Consumer ... no message received  

Now I am trying to understand that Does this issue have a bad relationship Of the

  & lt; Bean id = ""   

Destination Manager "factory-bean =" MoknerjMSObject Factory "factory-method =" joining manager "/> gt; bean id =" mock jmcinacationfattery "factory- Bean = "MoknerjMSObjectFactoric" factory-method = "MakeOmoconconnationFattery" Lazy-Init = "True" />

: Listener-Container Concatenence = "5" Connection-factory = "fake jmcnacfnicht" destination-type = "queue" messaging converter = "my messe Converter "accept =" transcribed "> & lt; / jms: listener-container & Lt; Bean id = "myConsumer" ... />

UPDATE I opened an issue on the Mokrunner project, you can see it After some investigation I came to know that the problem lies in the bad conversation with the spring

/ code> that listener has a voting based implementation and, given that Mall Instruction is very fast due to overloading of CPUs when responding to requests. I have patched a fake runner by adding an ugly thread sleep in the replication method, maybe it is being fixed now or later.


No comments:

Post a Comment