BurrowGet Burrow
Everyday use

Resources & idle stop

See what MySQL, Postgres, Meilisearch, PHP and your queue workers cost your laptop, and let Burrow stop services you aren't using. They start again by themselves when a site needs them.

See CPU and memory#

Open Resources in the app's sidebar. You get one row per service, PHP version and site worker, plus Burrow itself, heaviest first. Each row shows its CPU, its memory, a 10-minute memory graph, and Restart and Stop buttons.

From a terminal:

burrow top           # one table
burrow top --watch   # refreshes every 5 seconds

A row counts all of its processes: every PHP-FPM child, or Vite and its Node processes. CPU is a percentage of one core.

Stop idle services#

In Resources → Stop idle services, choose how long a service may sit unused: 30 minutes, 1, 2 or 4 hours, or Never (the default). Tick a service under Never stop to keep it running. From a terminal:

burrow idle --after 60              # stop services unused for an hour
burrow idle --keep postgres,redis   # never stop these
burrow idle                         # show the setting
burrow idle --after 0               # turn it off

A service counts as in use while:

  • a site that needs it gets requests. Burrow reads the site's .env: DB_CONNECTION=mysql, CACHE_STORE=redis, MAIL_MAILER=smtp, or any setting that names the service's port, such as MEILISEARCH_HOST=http://127.0.0.1:7700;
  • a site that needs it runs queue workers, the scheduler, Reverb or Horizon;
  • anything has a connection open to it, such as TablePlus, tinker or phpMyAdmin.

When Burrow stops a service, it shows a notification and the service is marked Idle. The next page load of a site that needs it starts the service first, so the page simply takes a moment longer.

Keep logs small#

Burrow writes a log for every service, PHP version and queue worker. So they can't fill your disk, a log that passes the limit is copied aside (mysql.log.1, older copies become .2) and emptied, while the service keeps running and logging.

Choose the limit in Settings → Logs: rotate past 5, 10 (the default), 50 or 100 MB, and keep 1, 2 (the default) or 5 old copies. The same page shows how much space the logs use and has Delete old copies. From a terminal:

burrow logs                        # the limits and the space used
burrow logs --max-mb 50 --keep 1   # change them
burrow logs --clear                # delete old copies

Your projects' own storage/logs folders are left alone.

↑ ↓ to moveEnter to openEsc to close