directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel L├ęcharny <elecha...@gmail.com>
Subject Operation timing in logs
Date Wed, 08 May 2013 10:48:08 GMT
Hi guys,

FYI, I have added some timing for each operation. This is not activated
by default you have to modify the log4j.properties to get it :

log4j.logger.org.apache.directory.server.OPERATION_TIME=DEBUG

will produces such logs :

[12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Add
operation took 28404000 ns
[12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Lookup
operation took 500000 ns
[12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Lookup
operation took 278000 ns
[12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Lookup
operation took 590000 ns
[12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Bind
operation took 7820000 ns
[12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Unbind
operation took 81000 ns
[12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Lookup
operation took 305000 ns
[12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Bind
operation took 94000 ns
[12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Unbind
operation took 22000 ns
...

This could be useful for gathering the operation and tell how much time
it took to process eah operation.

I'm considering offering more information, like the specific operation,
but this would be much verbose.

I will commit that soon.

-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com 


Mime
View raw message