Re: Memory leak with twisted web server on QNX
Hello everyone! [this is my first post] I had a serious memory leak with twisted 2.0.1 and twisted web 0.5, when I created a web server with TLS, and every client connection increased the memory usage. I played with it a lot, and found out, if I comment out line of code in twisted.internet.posixbase, the leak is gone... This one: 322 def _startTLS(self): 323 self.TLS = 1 324 klass = self.__class__ 325 class TLSConnection(_TLSMixin, klass): 326 implements(interfaces.ISSLTransport) !! 327 #components.backwardsCompatImplements(TLSConnection) 328 self.__class__ = TLSConnection So if I uncomment this 'backwardCompatImplements' there is a serious memory leak, if I comment it out, there is no leak. I can show you the test programs if you want me to. Bye, Zsombor
On Sat, 05 Nov 2005 01:25:31 +0100, Nagy Zsombor
Hello everyone!
[this is my first post]
I had a serious memory leak with twisted 2.0.1 and twisted web 0.5, when I created a web server with TLS, and every client connection increased the memory usage. I played with it a lot, and found out, if I comment out line of code in twisted.internet.posixbase, the leak is gone...
This one:
322 def _startTLS(self): 323 self.TLS = 1 324 klass = self.__class__ 325 class TLSConnection(_TLSMixin, klass): 326 implements(interfaces.ISSLTransport) !! 327 #components.backwardsCompatImplements(TLSConnection) 328 self.__class__ = TLSConnection
So if I uncomment this 'backwardCompatImplements' there is a serious memory leak, if I comment it out, there is no leak.
I can show you the test programs if you want me to.
This makes sense. I'll see what I can do about it. Jean-Paul
On Fri, 4 Nov 2005 19:33:53 -0500, Jean-Paul Calderone
On Sat, 05 Nov 2005 01:25:31 +0100, Nagy Zsombor
wrote: Hello everyone!
[this is my first post]
I had a serious memory leak with twisted 2.0.1 and twisted web 0.5, when I created a web server with TLS, and every client connection increased the memory usage. I played with it a lot, and found out, if I comment out line of code in twisted.internet.posixbase, the leak is gone...
This one:
322 def _startTLS(self): 323 self.TLS = 1 324 klass = self.__class__ 325 class TLSConnection(_TLSMixin, klass): 326 implements(interfaces.ISSLTransport) !! 327 #components.backwardsCompatImplements(TLSConnection) 328 self.__class__ = TLSConnection
So if I uncomment this 'backwardCompatImplements' there is a serious memory leak, if I comment it out, there is no leak.
I can show you the test programs if you want me to.
This makes sense. I'll see what I can do about it.
This should be fixed in r15022. Could you give it a try and let me know? If it fixes it, we should be able to get this into the next point release.
Jean-Paul
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
I tried also the release 15022, in my case it doesn't fix the memory leak.
Do you have any idea about objects not collected ?
Jean-Paul Calderone
On Sat, 05 Nov 2005 01:25:31 +0100, Nagy Zsombor
wrote: Hello everyone!
[this is my first post]
I had a serious memory leak with twisted 2.0.1 and twisted web 0.5, when I created a web server with TLS, and every client connection increased the
memory usage. I played with it a lot, and found out, if I comment out line of code in twisted.internet.posixbase, the leak is gone...
This one:
322 def _startTLS(self): 323 self.TLS = 1 324 klass = self.__class__ 325 class TLSConnection(_TLSMixin, klass): 326 implements(interfaces.ISSLTransport) !! 327 #components.backwardsCompatImplements(TLSConnection) 328 self.__class__ = TLSConnection
So if I uncomment this 'backwardCompatImplements' there is a serious memory leak, if I comment it out, there is no leak.
I can show you the test programs if you want me to.
This makes sense. I'll see what I can do about it.
This should be fixed in r15022. Could you give it a try and let me know? If it fixes it, we should be able to get this into the next point release.
Jean-Paul
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
On Mon, Nov 07, 2005 at 03:09:59PM +0100, denis.leborgne@rieter.com wrote:
I tried also the release 15022, in my case it doesn't fix the memory leak. Do you have any idea about objects not collected ?
Use something like http://twistedmatrix.com/users/spiv/countrefs.py to get an idea about which objects are leaking. It should help you narrow down the problem. -Andrew.
participants (4)
-
andrew-twisted@puzzling.org
-
denis.leborgne@rieter.com
-
Jean-Paul Calderone
-
Nagy Zsombor