[CONPY-108] Memory leak while continuously inserting/updating data Created: 2020-08-20 Updated: 2020-08-29 Resolved: 2020-08-29 |
|
| Status: | Closed |
| Project: | MariaDB Connector/Python |
| Component/s: | DBAPI 2.0 |
| Affects Version/s: | 1.0.1 |
| Fix Version/s: | 1.0.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Sven Siegel | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 19.10, MariaDB 10.5.5-MariaDB-1:10.5.5+maria~focal - mariadb.org binary distribution |
||
| Attachments: |
|
| Description |
|
I'm running the connector to feed IOT data from a broker into MariaDB tables. It opens a single connection and uses a single cursor. The values for "pyformat" style are specified as a dict. While running the script I can watch the script continuously growing up to several GB during a few hours. I already checked that it is related to the MariaDB actions by commenting out the three execute() calls, what is completely stopping memory growth. I also checked what would happen if I do a cyclic cursor.close() and connection.close(), but no change, memory is not getting released. If any additional information is required please let me know. Update 2020-08-22:
Memory size during script run:
|
| Comments |
| Comment by Georg Richter [ 2020-08-22 ] |
|
Thank for your bug report. |
| Comment by Sven Siegel [ 2020-08-27 ] |
|
Some more info:
|
| Comment by Georg Richter [ 2020-08-29 ] |
|
Fixed in rev. bd560c2bb91df7679e60c6f12a38c4a2aea4cb32 |