You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2002/11/25 17:30:23 UTC
DO NOT REPLY [Bug 14827] New: -
JDBCAppender removes list keeps growing
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14827>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14827
JDBCAppender removes list keeps growing
Summary: JDBCAppender removes list keeps growing
Product: Log4j
Version: 1.2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Appender
AssignedTo: log4j-dev@jakarta.apache.org
ReportedBy: jcl@pc-intouch.com
Accoding to the source code for JDBCAppender in version 1.2.7
in the method flushBuffer the 'removes' list is never cleared just
gets add called only. So the list will keep expanding.
While the buffer list gets removeAll called so it shrinks.
Needs to add removes.clear after buffer.removeAll(removes).
Otherwise this might be a memory leak.
Do you see the same thing?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>