Memory is running out and Discourse stops working

Just noticed this in admin on current build:

EDIT: Created separate bug: