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)

H5P Interactive Content & xAPI Tracking Memory Overhead

Account for Moodle core mod_h5pactivity PHP unzip/library parsing and xAPI state POST bursts when sizing RAM for interactive courses.

+34 MB/worker for H5P · +20% InnoDB writes for xAPI statements

H5P Interactive Content & xAPI Tracking Memory Overhead
Telemetry verified 2026-10-25 by ExamLoad Systems.

Why H5P Libraries Inflate PHP-FPM Worker RSS

Moodle 4.x embeds core H5P library parsing, semantic validation, and contentbank asset extraction inside PHP workers. Compared to lean MCQ quizzes (~105 MB/worker), heavy H5P interactive courses push individual PHP-FPM workers toward 155-175 MB RSS.

Handling xAPI State Bursts Inside Interactive Video Cohorts

Every checkpoint inside an H5P Interactive Video fires xAPI save-state AJAX POSTs back to Moodle. Combine Redis session locking with memory_limit = 256M (or 384M for H5P package uploads) to avoid fatal OOM errors during contentbank imports.

Measured Thresholds & Configuration

Course Workload MixAvg PHP Worker RSSRecommended memory_limitxAPI / DB Write Factor
Core MCQ Quiz Only105 MB192M - 256M1.0x baseline
Mixed Quiz + Assignments128 MB256M1.25x baseline
Heavy H5P + SCORM162 MB384M1.55x baseline
+34 MB/worker for H5P · +20% InnoDB writes for xAPI statements Launch ChemiCloud ($4.49/mo)UltaHost VDS ($41.50/mo)