sqlconverter icon indicating copy to clipboard operation
sqlconverter copied to clipboard

Memory Leak

Open robbjordan opened this issue 6 years ago • 2 comments

I am running a 64 bit machine with windows 10. I have 16gb ram.

I am converting a SQL Table that is ~ 40gb.

The program crashes everytime at ~ 9 gb.

You can watch the memory leak happen as the SQL Lite db is being created....there is a steady climb in memory until approximaly 80% ram is used...

The code needs to be refactored to manage this. Not sure of the solution as of yet.

robbjordan avatar May 31 '19 16:05 robbjordan

I'm afraid I'm not using this code any longer since I discovered sqlalchemy allows you to write fast and friendly Python scripts to access MSSQL (plus SQLite, MySQL, PostgreSQL, etc.) databases using fast and friendly Python scripts.

But I presume there are memory leak detection tools along the lines of valgrind/memcheck that could help?

jschultz avatar Jun 08 '19 00:06 jschultz

I guess not too many using this for larger systems. I ended up writing a different solution to take the output files, merge them..and use the sqllite3 command line to do the migration. Pretty simple and required really no code and did the 40gb in a few hours.

robbjordan avatar Jun 11 '19 15:06 robbjordan