# Could not load all filters to memory

**URL:** <https://community.blokada.org/t/could-not-load-all-filters-to-memory/76>\
**Category:** Android\
**Tags:** ad-blocking, android\
**Created:** [June 16, 2020, 7:23pm UTC](https://community.blokada.org/t/could-not-load-all-filters-to-memory/76 "2020-06-16T19:23:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karol](https://dub1.discourse-cdn.com/flex017/user_avatar/community.blokada.org/karol/32/13_2.png) [@Karol](https://community.blokada.org/u/Karol)\
**Post date:** [June 16, 2020, 7:23pm UTC](https://community.blokada.org/t/could-not-load-all-filters-to-memory/76/1 "2020-06-16T19:23:10Z")

</div>

When you enable Hostlists in _Blokada’s settings - Ad blocking - Host lists_ you might receive an error message saying “Could not load all filters to memory”. It happens because when you activate lists, Blokada downloads and merges them, removing the duplicated entries. It is a memory intensive process.  
It worth to know that on Android every application has its own memory segment (called _heap_ ), no application can utilise the device’s full memory. The heap size is set by the manufacturer of the device, or the maintainer of the ROM, if you use a custom build. It cannot be configured by the user, neither by the application (in our case, Blokada).

When you enable lists, the heap will get full by loading (and merging) them. When this process finishes, the utilisation will lower, there will be a lot of unreferenced objects in the heap that can be removed and thus, precious memory freed up. This clean up is called Garbage Collection (shortly: GC) and it is triggered by the underlaying system (Android). No user nor application can do it.

So, what can you do when you get the “Could not load all filters to memory” error message? Wait. Wait a few minutes till the GC is triggered and Blokada’s heap is cleaned up, then you can continue to enable more lists.

You can check how much heap is allocated on your device if you select _Blokada’s settings - Ad blocking - Ad blocking Settings - List status_ .  
Here you also can see if a GC was done because then the number of possible entries increases.

If the number of enabled rules do not increase further you might select a list that entries are already included in another, previously enabled list or your device can’t load and keep more rules in memory.

---

<div class="post-metadata">

**Author:** ![c\_C](https://dub1.discourse-cdn.com/flex017/user_avatar/community.blokada.org/c_c/32/60_2.png) [@c\_C](https://community.blokada.org/u/c_C)\
**Post date:** [September 6, 2020, 8:14pm UTC](https://community.blokada.org/t/could-not-load-all-filters-to-memory/76/2 "2020-09-06T20:14:18Z")

</div>

Split this topic on September 6, 2020, 8:14pm UTC

4 posts were split to a new topic: [Amount of rules changing](https://community.blokada.org/t/amount-of-rules-changing/3509)

---

<div class="post-metadata">

**Author:** ![c\_C](https://dub1.discourse-cdn.com/flex017/user_avatar/community.blokada.org/c_c/32/60_2.png) [@c\_C](https://community.blokada.org/u/c_C)\
**Post date:** [September 6, 2020, 8:14pm UTC](https://community.blokada.org/t/could-not-load-all-filters-to-memory/76/3 "2020-09-06T20:14:59Z")

</div>

Split this topic on September 6, 2020, 8:14pm UTC

A post was merged into an existing topic: [Amount of rules changing](https://community.blokada.org/t/amount-of-rules-changing/3509/5)
