proginosko / LeechBlockNG

LeechBlock NG (Next Generation) for Firefox is a simple productivity tool designed to block those time-wasting sites that can suck the life out of your working day. All you need to do is specify which sites to block and when to block them.
https://www.proginosko.com/leechblock/
Mozilla Public License 2.0
699 stars 64 forks source link

High RAM usage due to LeechBlockNG. #42

Open pras92 opened 6 years ago

pras92 commented 6 years ago

Hello, Firstly, thanks a lot proginosko, for continuing development with Quantum.

It's the 1st time I'm using the 'block with keyword' function and using * with ~ takes the FF ram usage from about 600MB to 3800MB.

I just now posted some details about this here, https://www.reddit.com/r/firefox/comments/7tpjru/firefox_quantum_high_ram_usage/du8ikt7/

Thanks.

proginosko commented 6 years ago

Interesting. I'm not finding the same problem on my setup (FF 58.0.2 64-bit on Win10).

Can you give a bit more info on how the RAM usage rises? Does it rise progressively over time without the user doing anything (navigating pages, opening new tabs)? If not, what events cause it to jump upwards?

pras92 commented 6 years ago

Hello, Sorry for such a delayed response. I'm still sorting out my inbox.

When facing the issue, I too had FF 58.0.2, now FF59.0 on Win10 64bit.

To answer your questions, yes it did rise progressively over time without any user actions. The RAM rose to peak in about 15 seconds. Reversing the LB settings did reduce the RAM usage slowly.

I did some more testing right now, and found something else.

-> It seems, (in addition to ) using just a keyword without ~ is what causes the ultra high RAM spike in a very short time, along with system lagging. -> (In addition to ), using a keyword with ~ causes slightly higher-than-normal RAM usage slowly but steadily, however, the system lag is just the same as in the previous case.

(Prior to my original post, I had a combination of keywords with and without ~ and hence couldn't figure this out previously.)

By system lag, I mean about 3 to 10 seconds of lag in both in-browser and other operations.

I do use a couple other highly trusted extensions, though these results are with other extensions being disabled. Mine is a new laptop with 8GB RAM and FFQ running in SSD.

Thank you for your time.

P.S: This is my Block Set settings. Could you try this, which might help recreate the issue I'm facing?

Domain names: * followed by some 30 adult keywords line by line. and rest of the settings as:

image