You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by pankajmi <pa...@gmail.com> on 2010/09/23 17:13:21 UTC

FileCursor Issues

Hi All,

I am Using ActiveMQ 5.4 version. I have gone through the guide it says if we
use filecursor then messages' references will be stored in file if messages
are send in persistent mode.
I have configured ActiveMQ as follows - 
Scenario here is that, I have many consumers but few might be slow consumer
but I may have hundreds of thousands of message. I am using selector. I
define pageSize as large as possible and I am using filecursor so all paged
message doesn't come only in memory.
Now the problem is sometimes I get messages very slowly though my messages
for a particular selector are already in the queue and queue size is within
page size. Please let me know if I am making any mistake while configuring
activemq.
Early reply will helpful, because I am sort off stuck at this point.

----------------------------
 <broker useJmx="true" persistent="true" 
xmlns="http://activemq.apache.org/schema/core"
dataDirectory="${activemq.base}/data">


        <destinationPolicy>
                <policyMap>
                        <policyEntries>
                          <policyEntry queue=">" producerFlowControl="true"
memoryLimit="25mb" optimizedDispatch="true" maxPageSize="1000000">
                                        <pendingQueuePolicy>
                                           <!--  <vmQueueCursor/> -->
                                                <fileQueueCursor/>
                                          </pendingQueuePolicy>
                                </policyEntry>
                </policyEntries>
              </policyMap>
        </destinationPolicy>


    <networkConnectors>
    </networkConnectors>

    <persistenceAdapter>
      <jdbcPersistenceAdapter dataSource="#mysql-ds"
transactionIsolation="4"  />
    </persistenceAdapter>

<systemUsage>
        <systemUsage>
                <memoryUsage>
                        <memoryUsage limit="1024 mb" />
                </memoryUsage>
                <storeUsage>
                        <storeUsage limit="10 gb" name="foo" />
                </storeUsage>
                <tempUsage>
                        <tempUsage limit="1 gb" />
                </tempUsage>
        </systemUsage>
  </systemUsage>

--------------
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/FileCursor-Issues-tp2552213p2552213.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.