[Twisted-Python] Circular references in TLSMemoryBIOProtocol

2018-01-17 Thread Ilya Skriblovsky
Hello, I have the Twisted app that serves tons of short-lived TLS connections using TLSMemoryBIOFactory. I usually set loosened garbage collector thresholds in production environment for the sake of performance. But I've noticed that this app's RAM usage quickly grows up to unreasonable values. Di

Re: [Twisted-Python] Circular references in TLSMemoryBIOProtocol

2018-01-17 Thread L. Daniel Burr
Hi Ilya, On January 17, 2018 at 3:09:52 PM, Ilya Skriblovsky (ilyaskriblov...@gmail.com) wrote: [Trimmed for context] So using weakrefs makes all protocol instances and instances of TLSMemoryBIOProtocol to be deleted right after a connection is closed. Less circular-dependent objects → less G

Re: [Twisted-Python] Circular references in TLSMemoryBIOProtocol

2018-01-17 Thread Glyph
> On Jan 17, 2018, at 1:09 PM, Ilya Skriblovsky > wrote: > > Hello, > > I have the Twisted app that serves tons of short-lived TLS connections using > TLSMemoryBIOFactory. I usually set loosened garbage collector thresholds in > production environment for the sake of performance. But I've n