##// END OF EJS Templates
request-wrapper: show gc collection count
marcink -
r758:9da6203b default
parent child Browse files
Show More
@@ -57,8 +57,9 b' class RequestWrapperTween(object):'
57 safe_str(get_access_path(request)), total, get_user_agent(request.environ))
57 safe_str(get_access_path(request)), total, get_user_agent(request.environ))
58
58
59 if self.gc_max_requests and count % self.gc_max_requests == 0:
59 if self.gc_max_requests and count % self.gc_max_requests == 0:
60 log.info('Performing gc.collect now')
60 log.debug('Performing gc.collect now')
61 gc.collect()
61 gc_count = gc.collect()
62 log.debug('gc collection freed %s objects', gc_count)
62
63
63 return response
64 return response
64
65
General Comments 0
You need to be logged in to leave comments. Login now