hafidz1977 / pymodbus

Automatically exported from code.google.com/p/pymodbus
0 stars 0 forks source link

Memory leaks on pymodbus-0.9.0 #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed intensive memory leaks in app which uses pymodbus; I make test module 
(attached), here is result:

gc: uncollectable <ModbusSerialClient 0xb72de42c>
gc: uncollectable <dict 0xb72d9c64>
gc: uncollectable <ModbusTransactionManager instance at 0xb72de46c>
gc: uncollectable <ModbusRtuFramer 0xb72de4ac>
gc: uncollectable <dict 0xb72d9dfc>
gc: uncollectable <dict 0xb72d9cec>
gc: uncollectable <ClientDecoder 0xb72de48c>
gc: uncollectable <dict 0xb72d9d74>
<class 'pymodbus.client.sync.ModbusSerialClient'>
   rtu baud[9600]
<type 'dict'>
   {'parity': 'N', 'baudrate': 9600, 'transaction': <pymodbus.client.sync.ModbusTra
<type 'instance'>
   <pymodbus.client.sync.ModbusTransactionManager instance at 0xb72de46c>
<class 'pymodbus.transaction.ModbusRtuFramer'>
   <pymodbus.transaction.ModbusRtuFramer object at 0xb72de4ac>
<type 'dict'>
   {'client': <pymodbus.client.sync.ModbusSerialClient object at 0xb72de42c>, 'resp
<type 'dict'>
   {'_ModbusRtuFramer__buffer': '', '_ModbusRtuFramer__end': '\r\n', 'decoder': <py
<class 'pymodbus.factory.ClientDecoder'>
   <pymodbus.factory.ClientDecoder object at 0xb72de48c>
<type 'dict'>
   {}

OS - Debian Squeeze, python 2.6.6
How to avoid these leaks?

Original issue reported on code.google.com by nitr0man...@gmail.com on 21 Nov 2013 at 7:36

Attachments:

GoogleCodeExporter commented 9 years ago
Please use the latest from github; there have been many updates since this 
release.

Original comment by Bashw...@gmail.com on 5 Jan 2015 at 7:25