# Pi-hole stops working within 24 hrs, high CPU and RAM usage

**URL:** https://discourse.pi-hole.net/t/pi-hole-stops-working-within-24-hrs-high-cpu-and-ram-usage/12765
**Category:** Help
**Created:** [September 10, 2018, 2:32am UTC](https://discourse.pi-hole.net/t/pi-hole-stops-working-within-24-hrs-high-cpu-and-ram-usage/12765 "2018-09-10T02:32:54Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [September 10, 2018, 3:07pm UTC](https://discourse.pi-hole.net/t/pi-hole-stops-working-within-24-hrs-high-cpu-and-ram-usage/12765/3 "2018-09-10T15:07:53Z")

</div>

With your large number of blocked domains in gravity (a few million), you may be pushing your memory limits, depending on what hardware you are running. With this many domains in gravity and using the NULL blocking mode, there have been reports of high CPU and RAM usage. Here is one related thread:

> [@High CPU, High RAM, not working, dnsmasq issues? - Solved](https://discourse.pi-hole.net/t/high-cpu-high-ram-not-working-dnsmasq-issues-solved/12149/6):
>
> Yeah, my apologies, I keep getting the 'load' and CPU usage mixed up on this Linux thing. The load is high, the CPU is not, as according to 'htop'. I do not currently have IPv6 connectivity, and didn't pick it during install (though I did have it enabled pre-4.0). The website linked also states 'No IPv6 address detected'. Copypasting in the echo above seems to do nothing, but as said, Linux novice, I might possibly be doing this wrong. I did find a site talking about the NXDOMAIN thing while…

What is the output of the following commands from the Pi terminal:

`echo ">stats" | nc localhost 4711`

`free -m`

`df -a -h`

An additional note, and perhaps related to your problem. From your debug log, there are some abnormal line entries in your ad lists file (/etc/pihole/adlists.list). This list is normally populated with web addresses of each blocklist to which you subscribe.

Your list has some individual domains listed (lines 21 to 48), and an asterisk in line 54.

Edit this file and remove these lines, then rebuild gravity with `pihole - g`

---

_[View the full topic](https://discourse.pi-hole.net/t/pi-hole-stops-working-within-24-hrs-high-cpu-and-ram-usage/12765)._
