-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
Description
My nano instance ends up hanging every week due to running out of memory.
The main users are:
- 2x uWSGI processes running the web app
- 1x
reader update --workers 4process running on the hour (RSS measurements here)
Mitigations (that don't have to do with reader):
- use swap
- uWSGI reload-on-rss and max-requests
- earlyoom (or oomd), e.g.
earlyoom --prefer uwsgiorearlyoom --prefer 'reader update --workers'
Some observations:
- The web app has been getting fatter lately, e.g. entry read time (added in 2.6) is calculated for both
/and/entry(and not cached). - Both
/and/?limit=64are leaking memory (keep refresing page, see worker RSS increase).- While we are streaming the response, we are keeping the entries in a list before doing so;
/increases worker RSS to over 100MB.
- While we are streaming the response, we are keeping the entries in a list before doing so;
/entryis leaking memory as well./enclosure-tagsis not leaking memory.
This issue is to look if anything can be fixed on the reader side.