Memory leak in xmlrpclib.py on Windows?
Mark Moales
mmoales at fluent.com
Mon Aug 19 17:38:44 EDT 2002
Hi,
I'm running a very simple XML-RPC client/server on Windows 2000 using
Python 2.2.1. Using perfmon, I see about a 4K increase in the size of
my client and server processes after about a half dozen or so calls. It
doesn't seem to matter which parser I use (expat or SlowParser). I get
similar results. I also ran my test on a Linux box without expat and
did NOT see the leak. Any ideas? I seem to remember seeing something
about a leak in the expat parser, but, like I said, I see similar
results using the SlowParser. I've attached my scripts if anyone would
like to try it.
Thanks!
Mark Moales
-------------- next part --------------
from SimpleXMLRPCServer import *
class SimpleServer:
def processData(self):
print 'SimpleServer invoked'
return 1
if __name__ == '__main__':
server = SimpleXMLRPCServer(('localhost', 80))
server.register_instance(SimpleServer())
server.serve_forever()
-------------- next part --------------
from xmlrpclib import ServerProxy
import gc
import time
def runit():
sp = ServerProxy('http://localhost')
for i in range(600):
result = sp.processData()
time.sleep(0.5)
if __name__ == '__main__':
runit()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmoales.vcf
Type: text/x-vcard
Size: 281 bytes
Desc: Card for Mark Moales
URL: <http://mail.python.org/pipermail/python-list/attachments/20020819/219367b6/attachment.vcf>
More information about the Python-list
mailing list