Memory Leak ?
Hi,
I'm having a problem using pymqi (1.0) to write some scripts that retrieve some information from MQ servers. Not sure 100% if related to a memory leak or a mistake of mine, but when I execute the following code it seems that some memory is not released:
This is an extract of the code, to retrieve the information from channels.
...
while True:
op=mq.cd()
ref = qm.connectTCPCl
pcf = mq.PCFExecute(qm)
# Next one is the line wich gets memory: if commented, memory doesn't grow
channels = pcf.MQCMD_
# Process information, name, status, ...
del channels
del pcf
del ref
del op
....
Of course this is not exactly the code I'm using on the scripts, probably I don't even need the deletes, but my code also involves an infinite loop for monitoring some stuff (queues depth and more). When executing the previous code I get the python.exe process memory growing until reaches aprox 2GB and then crashes.
Am I missing something ?
Other information is: reproduced with both pymqi 0.5d and 1.0, in a Windows 2003 system as MQ client. Targets systems are MQ 6 and 7 in different platforms (Win, Linux, iSeries). pymqi compiled with MQ client version 6.0.27 and MinGW
Any ideas ? Thank you for your time.
regards,
Joan
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- PyMQI Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dariusz Suchojad
- Solved:
- Last query:
- Last reply: