Skip to main content
BLUEPRINT ONESYNC FRAME LAB // ONESYNC INFINITY & QBCORE SPEC SLOTS: 128-512 | HITCH TARGET: <50 MS | OXMYSQL + MARIADB | BASELINE 2026-10-09
FiveMQBCore
FiveMQBCore Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
Engine & DB Tuning

Sizing oxmysql Connection Pools & Slow-Query Warning Budgets

Calibrate connectionLimit (10-80) and mysql_slow_query_warning in server.cfg so inventory and player-load queries stay under 15 ms p95.

100-150 ms Warn Threshold · 20-65 Pool · Sub-15 ms p95

Sizing oxmysql Connection Pools & Slow-Query Warning Budgets
Telemetry baseline verified 2026-10-09 by OneSync Frame Lab.

Why Too Small a Pool Stalls Player Joins

When 40 players reconnect simultaneously after a txAdmin restart, scripts fire hundreds of parallel MySQL.query calls. A default 10-connection pool queues queries behind socket waits, triggering 300+ ms oxmysql slow-query warnings.

Avoid Over-Allocating 200+ Idle Connections

Setting connectionLimit above 80 wastes MariaDB thread buffers without improving throughput. Match connectionLimit to 20-65 and ensure MariaDB max_connections is at least 3x higher.

Measured Thresholds & Server Configuration

Player Slotsoxmysql connectionLimitmysql_slow_query_warning
128 Slots20 connections150 ms
256 Slots30 - 35 connections150 ms
384 - 512 Slots45 - 65 connections100 - 150 ms
100-150 ms Warn Threshold · 20-65 Pool · Sub-15 ms p95 Deploy VDS ($17.50+/mo)Inspect Vultr HF