Home > Enterprise > The accumulation of activemq message, ask why
The accumulation of activemq message, ask why
Time:09-19
Our system use ActiveMQ interaction effect between the two systems,
The question now is, each send a few messages (number), there is a message is mq on the pending,
Queue consumers don't always read the news,
After a long time, the amount of the pending slow growth,
What message will be MQ to stay, can't take?
CodePudding user response:
Is the latest version? Is it possible to is its own a bug This look at
CodePudding user response:
Could you tell me the original poster is which model? Point-to-point or publish/subscribe pattern Point-to-point: message data is persisted, each message can be consumed, not listening to the QUEUE address can also be consumption, data is not lost, one-on-one accepting strategy, to ensure data integrity, a message by only one consumer spending; Message consumer spending time queue is not locked by news provider, that is to say, only news provider to perform the session. The close () after the consumer will perform the onMessage () method, The publish/subscribe pattern: subscribe to a topic of consumers can only consume news released since its subscription; A message can be multiple consumer spending,