Skip to content

Commit

Permalink
Clearing parse warnings at every parse config call.
Browse files Browse the repository at this point in the history
Without this change, configurations that generated parse
warnings would cause the parse_warnings array to grow
without bounds as reload() was called.  In an application
where reload() is called repeatedly, the memory usage
of the supervisord process grew over time.

Addresses Supervisor#89
  • Loading branch information
Philip Zeyliger committed Feb 21, 2012
1 parent 5d8a8bf commit cf16e6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions supervisor/options.py
Expand Up @@ -481,6 +481,9 @@ def process_config_file(self, do_usage=True):
self.process_group_configs = new

def read_config(self, fp):
# Clear parse warnings, since we may be re-reading the
# config a second time after a reload.
self.parse_warnings = []
section = self.configroot.supervisord
if not hasattr(fp, 'read'):
try:
Expand Down

0 comments on commit cf16e6a

Please sign in to comment.