mellonbot
ResourcesMellonbot can fix

Memory & CPU

Your server has a limited amount of memory and processing power. When one stuck program takes most of it, everything else slows to a crawl — pages take ages to load and the database may be stopped to free memory.

At a glance
Group
Resources
Mellonbot
Can fix it
What it does
Stops the runaway process safely.
Approval
Always with your OK

What you’ll notice

  1. 01Pages are very slow, or time out with “504 Gateway Timeout”
  2. 02The server feels sluggish when you log in
  3. 03Programs are stopped with “Out of memory” messages
  4. 04Your host warns about high CPU use

Why it usually happens

  1. 01A stuck or looping process, often PHP or a background job
  2. 02A sudden rush of visitors or bots
  3. 03Not enough memory for everything running on the server
  4. 04A plugin or app with a memory leak

Fix it yourself

How to fix it by hand

Comfortable with a terminal? Here’s what an experienced admin would do. Start with the read-only commands.

  1. 01

    See what’s using the most CPU

    The top lines are the busiest programs.

    ps aux --sort=-%cpu | head -10
  2. 02

    See what’s using the most memory

    Compare this with the total in the next step.

    ps aux --sort=-%mem | head -10
  3. 03

    Check free memory

    Look at the “available” column.

    free -h
  4. 04

    Look for out-of-memory kills

    Shows whether the system has been stopping programs to survive.

    sudo journalctl -k | grep -i "out of memory"
  5. 05

    Restart the stuck service

    Restarting the service is safer than killing single processes.

    sudo systemctl restart 'php*-fpm'

With Mellonbot

How Mellonbot fixes it

  • Checks CPU and memory use, and spots processes that have been stuck for a long time.
  • Explains which program is using the power and whether that’s normal for your server.
  • Offers to stop the runaway process safely, then checks your site is fast again.
  • Remembers what’s normal for your server, so it can tell a real problem from a busy moment.
What Mellonbot can and can’t do →

Not sure this is your problem? Ask us →

FAQ

Memory & CPU: common questions

Why is my website so slow all of a sudden?

Often one process is using all the CPU or memory. Checking the busiest processes on the server usually points straight to it.

What does “Out of memory: Killed process” mean?

The server ran out of memory and stopped a program — often the database — to keep itself running.

Still have a question?

Every message goes straight to the founder.

Get in touch

Free plan · 100 credits to start

Let Mellonbot look after your website

Create a free account and connect your first site in a few minutes. Upgrade only when you need more.

  • No card needed
  • Leave any time

Prefer to talk first? Get in touch →

mellonbot — startfree
  • ✓ 100 credits to start
  • ✓ No card needed
  • ✓ One command to connect your site
Create free account

Already have an account? Sign in