ResourcesDevelopment ToolsPerformance Monitoring

Performance Monitoring Tools

Use the tools below to track resource usage, detect lag spikes, and keep your QBCore server running smoothly.

Overview

FiveM provides native profiling utilities, and the QBCore community has created scripts that surface additional metrics. Combine these approaches to maintain consistent tick rates and reduce latency for your players.

Core Utilities

Monitoring Checklist

  • Tick Rate: Use resmon 1 or profiler view to monitor server and client tick rates.
  • Resource Time: Check resmon 4 for resources that exceed 0.40ms on the server or 2.00ms on the client.
  • Database Latency: Monitor your MySQL logs and connection pool usage via oxmysql debug mode.
  • Network Traffic: Track bandwidth usage if you run large textures or voice data.
  • Error Logs: Keep console windows open or use log aggregators (Papertrail, Loki) to catch recurring errors.

Optimization Tips

  • Disable unused resources to free up CPU and memory.
  • Profile heavy scripts during peak times to identify loops that need throttling.
  • Cache frequently used data in memory instead of performing repeated database queries.
  • Compress and resize images for inventory and HUD assets to reduce NUI load times.
  • Schedule automatic restarts with health checks to recover from memory leaks.

Automation Ideas

  • Write a cron job that runs txAdmin or monitor commands and posts metrics to Discord.
  • Store profiler snapshots before and after major updates to compare performance.
  • Integrate the Server IP Finder with uptime monitoring so you receive alerts when the server disappears from the master list.

Further Reading