Memory leak in on Windows?

Mark Moales mmoales at
Mon Aug 19 23:38:44 CEST 2002


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.


Mark Moales
-------------- next part --------------
from SimpleXMLRPCServer import *

class SimpleServer:
    def processData(self):
        print 'SimpleServer invoked'
        return 1

if __name__ == '__main__':
    server = SimpleXMLRPCServer(('localhost', 80))

-------------- next part --------------
from xmlrpclib import ServerProxy
import gc
import time

def runit():
    sp = ServerProxy('http://localhost')

    for i in range(600):
        result = sp.processData()

if __name__ == '__main__':
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmoales.vcf
Type: text/x-vcard
Size: 281 bytes
Desc: Card for Mark Moales
URL: <>

More information about the Python-list mailing list