Yelp / python-gearman

Gearman API - Client, worker, and admin client interfaces
http://github.com/Yelp/python-gearman/
Other
242 stars 122 forks source link

Memory Leak found #6

Closed peick closed 13 years ago

peick commented 13 years ago

If you have a gearman client like the one below and you want to submit many jobs, then you run into a memory leak.

client = gearman.GearmanClient(server) for job in many_many_jobs: req = client.submit_job(task, data) ...

The problem is in the python module client_handler.py, where every job is stored in a dictionary but never deleted.

mtai commented 13 years ago

Working on a patch that should help alleviate (but not completely) solve your problem.

mtai commented 13 years ago

Closed with python-gearman 2.0.2

Thanks for the bug report!