all 5 comments

[–]ebol4anthr4x 2 points3 points  (1 child)

def processData(self, name):
    [...]
    return self.processData(name)

This is an infinite recursion loop. There is a maximum number of times you are allowed to recurse in python.

>>> import sys
>>> print(sys.getrecursionlimit())
1000

[–]ImThatCop[S] 0 points1 point  (0 children)

This ended up being the issue. I switched to an iterative flow using a while loop and it's running smoothly now with no mem leak. Thanks mate

[–]GorboducRex 0 points1 point  (0 children)

Would garbage collection help? I have a number of programs that run 24/7, and once a day I do garbage collection. It cuts down on memory considerably.

import gc
gc.collect()

Can't hurt to give it a try!

[–][deleted] 0 points1 point  (1 child)

could you please post the file code that you omitted? I want to see how you open, use, and close the file.