(In newest log4j version - 1.2.17) when connection in JDBCAppender is unexpected closed (e.q because of internet disconnect or database down), then after connection restoration jdbcAppender can't open new connection because getConnection methos still return close connection. Consequences of this are that nothing will be logged to database until server restart.