You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Aleksandar Ivanisevic <al...@ivanisevic.de> on 2010/12/08 14:54:20 UTC

KahaDB latch wait warnings


Just switched to kahadb on my amq 5.4.1 (fuse) and the log is filling
with this:


2010-12-08 14:26:12,668 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 119 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
2010-12-08 14:28:03,769 | WARN  | KahaDB PageFile flush: 7 queued writes, latch wait took 140 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
2010-12-08 14:28:39,125 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 112 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
2010-12-08 14:30:04,928 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 109 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
2010-12-08 14:30:28,788 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 18839 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker

quick code search turns out that this warning is fixed to 100ms

http://bit.ly/gYH1Zu

why 100ms and why is this important?



Re: KahaDB latch wait warnings

Posted by Aleksandar Ivanisevic <al...@ivanisevic.de>.

Sure, AMQ-3076

Gary Tully <ga...@gmail.com>
writes:

> In the main, it is not important, that should be at debug or trace
> level logging or removed altogether, it is just an indication of the
> pagefile sync to disk latency and the amount of concurrent writes that
> are pending at the time, an remnant of some performance tuning work
> that was done for 5.4.0. the 100ms limit is arbitrary.
> Do u mind tracking this with a jira issue as it will probably come up again.
>
> On 8 December 2010 13:54, Aleksandar Ivanisevic
> <al...@ivanisevic.de> wrote:
>>
>>
>> Just switched to kahadb on my amq 5.4.1 (fuse) and the log is filling
>> with this:
>>
>>
>> 2010-12-08 14:26:12,668 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 119 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>> 2010-12-08 14:28:03,769 | WARN  | KahaDB PageFile flush: 7 queued writes, latch wait took 140 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>> 2010-12-08 14:28:39,125 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 112 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>> 2010-12-08 14:30:04,928 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 109 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>> 2010-12-08 14:30:28,788 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 18839 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>>
>> quick code search turns out that this warning is fixed to 100ms
>>
>> http://bit.ly/gYH1Zu
>>
>> why 100ms and why is this important?
>>
>>
>>
>
>
>
> -- 
> http://blog.garytully.com
> http://fusesource.com
>

-- 
Ti si arogantan, prepotentan i peglaš vlastitu frustraciju. -- Ivan
Tišljar, hr.comp.os.linux


Re: KahaDB latch wait warnings

Posted by Gary Tully <ga...@gmail.com>.
resolved on trunk, will be in the next release.

On 9 December 2010 08:53, Aleksandar Ivanisevic
<al...@ivanisevic.de> wrote:
>
>
> Nope, this doesn't work any more, but adding
> log4j.logger.org.apache.kahadb.page.PageFile=ERROR to
> /opt/activemq/conf/log4j.properties does. Don't know what else it may
> silence though.
>
> "Pothier, Peter" <pp...@CROSSBEAMSYS.COM>
> writes:
>
>> In the startup script, add
>>
>>      -Dorg.apache.activemq.store.kahadb.LOG_SLOW_ACCESS_TIME=0
>>
>> to SUNJMX to turn off this logging.
>>
>> At least this works with 5.3.0.
>>
>> Peter P
>>
>> -----Original Message-----
>> From: Gary Tully [mailto:gary.tully@gmail.com]
>> Sent: Wednesday, December 08, 2010 10:24 AM
>> To: users@activemq.apache.org
>> Subject: Re: KahaDB latch wait warnings
>>
>> In the main, it is not important, that should be at debug or trace
>> level logging or removed altogether, it is just an indication of the
>> pagefile sync to disk latency and the amount of concurrent writes that
>> are pending at the time, an remnant of some performance tuning work
>> that was done for 5.4.0. the 100ms limit is arbitrary.
>> Do u mind tracking this with a jira issue as it will probably come up again.
>>
>> On 8 December 2010 13:54, Aleksandar Ivanisevic
>> <al...@ivanisevic.de> wrote:
>>>
>>>
>>> Just switched to kahadb on my amq 5.4.1 (fuse) and the log is filling
>>> with this:
>>>
>>>
>>> 2010-12-08 14:26:12,668 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 119 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>>> 2010-12-08 14:28:03,769 | WARN  | KahaDB PageFile flush: 7 queued writes, latch wait took 140 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>>> 2010-12-08 14:28:39,125 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 112 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>>> 2010-12-08 14:30:04,928 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 109 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>>> 2010-12-08 14:30:28,788 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 18839 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>>>
>>> quick code search turns out that this warning is fixed to 100ms
>>>
>>> http://bit.ly/gYH1Zu
>>>
>>> why 100ms and why is this important?
>>>
>>>
>>>
>>
>>
>>
>> --
>> http://blog.garytully.com
>> http://fusesource.com
>>
>
> --
> Ti si arogantan, prepotentan i peglaš vlastitu frustraciju. -- Ivan
> Tišljar, hr.comp.os.linux
>
>



-- 
http://blog.garytully.com
http://fusesource.com

Re: KahaDB latch wait warnings

Posted by Aleksandar Ivanisevic <al...@ivanisevic.de>.

Nope, this doesn't work any more, but adding
log4j.logger.org.apache.kahadb.page.PageFile=ERROR to
/opt/activemq/conf/log4j.properties does. Don't know what else it may
silence though.

"Pothier, Peter" <pp...@CROSSBEAMSYS.COM>
writes:

> In the startup script, add
>
>      -Dorg.apache.activemq.store.kahadb.LOG_SLOW_ACCESS_TIME=0
>
> to SUNJMX to turn off this logging.
>
> At least this works with 5.3.0.
>
> Peter P
>
> -----Original Message-----
> From: Gary Tully [mailto:gary.tully@gmail.com] 
> Sent: Wednesday, December 08, 2010 10:24 AM
> To: users@activemq.apache.org
> Subject: Re: KahaDB latch wait warnings
>
> In the main, it is not important, that should be at debug or trace
> level logging or removed altogether, it is just an indication of the
> pagefile sync to disk latency and the amount of concurrent writes that
> are pending at the time, an remnant of some performance tuning work
> that was done for 5.4.0. the 100ms limit is arbitrary.
> Do u mind tracking this with a jira issue as it will probably come up again.
>
> On 8 December 2010 13:54, Aleksandar Ivanisevic
> <al...@ivanisevic.de> wrote:
>>
>>
>> Just switched to kahadb on my amq 5.4.1 (fuse) and the log is filling
>> with this:
>>
>>
>> 2010-12-08 14:26:12,668 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 119 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>> 2010-12-08 14:28:03,769 | WARN  | KahaDB PageFile flush: 7 queued writes, latch wait took 140 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>> 2010-12-08 14:28:39,125 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 112 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>> 2010-12-08 14:30:04,928 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 109 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>> 2010-12-08 14:30:28,788 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 18839 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>>
>> quick code search turns out that this warning is fixed to 100ms
>>
>> http://bit.ly/gYH1Zu
>>
>> why 100ms and why is this important?
>>
>>
>>
>
>
>
> -- 
> http://blog.garytully.com
> http://fusesource.com
>

-- 
Ti si arogantan, prepotentan i peglaš vlastitu frustraciju. -- Ivan
Tišljar, hr.comp.os.linux


RE: KahaDB latch wait warnings

Posted by "Pothier, Peter" <pp...@CROSSBEAMSYS.COM>.
In the startup script, add

     -Dorg.apache.activemq.store.kahadb.LOG_SLOW_ACCESS_TIME=0

to SUNJMX to turn off this logging.

At least this works with 5.3.0.

Peter P

-----Original Message-----
From: Gary Tully [mailto:gary.tully@gmail.com] 
Sent: Wednesday, December 08, 2010 10:24 AM
To: users@activemq.apache.org
Subject: Re: KahaDB latch wait warnings

In the main, it is not important, that should be at debug or trace
level logging or removed altogether, it is just an indication of the
pagefile sync to disk latency and the amount of concurrent writes that
are pending at the time, an remnant of some performance tuning work
that was done for 5.4.0. the 100ms limit is arbitrary.
Do u mind tracking this with a jira issue as it will probably come up again.

On 8 December 2010 13:54, Aleksandar Ivanisevic
<al...@ivanisevic.de> wrote:
>
>
> Just switched to kahadb on my amq 5.4.1 (fuse) and the log is filling
> with this:
>
>
> 2010-12-08 14:26:12,668 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 119 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
> 2010-12-08 14:28:03,769 | WARN  | KahaDB PageFile flush: 7 queued writes, latch wait took 140 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
> 2010-12-08 14:28:39,125 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 112 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
> 2010-12-08 14:30:04,928 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 109 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
> 2010-12-08 14:30:28,788 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 18839 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>
> quick code search turns out that this warning is fixed to 100ms
>
> http://bit.ly/gYH1Zu
>
> why 100ms and why is this important?
>
>
>



-- 
http://blog.garytully.com
http://fusesource.com

Re: KahaDB latch wait warnings

Posted by Gary Tully <ga...@gmail.com>.
In the main, it is not important, that should be at debug or trace
level logging or removed altogether, it is just an indication of the
pagefile sync to disk latency and the amount of concurrent writes that
are pending at the time, an remnant of some performance tuning work
that was done for 5.4.0. the 100ms limit is arbitrary.
Do u mind tracking this with a jira issue as it will probably come up again.

On 8 December 2010 13:54, Aleksandar Ivanisevic
<al...@ivanisevic.de> wrote:
>
>
> Just switched to kahadb on my amq 5.4.1 (fuse) and the log is filling
> with this:
>
>
> 2010-12-08 14:26:12,668 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 119 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
> 2010-12-08 14:28:03,769 | WARN  | KahaDB PageFile flush: 7 queued writes, latch wait took 140 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
> 2010-12-08 14:28:39,125 | WARN  | KahaDB PageFile flush: 3 queued writes, latch wait took 112 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
> 2010-12-08 14:30:04,928 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 109 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
> 2010-12-08 14:30:28,788 | WARN  | KahaDB PageFile flush: 8 queued writes, latch wait took 18839 | org.apache.kahadb.page.PageFile | ActiveMQ Journal Checkpoint Worker
>
> quick code search turns out that this warning is fixed to 100ms
>
> http://bit.ly/gYH1Zu
>
> why 100ms and why is this important?
>
>
>



-- 
http://blog.garytully.com
http://fusesource.com