Firefox consuming too much ram when running for a long time
For the last couple of days, Firefox on my laptop too has started consuming too much RAM. Firefox is running continuously on my laptop from 9am to about 1am the following day. Last night around 1 am, I noticed that my Firefox froze and no window was responding. Seconds later, my laptop froze I was getting bare minimal response. After opening the process monitor, I found that a web-content process of Firefox was consuming 5GBs of my 8GB ram! I killed the process and restarted Firefox and things became normal.
Some time later, I again noticed that a web-content process of Firefox was consuming 1GB of RAM and the consumption was rising very fast. In about half a minute, that increased to 2.3GB!
What could be the bug and how can I fix it?