How spool messages to disk when using Non-Durable Topics?

2016-02-15 Thread fengcanyue
http://activemq.apache.org/slow-consumers.html here write: Non-durable topics are the scenario which is most affected by slow consumers since the messages are not persistent and messages generally go to all consumers (who have a valid selector) Here are the various things we can do block/slow the p

Re: How fileCursor works? AMQ5.9.1

2016-02-14 Thread fengcanyue
the earliest non-dispatched message will be discarded when full. i wish the more message buffer to disk when memory limit reach. can you give me one xml file that can do it ? thanks!! -- View this message in context: http://activemq.2283324.n4.nabble.com/How-fileCursor-works-AMQ5-9-1-tp4706

Re: How fileCursor works? AMQ5.9.1

2016-02-03 Thread fengcanyue
http://activemq.apache.org/message-cursors.html Here describe "buffer to disk if non-persistent pending cursor is full". My message is non-persistent. when i use queue, non-persistent message will buffer to temp file. but w

How fileCursor works? AMQ5.9.1

2016-02-03 Thread fengcanyue
hi: I have one producer and one consumer, producer is fast,but consumer is slower. so i wish memroyLimit is reached,the message will store to disk . but the fileCursor don not work well. The MemoryPercentUsage has reached 100,but i don not find file under tmp_storage/ who can tell me why?

ActiveMQ.Advisory.MessageDiscarded.Queue

2015-10-09 Thread fengcanyue
advisory code: Destination destination =session.createQueue("test"); Destination advisoryDestination = AdvisorySupport.getMessageDiscardedAdvisoryTopic(destination); MessageConsumer consumer = session.createConsumer(advisoryDestination); consumer.setMessageListener(new MessageListen

how to check conntcion state is ok

2015-06-06 Thread fengcanyue
activeMQConnection.isStarted();If retrun of this function is true, is the connection ok? activeMQConnection.isStatsEnabled();when will this function return true? -- View this message in context: http://activemq.2283324.n4.nabble.com/how-to-check-conntcion-state-is-ok-tp4697349.html Sent from