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.
In order to help to track this down I just changed the whole insertion process to just one line which calls a stored procedure with 4 parameters (varchar(15), datetime, char(1), varchar(512)). The memory leak is still clearly visible, memory usage is continuously increasing.
Memory size during script run: