-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory usage analysis #372
Comments
Can't replicate in local tests and nothing obvious from reading code, so closing. Noting that Kingfisher Process' The RES numbers might be due to https://bloomberg.github.io/memray/memory.html#memory-is-not-freed-immediately They might not be replicated locally, since the server has much more free memory. Pelican's |
Setup
In settings.py:
exporter worker
The server process was using about 800MB when idle, which seems high. (Restarting it bring RES down to 65MB.)
In exporter.py, import the profile library, like one of:
At the start of the callback() function:
Run:
In RabbitMQ, publish messages with properties of
content_type = application/json
and payload like{"collection_id":36,"job_id":1}
At breakpoint, run the profiling code, like one of:
On the first message,
heap.heap()
looks like:After a few messages, number of objects should stabilize, like:
Similar behavior from mprof (two different collection IDs were submitted multiple times):
The text was updated successfully, but these errors were encountered: