I am running two Frappe/ERPNext deployments with Docker. I noticed that the memory usage of the Frappe web and database containers gradually became quite high.
Table below shows memory usage before and after restart.
| Container / service | Before | After | Difference | Change |
|---|---|---|---|---|
| erpnext-frappe-83mtqi-fp-web-1 | 1.097 GiB | 158.40 MiB | -964.93 MiB | -85.9% |
| erpnext-frappe-7shhmj-fp-web-1 | 677.80 MiB | 149.70 MiB | -528.10 MiB | -77.9% |
| erpnext-frappe-7shhmj-fp-database-1 | 499.00 MiB | 171.40 MiB | -327.60 MiB | -65.7% |
| erpnext-frappe-83mtqi-fp-database-1 | 402.10 MiB | 175.10 MiB | -227.00 MiB | -56.5% |
My questions are:
- Is it normal for Frappe web container memory usage to grow from around 150 MiB to more than 1 GiB over time?
- Could this indicate a memory leak caused by custom apps, hooks, API requests, reports, or background jobs?