Memory Leak

Guy guy.flowers at Machineworks.com
Tue Feb 24 09:59:16 EST 2004


Hi

It might take me a little time to explain this but here goes.
Firstly I'm not using the latest upto date python releases so my first
plan is to try more upto date rels of python and win32 libs, as this
has fixed problems for me in the past (Don't like doing this as it
usally breaks stuff and sys admin are slow to update software,
although they do a cracking job, just covering my back.)

I've created a build script for my companies product, the product is
in c and can be built using makefiles and gmake and dsps if using
win32. The script seems to work ok, it builds by setting processes off
and then it returns the built libs exe to a network area.

The problems occure when I build more than one flavour of the product,
(there are 16 possible flavours and about 50 modules which get turned
into libs and exe's  this means theres 800 processes to be set off one
after the other or if using a clean build 1600 process and thats just
for win32, to build one flavour it takes about 40 mins on my comp.)

When using the build script it keeps logs of what its built and
records all output from the process all these python objs and lists
are destroyed by using del to try and free up memory, this never seems
to have that much effect the memory just keeps getting used up until
usally the script or python crashes due to the lack of mem.

Sometimes for no reason the mem that python uses seem to purge itself
and start a fresh, I don't know why this is or how to control it.

I also don't think the del is working, not sure.

The script itself is made up of my code, python, python win32 libs and
a 3rd party module off the internet which controls the processes
(which has been of great help)

I just wondering if anybody can give me any ideas about whats going on
here, or maybe some memory purge commands or memory dianosics so I can
see which python objs are using all the mem.

TIA
Guy



More information about the Python-list mailing list