add a little more info to flush

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@741293 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-02-05 21:15:13 +00:00
parent 8262ef7903
commit f0af62f64d
1 changed files with 6 additions and 0 deletions

View File

@ -444,7 +444,13 @@ public class PageFile {
}
}
try {
int size = writes.size();
long start = System.currentTimeMillis();
checkpointLatch.await();
long end = System.currentTimeMillis();
if( end-start > 100 ) {
LOG.warn("KahaDB PageFile flush: " + size + " queued writes, latch wait took "+(end-start));
}
} catch (InterruptedException e) {
throw new InterruptedIOException();
}