After upgrading Django to 1.6, my celery worker ate RAM. It seems that the memory allocated for workers is not freed and grows after each task.
Related Settings:
# DB: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'somedb', 'USER': '', 'PASSWORD': '', 'HOST': 'localhost', 'PORT': '', } }
Similar versions of the package:
Django==1.6 celery==3.0.24 django-celery==3.0.23 billiard==2.7.3.34 kombu==2.5.16 redis==2.7.6
Serves both in my local env (with DEBUG=False ), which starts the worker manually, and in an intermediate environment where celery works with Upstart.
Update:
- Tried setting
autocommit=False without success. - Maybe this is not related to updating the version of Django, but with some settings or third-party packages that I had to update to make the transition to 1.6.
source share