Web analytics
Matomo VPS requirements: RAM, CPU, disk, and why archiving sets the size
Matomo is the long-running open-source alternative to Google Analytics: a PHP app on MySQL or MariaDB, with far more reports than Plausible or Umami. Unlike most self-hosted apps, it publishes real server sizing. For up to 100,000 page views a month the official minimum is 2 CPUs, 2 GB of RAM and a 50 GB SSD, on one server; at 1 million it is 4 CPUs and 8 GB. Idle, it is small (138 MB in one independent test). What decides the size is report archiving: a scheduled PHP job that crunches raw visits into reports, and that has needed gigabytes of PHP memory on busy instances.
Sizing guide
Our recommendations, derived from the sourced figures below. Not measurements.
| Scenario | RAM | vCPU | Why |
|---|---|---|---|
| A few sites, up to about 100k page views a month | 2 GB | 2 | Matomo's official minimum: 2 CPU, 2 GB RAM, 50 GB SSD, app and database on one server. A forum user reports 2 GB working under 100k visits a month. Run archiving from cron, raise PHP_MEMORY_LIMIT to 512M, and add swap. We haven't measured it on a VPS yet. |
| Many sites or segments, or a few hundred thousand page views a month | 4 GB | 2 | Our estimate, between the official tiers: forum replies suggest 4 GB and 2 CPUs once you track 6 to 12 sites. The extra RAM goes to InnoDB's buffer pool and to archiving runs at 1–2G of PHP memory. |
| Up to 1M page views a month on one server | 8 GB | 4 | Matomo's official minimum for this tier: 4 CPU, 8 GB RAM, 250 GB SSD. Past 1M actions a month Matomo recommends moving the database to its own server, so beyond this, size two machines rather than one bigger VPS. |
Official requirements
| Item | What the project says | Source |
|---|---|---|
| Sizing (up to 100k page views a month) | "One server is sufficient to host both the database and app server. App server minimum recommended configuration: 2 CPU, 2 GB RAM, 50GB SSD disk." Page views here means all tracked requests: page views, events, downloads | Matomo FAQ: Requirements for Matomo On-Premise checked Nov 13, 2026 |
| Sizing (up to 1M and 10M) | Up to 1M a month: one server can be enough, minimum 4 CPU, 8 GB RAM, 250 GB SSD. Up to 10M: two servers recommended, for example an 8 CPU / 16 GB app server plus an 8 CPU / 16 GB / 400 GB database server. Above 1M actions a month the general rule is a separate database server | Matomo FAQ: Requirements for Matomo On-Premise checked Nov 13, 2026 |
| Software | A web server (Apache, Nginx, IIS, LiteSpeed). Matomo 4.16 and 5: PHP 8 and MySQL 5.5+ or MariaDB. Matomo 6.0: PHP 8.1+ and MySQL 8.0+ or MariaDB 10.6+. Recommended extensions: curl, gd, cli, mysql, xml, mbstring | Matomo FAQ: Requirements for Matomo On-Premise checked Nov 13, 2026 |
| PHP memory | For archiving, "Sites with less data or fewer features enabled can use 512M or 2G"; "8G is a common size for a medium to large Matomo instance." The official Docker image ships with PHP_MEMORY_LIMIT=256M, which you raise with that environment variable on both the app and cron containers | Matomo FAQ: How to set up Auto-Archiving; matomo-org/docker apache Dockerfile checked Nov 13, 2026 |
| Archiving | Run console core:archive on a schedule (hourly in the cron guide, every 300 seconds in the Docker Compose guide) and turn off browser-triggered archiving. Without it, reports are computed when someone opens them, which Matomo calls "unsustainable" unless your data is very small | Matomo FAQ: How to set up Auto-Archiving (CRON) of your reports checked Nov 13, 2026 |
| Docker | The recommended production setup is Docker Compose with three containers: matomo (app), mariadb, and a cron container from the same matomo image running core:archive, sharing the /var/www/html volume so it sees the same config and plugins. A single container is described as for testing | Matomo FAQ: Install Matomo with Docker checked Nov 13, 2026 |
| Database growth | "Approximately 1GB for every 5M page views": at 100k page views a day (3M a month), expect about 7 GB after a year. Keeping unique URLs low (ignore session and tracking URL parameters) and deleting old raw logs keep it smaller | Matomo FAQ: Configure Matomo for speed checked Nov 13, 2026 |
| Architectures | The official matomo image on Docker Hub is published for amd64 and arm64 (plus arm/v7, 386, ppc64le, s390x and riscv64), so it runs on Arm VPS plans and Raspberry Pi-class boards. Variants: apache (default), fpm and fpm-alpine | Docker Hub: matomo (official image) tags checked Nov 13, 2026 |
| Current version | 5.14.2, released 22 Oct 2026 UTC, is the latest stable release and the version in the official Docker image. 6.0.0-rc1 (30 Oct 2026) is a release candidate; 6.x raises the minimums to PHP 8.1 and MySQL 8.0 / MariaDB 10.6 | GitHub releases: matomo-org/matomo checked Nov 13, 2026 |
What people report in practice
Individual reports, not controlled tests. Versions, hardware and settings differ, so treat these as data points, not guarantees.
-
Matomo read 138 MB of RAM and 1.2 GB of Docker disk shortly after install on a clean 2 vCPU / 8 GB VM, below Umami's 165 MB in the same sweep. The testers list Matomo's documented minimum as 2 GB
Independent test of 96 self-hosted apps, Google Cloud e2-standard-2, 28 Sep 2026. One reading shortly after install, with no data, traffic or archiving
Blog SelfHost Atlas: Self-hosted app RAM usage, 96 apps measured (2026) · checked Nov 13, 2026
-
"I'm running it on a small VPS with 2GB RAM and haven't had issues for sites under 100k visits/month. Switched to PHP-FPM with Nginx and saw better performance." In the same thread, two other replies call 2 GB / 1 CPU the bare minimum for 6 to 12 sites and suggest 4 GB and 2 CPUs
Matomo forum thread, Mar 2024 to May 2025
Forum Matomo forums: Self-hosting recommendations? · checked Nov 13, 2026
-
"We track 3 sites with about 5.5M visits generating about 20M hits per month. We have had to continually increase server performance. We now have 16 cores, 32G RAM and use about 300G disk space."
Same Matomo forum thread, Apr 2025
Forum Matomo forums: Self-hosting recommendations? · checked Nov 13, 2026
-
One site's archiving kept failing with "Allowed memory size of 8588886016 bytes exhausted" on a 4 vCPU / 16 GiB Azure server tracking 35 sites at about 750,000 page views a day. Another user saw archiving peaks of 15 to 20 GB for one site with many events and goals; a third needed 5 GB for a small-to-medium app
GitHub issue on Matomo 4.11, Aug 2022 to May 2023. Matomo 4.13.1 reduced memory use when archiving goals for actions
GitHub GitHub matomo-org/matomo #19695: Allowed memory exhausted · checked Nov 13, 2026
-
Archiving 80 to 400 websites in one daily run exhausted an 8 GB PHP limit; the reporter settled on --php-cli-options='-dmemory_limit=12G'. The maintainers pointed to --max-websites-to-process and --max-archives-to-process to split the work
GitHub issue, Dec 2021 to Oct 2022
GitHub GitHub matomo-org/matomo #18460: Big memory usage during archive · checked Nov 13, 2026
-
The official Docker image has no cron daemon, so archiving needs its own container. Users posted working setups (a while/sleep loop calling core:archive, or BusyBox crond on the Alpine variant) before Matomo's Docker guide adopted the separate cron container
GitHub issue, opened Jan 2018, still open; comments through Feb 2025
GitHub GitHub matomo-org/docker #77: better to add the cron job · checked Nov 13, 2026
Our measurements: coming soon
We haven't measured Matomo yet, so there are no VPSfit lab numbers on this page. When we do, they'll show the app version, the plan it ran on, the date, and the raw data. Here's what we'll record:
- Idle and 24-hour RAM of Matomo 5.14 (app, MariaDB and cron separately) with the official Docker Compose on a 2 GB and a 4 GB plan
- Peak memory and run time of core:archive at 10k, 100k and 1M page views a month on 2 and 4 vCPU
- Whether a 1 GB plan with swap survives archiving for one low-traffic site (we don't recommend it until tested)
- Database size after importing 1M page views, against Matomo's 1 GB per 5M rule
What drives Matomo's RAM use
Archiving, not tracking, sets the RAM
Recording a visit is a quick PHP request plus a few MySQL inserts. Reports are built later by console core:archive, which reads a whole day of raw logs to build that day's report and then aggregates days into weeks, months and years. Matomo notes this is not incremental: running it more often doesn't lower the memory needed (archiving FAQ). Memory grows with unique URLs, events, goals, custom dimensions and segments, which is why busy instances have needed 5 to 20 GB per archiving process (#19695).
MySQL wants the rest of the RAM
All reports are computed with MySQL queries. Matomo recommends setting innodb_buffer_pool_size to at least 80% of the RAM available to MySQL, putting MySQL's tmpdir on tmpfs, and using SSDs (speed FAQ). On one small VPS that RAM is shared with PHP's archiving runs, so leave headroom rather than giving InnoDB 80% of the whole box.
Disk grows with traffic and retention
Matomo keeps raw visit logs plus archived reports for every day, week, month and year, so the database only grows unless you delete old raw data. Its rule of thumb is about 1 GB per 5 million page views, roughly 7 GB a year at 3M a month (speed FAQ). The bundled DBStats plugin shows what is using the space (database size FAQ). Keep enough free disk for a compressed dump next to the live database.
Gotchas on a VPS
- Set up the cron container on day one. The official image has no cron daemon. Without a scheduled
core:archive, reports are built when someone opens them, which gets slow and ends in "Oops, there was an error" as data grows. Use the cron container from Matomo's Docker guide, then addbrowser_archiving_disabled_enforce = 1under[General]inconfig.ini.php, so segments don't trigger browser archiving either. - Raise the Docker image's 256M PHP limit. The official image sets
PHP_MEMORY_LIMIT=256M(Dockerfile), half of the 512M Matomo suggests as a starting point for archiving. Set the variable on both the app and the cron container: the web UI andcore:archiveeach run their own PHP. On a 2 GB VPS, 512M to 1G is the realistic ceiling. - Split big archiving runs instead of buying RAM. If archiving runs out of memory,
--max-websites-to-processand--max-archives-to-processspread the work over several runs, and--concurrent-archiverslimits how many run at once (memory FAQ). Users with hundreds of sites still needed 8 to 12 GB (#18460), but small setups rarely get near that. - Check your database version before Matomo 6. Matomo 6.0 needs PHP 8.1+ and MySQL 8.0+ or MariaDB 10.6+ (requirements). Older distro packages or a pinned
mariadb:10.5container will block the upgrade. The Docker guide'smariadb:latestis fine, but pin a major version so a database upgrade doesn't happen by surprise, and take a dump first. - Don't put it on network storage. Matomo says not to run it on NFS, GlusterFS or other network filesystems because of the overhead (speed FAQ). Use the VPS's local SSD for both the app volume and the database, and send backups elsewhere.
- It has to be reachable from the internet. Like Plausible and Umami, Matomo must accept tracking requests from every visitor's browser, so it can't live only behind a VPN. You can keep it at home and publish just its hostname through a tunnel such as Pangolin. Back up the database with a dump off the server; we haven't tested a restore ourselves yet.
Cheapest plans that fit
Matomo for a few sites (up to ~100k page views a month): 2 GB RAM and 2+ vCPU
Threshold: Official minimum: 2 CPU, 2 GB RAM, 50 GB SSD on one server (source). Only plans with at least 2 vCPUs are listed.
| Provider & plan | RAM | vCPU | Disk | Price / month | Terms | Source |
|---|---|---|---|---|---|---|
| Contabo Cloud VPS 4 | 8 GB | 4 shared | 100 GB SSD | €4.40 excl. VAT · ≈ $4.93 |
24-month term (effective monthly rate) | contabo.com checked Nov 12, 2026 |
| Contabo Cloud VPS 6 | 12 GB | 6 shared | 200 GB SSD (or 100 GB NVMe) | €6.00 excl. VAT · ≈ $6.73 |
24-month term (effective monthly rate) | contabo.com checked Nov 12, 2026 |
| Contabo Cloud VPS 8 | 24 GB | 8 shared | 300 GB SSD (or 150 GB NVMe) | €11.20 excl. VAT · ≈ $12.56 |
24-month term (effective monthly rate) | contabo.com checked Nov 12, 2026 |
| Hostinger KVM 2 | 8 GB | 2 AMD EPYC | 100 GB NVMe | $14.99 intro $8.79 before tax |
Prepaid intro rate; renews at $14.99/mo | hostinger.com checked Nov 12, 2026 |
Matomo for many sites or a few hundred thousand page views a month: 4 GB RAM and 2+ vCPU
Threshold: Our estimate between the official tiers, matching forum advice of 4 GB and 2 CPUs for 6 to 12 sites (source). Only plans with at least 2 vCPUs are listed.
| Provider & plan | RAM | vCPU | Disk | Price / month | Terms | Source |
|---|---|---|---|---|---|---|
| Contabo Cloud VPS 4 | 8 GB | 4 shared | 100 GB SSD | €4.40 excl. VAT · ≈ $4.93 |
24-month term (effective monthly rate) | contabo.com checked Nov 12, 2026 |
| Contabo Cloud VPS 6 | 12 GB | 6 shared | 200 GB SSD (or 100 GB NVMe) | €6.00 excl. VAT · ≈ $6.73 |
24-month term (effective monthly rate) | contabo.com checked Nov 12, 2026 |
| Contabo Cloud VPS 8 | 24 GB | 8 shared | 300 GB SSD (or 150 GB NVMe) | €11.20 excl. VAT · ≈ $12.56 |
24-month term (effective monthly rate) | contabo.com checked Nov 12, 2026 |
| Hostinger KVM 2 | 8 GB | 2 AMD EPYC | 100 GB NVMe | $14.99 intro $8.79 before tax |
Prepaid intro rate; renews at $14.99/mo | hostinger.com checked Nov 12, 2026 |
Matomo up to 1M page views a month (one server): 8 GB RAM and 4+ vCPU
Threshold: Official minimum: 4 CPU, 8 GB RAM, 250 GB SSD (source). Only plans with at least 4 vCPUs are listed.
| Provider & plan | RAM | vCPU | Disk | Price / month | Terms | Source |
|---|---|---|---|---|---|---|
| Contabo Cloud VPS 4 | 8 GB | 4 shared | 100 GB SSD | €4.40 excl. VAT · ≈ $4.93 |
24-month term (effective monthly rate) | contabo.com checked Nov 12, 2026 |
| Contabo Cloud VPS 6 | 12 GB | 6 shared | 200 GB SSD (or 100 GB NVMe) | €6.00 excl. VAT · ≈ $6.73 |
24-month term (effective monthly rate) | contabo.com checked Nov 12, 2026 |
| Contabo Cloud VPS 8 | 24 GB | 8 shared | 300 GB SSD (or 150 GB NVMe) | €11.20 excl. VAT · ≈ $12.56 |
24-month term (effective monthly rate) | contabo.com checked Nov 12, 2026 |
| Hostinger KVM 4 | 16 GB | 4 AMD EPYC | 200 GB NVMe | $28.99 intro $12.99 before tax |
Prepaid intro rate; renews at $28.99/mo | hostinger.com checked Nov 12, 2026 |
Prices checked Nov 12, 2026 on each provider's official pricing page. EUR prices converted at the ECB rate of Nov 11, 2026 (1 € = $1.1127) only for ranking. See every plan on the cheapest 2 GB, 4 GB and 8 GB VPS pages.