One of the things I do is have a lot of open tabs, and firefox happily fills up all the available memory.
If you go to "about:memory" and click on "minimize memory usage" it will free up some much needed memory.
After clicking on this my total memory usage went from 31GB to 21GB.