activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Enormous amount of db-xxx.log files in "scheduler" directory
Date Thu, 22 Oct 2015 21:39:55 GMT
On 10/22/2015 05:32 PM, Martin Lichtin wrote:
> Right, but the JMX "JobScheduler" MBean shows no jobs at all (the
> 'AllJobs' attribute is empty).
> It also shows NextScheduleTime=1970-01-01 00:59:59.
>
> Turning on tracing, it shows:
>
> 2015-10-22 12:33:18,502 | TRACE | heckpoint Worker |
> JobSchedulerStoreImpl | 105 - org.apache.activemq.activemq-osgi -
> 5.11.2 | A remove in log 1 has an add still in existance.
> 2015-10-22 12:33:18,503 | TRACE | heckpoint Worker |
> JobSchedulerStoreImpl | 105 - org.apache.activemq.activemq-osgi -
> 5.11.2 | A remove in log 2 has an add still in existance.
> ..... for lots more log xxx ....
>
> The redelivery plugin very very rarely comes into action, so I still
> don't understand why there's all this data being stored.
>
> On 22.10.2015 15:47, Timothy Bish wrote:
>> On 10/22/2015 04:46 AM, Martin Lichtin wrote:
>>> Can you help me understand what is stored in the "scheduler" directory?
>>> I see about 14G of db-xxx.log files sitting there.
>>>
>>> All queues are empty and also the kahadb directory contains just one
>>> db-nnn.log file.
>>>
>>> schedulerSupport is enabled only due to use of the redelivery plugin.
>>>
>>> I'm pretty puzzled to see two directories ("kahadb" and "scheduler")
>>> containing message db files, with the latter one filling up.
>>>
>> The scheduler is a KahaDB based store that is used to hold and manage
>> the scheduled messages for the broker.  If you are using the broker side
>> redelivery plugin then there could be messages store in the scheduler.
>> You can use the JMX MBean to query what is contained in the scheduler.
>
Best thing would be to create a unit test that can produce the scenario
where the broker fails to remove the scheduler logs, I believe there is
already some testing in the activemq-unit-tests that tests log cleanup
you could reference.

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.redhat.com 
twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message