fix thread dead lock
add install/uninstall metric
persistent buffer to log4j appender