Skip to content

max_memory_per_child reached log is ERROR level, should be INFO #255

Closed
@yuvalbar

Description

When Celery recycles a Celery worker, it emits this log:

​ERROR/ForkPoolWorker-587] child process exiting after exceeding memory limit (421812KiB / 300000KiB)

It happens in pool.py:379:

                    if used_kb > 0 and used_kb > max_memory_per_child:
                        error(MAXMEM_USED_FMT.format(
                            used_kb, max_memory_per_child))

This is not actually an error, but an expected situation where I want to recycle workers as there is no other way to reduce their memory footprint. It should probably be lowered to INFO - I'm willing to open a PR if that's acceptable. Plz let me know - Thanks!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions