Hi there,
we had the same issue when we were using topics and had durable subscribers
which wouldn't connect for up to 4 days.
The kahadb files would only be cleaned up when the last durable
subscriber has
received the message. In our case the topic in in question didn't have a
lot of traffic,
but it still had the effect you are seeing.
We have solved the issue with configuring a mulit kaha db store and
giving the topic
it's own space.
AFAIR Gary Tully has written a pretty good blog article about what's
going on and why
using a multi kahadb works in that case.
http://blog.garytully.com/2011/11/activemq-multiple-kahadb-instances.html
Hope that helps
Andreas
On 13/03/17 11:39, Hidekazu wrote:
I use ActiveMQ ver 5.14.3.
I thought the size of kahaDB wouldn't get bigger if ActiveMQ could sent data
to subscriber.
However, the size of kahaDB continues increasing even it can send all the
data to subscriber.
There is no pending queue in GUI management console.
Is there any necessary parameter to keep making kahaDB small?
I would appreciate it if someone tells me how I should do.
------------------------<kahaDB.log>------------------------
[apl01 kahadb]$ ll
合計 3746764
-rw-r--r-- 1 root root 33554432 2月 28 16:09 2017 db-105.log
-rw-r--r-- 1 root root 33554432 2月 19 01:29 2017 db-11.log
-rw-r--r-- 1 root root 33554432 3月 1 00:31 2017 db-110.log
-rw-r--r-- 1 root root 33554432 2月 19 02:43 2017 db-12.log
-rw-r--r-- 1 root root 33554432 3月 1 13:06 2017 db-123.log
-rw-r--r-- 1 root root 33554432 3月 1 17:11 2017 db-124.log
-rw-r--r-- 1 root root 33554432 2月 21 00:09 2017 db-16.log
-rw-r--r-- 1 root root 33554432 3月 6 23:42 2017 db-177.log
-rw-r--r-- 1 root root 33554432 3月 9 19:10 2017 db-235.log
-rw-r--r-- 1 root root 33554430 3月 10 01:00 2017 db-247.log
-rw-r--r-- 1 root root 33554432 3月 10 02:01 2017 db-268.log
-rw-r--r-- 1 root root 33554432 3月 10 03:03 2017 db-269.log
-rw-r--r-- 1 root root 33554432 3月 10 03:08 2017 db-270.log
-rw-r--r-- 1 root root 33554432 3月 10 04:12 2017 db-292.log
-rw-r--r-- 1 root root 33554432 3月 10 04:22 2017 db-294.log
-rw-r--r-- 1 root root 33554432 3月 10 04:32 2017 db-296.log
-rw-r--r-- 1 root root 33554432 3月 10 04:42 2017 db-298.log
-rw-r--r-- 1 root root 33554432 3月 10 09:08 2017 db-338.log
-rw-r--r-- 1 root root 11158203 3月 10 16:02 2017 db-366.log
-rw-r--r-- 1 root root 11244566 3月 10 16:08 2017 db-367.log
-rw-r--r-- 1 root root 11764385 3月 10 16:13 2017 db-368.log
-rw-r--r-- 1 root root 21460669 3月 10 16:19 2017 db-369.log
-rw-r--r-- 1 root root 23776551 3月 10 16:25 2017 db-370.log
-rw-r--r-- 1 root root 23069634 3月 10 16:30 2017 db-371.log
-rw-r--r-- 1 root root 23219525 3月 10 16:36 2017 db-372.log
-rw-r--r-- 1 root root 33554371 3月 10 16:53 2017 db-373.log
-rw-r--r-- 1 root root 22192884 3月 10 16:48 2017 db-374.log
-rw-r--r-- 1 root root 33554462 3月 10 17:41 2017 db-375.log
-rw-r--r-- 1 root root 18633461 3月 10 16:54 2017 db-376.log
-rw-r--r-- 1 root root 17423968 3月 10 16:59 2017 db-377.log
-rw-r--r-- 1 root root 17114570 3月 10 17:05 2017 db-378.log
-rw-r--r-- 1 root root 16535790 3月 10 17:10 2017 db-379.log
-rw-r--r-- 1 root root 16265110 3月 10 17:16 2017 db-380.log
-rw-r--r-- 1 root root 16283027 3月 10 17:21 2017 db-381.log
-rw-r--r-- 1 root root 16230848 3月 10 17:27 2017 db-382.log
-rw-r--r-- 1 root root 16099668 3月 10 17:32 2017 db-383.log
-rw-r--r-- 1 root root 4124591 3月 10 17:38 2017 db-384.log
-rw-r--r-- 1 root root 33554432 3月 10 17:46 2017 db-385.log
-rw-r--r-- 1 root root 15641628 3月 10 17:43 2017 db-386.log
-rw-r--r-- 1 root root 10966867 3月 10 17:49 2017 db-388.log
-rw-r--r-- 1 root root 11988658 3月 10 17:55 2017 db-390.log
-rw-r--r-- 1 root root 1713321 3月 10 18:00 2017 db-392.log
-rw-r--r-- 1 root root 11952512 3月 10 18:06 2017 db-394.log
-rw-r--r-- 1 root root 13227031 3月 10 18:11 2017 db-396.log
-rw-r--r-- 1 root root 698330 3月 10 18:17 2017 db-398.log
-rw-r--r-- 1 root root 33554432 3月 10 18:27 2017 db-399.log
-rw-r--r-- 1 root root 20457202 3月 10 18:22 2017 db-400.log
-rw-r--r-- 1 root root 33554432 3月 10 18:32 2017 db-401.log
-rw-r--r-- 1 root root 23959259 3月 10 18:28 2017 db-402.log
-rw-r--r-- 1 root root 33554432 3月 10 18:38 2017 db-403.log
-rw-r--r-- 1 root root 5412549 3月 10 18:33 2017 db-404.log
-rw-r--r-- 1 root root 33554448 3月 10 18:44 2017 db-405.log
-rw-r--r-- 1 root root 2580 3月 10 18:39 2017 db-406.log
-rw-r--r-- 1 root root 33554441 3月 10 18:50 2017 db-407.log
-rw-r--r-- 1 root root 11947455 3月 10 18:49 2017 db-408.log
-rw-r--r-- 1 root root 33554432 3月 10 18:55 2017 db-409.log
-rw-r--r-- 1 root root 11983421 3月 10 18:55 2017 db-410.log
-rw-r--r-- 1 root root 33554432 3月 10 19:01 2017 db-411.log
-rw-r--r-- 1 root root 9228757 3月 10 19:01 2017 db-412.log
-rw-r--r-- 1 root root 33554432 3月 10 19:07 2017 db-413.log
-rw-r--r-- 1 root root 13031238 3月 10 19:06 2017 db-414.log
-rw-r--r-- 1 root root 33554432 3月 10 19:13 2017 db-415.log
-rw-r--r-- 1 root root 13249263 3月 10 19:12 2017 db-416.log
-rw-r--r-- 1 root root 33554432 3月 10 19:19 2017 db-417.log
-rw-r--r-- 1 root root 8052175 3月 10 19:17 2017 db-418.log
-rw-r--r-- 1 root root 33554432 3月 10 19:24 2017 db-419.log
-rw-r--r-- 1 root root 11440497 3月 10 19:23 2017 db-420.log
-rw-r--r-- 1 root root 33554432 3月 10 19:30 2017 db-421.log
-rw-r--r-- 1 root root 11458860 3月 10 19:28 2017 db-422.log
-rw-r--r-- 1 root root 33554432 3月 10 19:36 2017 db-423.log
-rw-r--r-- 1 root root 11453650 3月 10 19:34 2017 db-424.log
-rw-r--r-- 1 root root 33554432 3月 10 19:42 2017 db-425.log
-rw-r--r-- 1 root root 11558436 3月 10 19:39 2017 db-426.log
-rw-r--r-- 1 root root 33554432 3月 10 19:48 2017 db-427.log
-rw-r--r-- 1 root root 11512783 3月 10 19:45 2017 db-428.log
-rw-r--r-- 1 root root 33554432 3月 10 19:53 2017 db-429.log
-rw-r--r-- 1 root root 11427258 3月 10 19:50 2017 db-430.log
-rw-r--r-- 1 root root 33554432 3月 10 19:59 2017 db-431.log
-rw-r--r-- 1 root root 11426117 3月 10 19:56 2017 db-432.log
-rw-r--r-- 1 root root 33554451 3月 10 20:04 2017 db-433.log
-rw-r--r-- 1 root root 11752543 3月 10 20:02 2017 db-434.log
-rw-r--r-- 1 root root 33554432 3月 10 20:13 2017 db-435.log
-rw-r--r-- 1 root root 17178983 3月 10 20:10 2017 db-436.log
-rw-r--r-- 1 root root 33554432 3月 10 20:23 2017 db-437.log
-rw-r--r-- 1 root root 13064742 3月 10 20:19 2017 db-438.log
-rw-r--r-- 1 root root 33554432 3月 10 20:34 2017 db-439.log
-rw-r--r-- 1 root root 11496506 3月 10 20:28 2017 db-440.log
-rw-r--r-- 1 root root 33554432 3月 10 20:44 2017 db-441.log
-rw-r--r-- 1 root root 11613996 3月 10 20:37 2017 db-442.log
-rw-r--r-- 1 root root 33554432 3月 10 20:54 2017 db-443.log
-rw-r--r-- 1 root root 11572453 3月 10 20:48 2017 db-444.log
-rw-r--r-- 1 root root 33554432 3月 10 21:04 2017 db-445.log
-rw-r--r-- 1 root root 11657084 3月 10 20:56 2017 db-446.log
-rw-r--r-- 1 root root 11736317 3月 10 21:03 2017 db-447.log
-rw-r--r-- 1 root root 33554432 3月 10 21:14 2017 db-448.log
-rw-r--r-- 1 root root 11655340 3月 10 21:11 2017 db-449.log
-rw-r--r-- 1 root root 33554432 3月 10 21:24 2017 db-450.log
-rw-r--r-- 1 root root 11599701 3月 10 21:17 2017 db-451.log
-rw-r--r-- 1 root root 11569231 3月 10 21:24 2017 db-452.log
-rw-r--r-- 1 root root 33554432 3月 10 21:34 2017 db-453.log
-rw-r--r-- 1 root root 11557135 3月 10 21:31 2017 db-454.log
-rw-r--r-- 1 root root 33554432 3月 10 21:44 2017 db-455.log
-rw-r--r-- 1 root root 11484629 3月 10 21:38 2017 db-456.log
-rw-r--r-- 1 root root 11465856 3月 10 21:44 2017 db-457.log
-rw-r--r-- 1 root root 33554432 3月 10 21:53 2017 db-458.log
-rw-r--r-- 1 root root 11509188 3月 10 21:52 2017 db-459.log
-rw-r--r-- 1 root root 33554432 3月 10 22:03 2017 db-460.log
-rw-r--r-- 1 root root 11535369 3月 10 21:58 2017 db-461.log
-rw-r--r-- 1 root root 33554432 3月 10 22:13 2017 db-462.log
-rw-r--r-- 1 root root 11493312 3月 10 22:05 2017 db-463.log
-rw-r--r-- 1 root root 11418328 3月 10 22:12 2017 db-464.log
-rw-r--r-- 1 root root 33554432 3月 10 22:24 2017 db-465.log
-rw-r--r-- 1 root root 11354254 3月 10 22:19 2017 db-466.log
-rw-r--r-- 1 root root 33554432 3月 10 22:37 2017 db-467.log
-rw-r--r-- 1 root root 11424887 3月 10 22:25 2017 db-468.log
-rw-r--r-- 1 root root 11461242 3月 10 22:32 2017 db-469.log
-rw-r--r-- 1 root root 11466414 3月 10 22:37 2017 db-470.log
-rw-r--r-- 1 root root 33554432 3月 10 23:34 2017 db-471.log
-rw-r--r-- 1 root root 11445462 3月 10 22:42 2017 db-472.log
-rw-r--r-- 1 root root 11366383 3月 10 22:47 2017 db-473.log
-rw-r--r-- 1 root root 11523021 3月 10 22:52 2017 db-474.log
-rw-r--r-- 1 root root 11050675 3月 10 22:57 2017 db-475.log
-rw-r--r-- 1 root root 11044206 3月 10 23:02 2017 db-476.log
-rw-r--r-- 1 root root 12162160 3月 10 23:07 2017 db-477.log
-rw-r--r-- 1 root root 21747941 3月 10 23:12 2017 db-478.log
-rw-r--r-- 1 root root 23387783 3月 10 23:18 2017 db-479.log
-rw-r--r-- 1 root root 23885560 3月 10 23:23 2017 db-480.log
-rw-r--r-- 1 root root 24294349 3月 10 23:28 2017 db-481.log
-rw-r--r-- 1 root root 20831859 3月 10 23:33 2017 db-482.log
-rw-r--r-- 1 root root 33554432 3月 11 00:03 2017 db-483.log
-rw-r--r-- 1 root root 17501114 3月 10 23:38 2017 db-484.log
-rw-r--r-- 1 root root 16312158 3月 10 23:43 2017 db-485.log
-rw-r--r-- 1 root root 15078670 3月 10 23:48 2017 db-486.log
-rw-r--r-- 1 root root 14234846 3月 10 23:53 2017 db-487.log
-rw-r--r-- 1 root root 13205763 3月 10 23:58 2017 db-488.log
-rw-r--r-- 1 root root 11803947 3月 11 00:03 2017 db-489.log
-rw-r--r-- 1 root root 33554432 3月 11 00:08 2017 db-490.log
-rw-r--r-- 1 root root 33554432 3月 11 00:12 2017 db-491.log
-rw-r--r-- 1 root root 33554432 3月 11 00:17 2017 db-492.log
-rw-r--r-- 1 root root 10925899 3月 11 00:13 2017 db-493.log
-rw-r--r-- 1 root root 33554432 3月 11 00:22 2017 db-494.log
-rw-r--r-- 1 root root 9561631 3月 11 00:18 2017 db-495.log
-rw-r--r-- 1 root root 33554432 3月 13 16:07 2017 db-496.log
-rw-r--r-- 1 root root 8318697 3月 11 00:25 2017 db-497.log
-rw-r--r-- 1 root root 33554432 2月 3 09:09 2017 db-7.log
-rw-r--r-- 1 root root 33554432 2月 5 06:37 2017 db-8.log
-rw-r--r-- 1 root root 33554435 2月 19 00:05 2017 db-9.log
-rw-r--r-- 1 root root 589115392 3月 11 11:05 2017 db.data
-rw-r--r-- 1 root root 38602216 3月 11 11:05 2017 db.redo
-rw-r--r-- 1 root root 8 3月 10 16:43 2017 lock
------------------------<part of ActiveMQ config>------------------------
<broker xmlns="http://activemq.apache.org/schema/core"
brokerName="localhost" persistent="true" deleteAllMessagesOnStartup="false"
dataDirectory="${activemq.data}">
<plugins>
<jaasAuthenticationPlugin
configuration="LdapConfiguration" />
</plugins>
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry topic=">" enableAudit="false">
<pendingMessageLimitStrategy>
<constantPendingMessageLimitStrategy limit="1000"/>
</pendingMessageLimitStrategy>
</policyEntry>
</policyEntries>
</policyMap>
</destinationPolicy>
<managementContext>
<managementContext createConnector="false"/>
</managementContext>
<persistenceAdapter>
<kahaDB directory="/data/ems/apache-activemq/data/kahadb"/>
</persistenceAdapter>
<systemUsage>
<systemUsage>
<memoryUsage>
<memoryUsage percentOfJvmHeap="70" />
</memoryUsage>
<storeUsage>
<storeUsage limit="20 gb"/>
</storeUsage>
<tempUsage>
<tempUsage limit="10 gb"/>
</tempUsage>
</systemUsage>
</systemUsage>
------------------------------------------------------------------------
--
View this message in context:
http://activemq.2283324.n4.nabble.com/The-size-of-KahaDB-doesn-t-seem-to-decrease-tp4723669.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.