FileAppender: if logging happens in a thread, queue never gets processed and, potentially, you run out of heap space

Description

This because of this in the logger:

1 2 3 4 5 // If we are not in a thread, then start the log listener, else queue it if( !getUtil().inThread() ){ // Ensure log listener startLogListener(); }

Which makes sense most of the time, but if you only perform logging from within a thread, it never gets processed and the heap slowly fills up and cannot release (or quickly in the case of a lot of log events, especially errors).

Status

Assignee

Luis Majano

Reporter

Dominic Watson

Labels

None

Priority

Major
Configure