Skip to main content
MoodleLMSRAM
MoodleLMSRAM Partner Disclosure: Outbound /go/ links marked rel="sponsored" may earn a referral commission at zero extra cost (Partner Disclosure).
Stack Matrix Hub (10)

Moodle 4.x Exam Concurrency, PHP-FPM & Redis Stack Guides

Production capacity math for Moodle 4.3/4.4/4.5 exam spikes: PHP-FPM worker RSS, Redis session locking, MariaDB InnoDB buffer sizing, OPcache coverage, cron adhoc tasks, and SCORM/H5P buffers.

Moodle 4.x Exam Concurrency, PHP-FPM & Redis Stack Guides
Active PHP-FPM pm.max_children worker scaling and RAM ceilings across 50 to 1,000+ concurrent Moodle exam takers.

BLUEPRINT 01

Concurrent Quiz PHP-FPM pm.max_children Capacity Math

Translate simultaneous exam takers and quiz submit clicks into exact pm.max_children counts using 105-162 MB per Moodle 4.x PHP worker.

105-162 MB/worker · ~5:1 student-to-worker peak · pm.max_requests=500

BLUEPRINT 02

Redis Session Handler vs Moodledata File Session Locking

Eliminate PHP-FPM worker starvation caused by flock() serialization on moodledata/sessions by tuning Redis session_redis_acquire_lock_timeout.

Sub-1ms Redis lock · session_redis_acquire_lock_timeout=120 · Zero flock() stall

BLUEPRINT 03

MariaDB InnoDB Buffer Pool & Quiz Attempt Write-Burst Tuning

Prevent mdl_question_attempt_steps and mdl_grade_grades write stalls during final-minute exam submissions with proper InnoDB buffer and log sizing.

innodb_buffer_pool_size 25-35% RAM · innodb_log_file_size=512M · trx_commit=2

BLUEPRINT 04

OPcache Sizing for Moodle 4.x Codebase & Interned Strings

Prevent OPcache full-cache eviction storms across Moodle 4.x 15,000+ PHP files by sizing opcache.memory_consumption and interned_strings_buffer.

256-384 MB OPcache · 32-64 MB interned_strings · max_accelerated_files=32531

BLUEPRINT 05

Moodle Cron CLI & Parallel Adhoc Task Worker Memory

Isolate scheduled cron.php and adhoc_task.php memory spikes from interactive exam PHP-FPM pools so PDF annotation and grading never starve students.

task_adhoc_concurrency=3 · Separate CLI memory_limit=512M · 60s systemd timer

BLUEPRINT 06

mod_quiz Autosave AJAX Interval & PHP-FPM Burst Smoothing

Quantify how Moodle 60-second quiz autosave periods create periodic request waves and how widening autosaveperiod slashes peak worker pressure.

autosaveperiod 60s -> 120s cuts AJAX RPS 50% · Redis lock keeps saves < 25ms

Public Moodle Hosting & VDS Tariff Ledger (2026-10-25) — Stack Matrix Hub (10)

Vendor & TierCompute & NVMeIntro RateRenewalClassExam Capacity FitLink
ChemiCloud Web Turbo — Turbo NVMe (3 vCPU / 3 GB RAM / LiteSpeed + Redis) 3 vCPU · 3 GB RAM · Unlimited NVMe · LiteSpeed PHP $4.49/mo $16.95/mo Starter 50-Student Cohort Up to 50 concurrent quiz takers · 10-18 PHP workers · 512 MB DB cache Launch ChemiCloud
ChemiCloud Managed Cloud VPS 1 — Cloud VPS 1 (4 vCPU EPYC / 8 GB RAM / 160 GB NVMe) 4 vCPU · 8 GB RAM · 160 GB NVMe · Managed MariaDB + Redis $29.95/mo $59.95/mo 200-Student Exam VPS 150-220 concurrent exam takers · 32-44 pm.max_children · 2.5 GB InnoDB Launch ChemiCloud
ChemiCloud Managed Cloud VPS 2 — Cloud VPS 2 (6 vCPU EPYC / 16 GB RAM / 320 GB NVMe) 6 vCPU · 16 GB RAM · 320 GB NVMe · Isolated FPM + Redis $54.95/mo $94.95/mo 350-Student Managed Tier 250-400 concurrent exam takers · 60-85 pm.max_children · 5 GB InnoDB Launch ChemiCloud
UltaHost Dedicated VDS-2 — VDS-2 (6 vCPU / 16 GB RAM / 250 GB NVMe / Unmetered) 6 vCPU · 16 GB RAM · 250 GB NVMe · Unmetered Bandwidth $41.50/mo $41.50/mo 500-Student Exam VDS 350-550 concurrent exam takers · 80-110 pm.max_children · Zero SCORM overage Deploy UltaHost VDS
UltaHost Dedicated VDS-4 — VDS-4 (12 vCPU / 32 GB RAM / 500 GB NVMe / Unmetered) 12 vCPU · 32 GB RAM · 500 GB NVMe · High-IOPS Quiz Array $89.50/mo $89.50/mo 1,000+ Concurrent Split/VDS 600-1,200+ concurrent exam takers · Split App/DB or 180+ FPM workers Deploy UltaHost VDS

Tariffs verified 2026-10-25 by ExamLoad Systems. SaaS comparators: MoodleCloud Standard 500-User Plan (~$154/mo billed annually) and MoodleCloud Starter / Mini ($12-$45/mo, strict 50-200 user & 5 GB caps).

Tune pm.max_children, Redis Session Locks & MariaDB InnoDB Launch ChemiCloud ($4.49/mo)UltaHost VDS ($41.50/mo)