activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Whaley (JIRA)" <>
Subject [jira] [Created] (AMQ-3444) Fail Fast or Warn on using fileCursors/fileQueueCursors when <broker persistent="false">
Date Wed, 10 Aug 2011 13:51:27 GMT
Fail Fast or Warn on using fileCursors/fileQueueCursors when <broker persistent="false">

                 Key: AMQ-3444
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Broker
    Affects Versions: 5.5.0
            Reporter: Jason Whaley

When working with a broker config for a client, we attempted to use fileCursors and fileQueueCursors
on all destinations.  What we noticed when monitoring JMX for specific queues was behavior
of vmCursors.  Once the memoryLimit for an individual destination hit 100%, the broker then
tried to spool the messages to disk but instead failed and the following exceptions were written
to log:

2011-08-09 13:50:22,892 [Usage Async Task                   ] ERROR FilePendingMessageCursor
      - Caught an IO Exception getting the DiskList 315_PendingCursor:FLEXNET-RX-REALTIME-QUEUE
	at org.apache.activemq.usage.Usage$
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
	at java.util.concurrent.ThreadPoolExecutor$

After eyeing the config a little more we noticed that <broker persistent="false">. 
Turning that back to "true" caused messages to spool to disk as expected.

This was obviously a misconfiguration, but there was no warning or indication that our configuration
was basically invalid and destined to fail.  At a minimum it would be useful to have a message
at WARN log level that states that fileCursor/fileQueueCursors will fail if <broker persistent="false">.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message