Matomo Archiving Slow or Out of Memory on Large Sites
Workaround available Matomo On-Premise Updated November 13, 2026Based on 4 user reportsHow we research
Quick answer
Disable browser archiving, run core:archive on a schedule, raise memory only for the archiver, trim segments, and use queued tracking with Redis and a tuned database on high-traffic sites.
Most likely fix: Move archiving to cron
How to fix it
Try these in order — the most common fix is first.
1. Move archiving to cron
- Set enable_browser_archiving_triggering = 0 in config.ini.php (or in General Settings)
- Run core:archive every 30 to 60 minutes depending on tier
Did this fix it?2. Reduce the workload
- Keep only essential segments and custom reports
- Exclude unneeded URL query parameters and disable unused plugins
- Schedule outside peak hours
Did this fix it?3. Raise memory for the archiver only
- Use --php-cli-options="-d memory_limit=3G" on the core:archive command, or raise minimum_memory_limit_when_archiving in config
- Lowering concurrency helps if RAM is tight
Did this fix it?4. Follow the tier guidance
- For busy sites set time_before_today_archive_considered_outdated to 1800 or 3600
- Use Queued Tracking with Redis (sticky sessions recommended)
- Tune MySQL: innodb_buffer_pool_size 2G (Tier 1) or 20G (Tier 2) and consider a dedicated database server
Did this fix it?5. Parallelise carefully
- Use --concurrent-requests-per-website only for your busiest site, and only if database CPU is 20% or less, with gains diminishing beyond 2-3 processes
Did this fix it?
Symptoms
Archiving runs for hours, PHP hits memory_limit, or reports for long periods time out.
Why it happens
- Browser-triggered archiving on a busy site
- Too many segments and custom reports
- Yearly or multi-month periods and large roll-up sites
- Database and PHP resources undersized for the tier
- Default archive freshness of 10 seconds is far too frequent
This guide also covers
- matomo archiving slow
- matomo memory limit archiving
- matomo core:archive taking too long
Still not working?
If Matomo keeps failing, you're not alone. See every Matomo problem users report or the alternatives people switch to.
Done fighting Matomo? Our small team builds your own Matomo alternative, made for how you work. On your domain or hosted by us. Price agreed together.
Get a quoteThe same problem in other apps
All plan limits, paywalls & watermarks guides →
- Plausible Blocked by Ad Blockers (How to Set Up a Proxy) (Plausible Analytics)
- Umami Blocked by Ad Blockers (uBlock Origin, Brave) (Umami)
- PostHog Blocked by Ad Blockers (PostHog)
- Fathom Analytics Blocked by Ad Blockers (Fathom Analytics)
- Simple Analytics Blocked by Ad Blockers (Simple Analytics)
Other Matomo errors
- Matomo Shows No Data (There Is No Data for This Report)
- Matomo Reports Not Updating (Archiving Cron Not Working)
- Matomo for WordPress Not Showing Statistics
- Matomo 'Oops... There Was a Problem During the Request' Error
- Matomo Blocked by Ad Blockers (Undercounting Visitors)
- Why Matomo Numbers Differ From Google Analytics and Search Console
- How to Exclude Your Own Visits in Matomo
- Matomo 'Keyword Not Defined' (Missing Search Keywords)