我正在使用 ActiveMQ 和 kahadb 5.7.0。我的经纪人配置如下:
<amq:broker id="broker" useJmx="true" persistent="true" useShutdownHook="false" >
<amq:transportConnectors>
<amq:transportConnector uri="tcp://localhost:61616?jms.messagePrioritySupported=true" />
</amq:transportConnectors>
<amq:persistenceAdapter>
<amq:kahaPersistenceAdapter directory="activemq-data" maxDataFileLength="10g"/>
</amq:persistenceAdapter>
<amq:destinationPolicy>
<amq:policyMap>
<amq:policyEntries>
<amq:policyEntry queue=">" producerFlowControl="false" prioritizedMessages="true" > <amq:pendingQueuePolicy>
<amq:fileQueueCursor />
</amq:pendingQueuePolicy>
</amq:policyEntry>
</amq:policyEntries>
</amq:policyMap>
</amq:destinationPolicy>
<amq:systemUsage>
<amq:systemUsage>
<amq:memoryUsage>
<amq:memoryUsage limit="2 gb"/>
</amq:memoryUsage>
<amq:storeUsage>
<amq:storeUsage limit="20 gb"/>
</amq:storeUsage>
<amq:tempUsage>
<amq:tempUsage limit="5 gb"/>
</amq:tempUsage>
</amq:systemUsage>
</amq:systemUsage>
</amq:broker>
我遇到的问题是我看到目录 activemq-data 中的文件越来越大,尤其是带有 data-queue-data 的文件。大部分都达到了10g的限制
为什么不清理那些文件?