[issue12361] Memory Leak in File Logging

Jacob Perkins report at bugs.python.org
Sun Jun 19 01:37:00 CEST 2011


New submission from Jacob Perkins <japerk at gmail.com>:

I have a custom proxy server that was using a WatchedFileHandler for logging requests (the files were rotated with logrotate). It was leaking memory, and I had to use supervisord's memmon plugin to restart it whenever it exceed a certain threshold. I eventually tried disabling the WatchedFileHandler, and memory usage flattened out. I also have a StreamHandler logging the requests, so I have to conclude the leak is in WatchedFileHandler or FileHandler. This is with Python 2.6.6.

----------
components: Library (Lib)
messages: 138620
nosy: japerk
priority: normal
severity: normal
status: open
title: Memory Leak in File Logging
type: resource usage
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12361>
_______________________________________


More information about the Python-bugs-list mailing list