[ovirt-devel] [VDSM] Avoiding leaks when handling exceptions
Dan Kenigsberg
danken at redhat.com
Mon Sep 5 06:27:39 UTC 2016
On Sun, Sep 04, 2016 at 08:38:30PM +0300, Nir Soffer wrote:
> Hi all,
>
> I found an interesting post about error handling and how to avoid such
> leaks - please check:
> https://cosmicpercolator.com/2016/01/13/exception-leaks-in-python-2-and-3/
>
> Nir
Interesting. Afrer enough time, we would have one traceback object per
live thread, and we may have plenty of such object prior to garbage
collection.
Have you tried if running gc.collect() clears these stale traceback
objects you've seen?
More information about the Devel
mailing list