Αυτός ο ιστότοπος θα έχει περιορισμένη λειτουργικότητα, όσο εκτελούμε εργασίες συντήρησης για να βελτιώσουμε την εμπειρία σας. Αν ένα άρθρο δεν επιλύει το ζήτημά σας και θέλετε να κάνετε μια ερώτηση, η κοινότητα υποστήριξής μας είναι έτοιμη να σας βοηθήσει στο Twitter (@FirefoxSupport) και στο Reddit (/r/firefox).

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

How to protect yourself from pages that take up huge amounts of memory?

  • 2 απαντήσεις
  • 1 έχει αυτό το πρόβλημα
  • 1 προβολή
  • Τελευταία απάντηση από zeroknight

more options

I often see that some pages take up too much memory. This critically affects the performance of my laptop with 8 GB of memory. However, I was unable to reproduce this behaviour. Now I have caught two web pages.

https://linuxhandbook.com/sort-top-command/ 

and https://www.tutorialspoint.com/how-to-find-number-of-ram-slots-in-linux The first page quickly takes up 1-2GB and continues to drain memory. The maximum usage was 7 GB on a laptop with 16 GB of memory. This behaviour is the same in Firefox and Chrome. The second page quickly takes up 2GB, which is very noticeable on 8GB laptops. Why do these pages take up so much memory? Most importantly, how can you protect yourself from such an unexpected memory consumption?

I often see that some pages take up too much memory. This critically affects the performance of my laptop with 8 GB of memory. However, I was unable to reproduce this behaviour. Now I have caught two web pages. https://linuxhandbook.com/sort-top-command/ and https://www.tutorialspoint.com/how-to-find-number-of-ram-slots-in-linux The first page quickly takes up 1-2GB and continues to drain memory. The maximum usage was 7 GB on a laptop with 16 GB of memory. This behaviour is the same in Firefox and Chrome. The second page quickly takes up 2GB, which is very noticeable on 8GB laptops. Why do these pages take up so much memory? Most importantly, how can you protect yourself from such an unexpected memory consumption?

Επιλεγμένη λύση

The majority of the resource consumption in your examples is due to ads and trackers, the first one has 32 iframes which all load in separate processes. With Strict Tracking Protection enabled and uBlock Origin installed, that drops to just two.

Other ways to manage memory:

  1. Enable automatic tab unloading (disabled by default on Linux) by changing browser.tabs.unloadOnLowMemory to true in about:config.
  2. Reduce the number of processes per site by changing dom.ipc.processCount.webIsolated to 1.
  3. Install a system monitor utility so you can see memory usage at all times.
  4. Enable SysRq process signalling so you can kill the most memory-consuming process by pressing RightAlt+SysRq+F.
Ανάγνωση απάντησης σε πλαίσιο 👍 2

Όλες οι απαντήσεις (2)

more options

You can check the about:memory and about:processes pages for info about all processes. See also the about:unloads page for info about the tabs.

more options

Επιλεγμένη λύση

The majority of the resource consumption in your examples is due to ads and trackers, the first one has 32 iframes which all load in separate processes. With Strict Tracking Protection enabled and uBlock Origin installed, that drops to just two.

Other ways to manage memory:

  1. Enable automatic tab unloading (disabled by default on Linux) by changing browser.tabs.unloadOnLowMemory to true in about:config.
  2. Reduce the number of processes per site by changing dom.ipc.processCount.webIsolated to 1.
  3. Install a system monitor utility so you can see memory usage at all times.
  4. Enable SysRq process signalling so you can kill the most memory-consuming process by pressing RightAlt+SysRq+F.