Skip to main content

FiveM: Using the Profiler to identify server issues

This guide was created with the following products:

(Details may vary with products from different providers but the main concepts remain the same)

Introduction

The Profiler is a quite useful and easy to use game tool to measure the performance of the server. This can be used to check codes and threads that lead to possible performance issues. This can for example be caused by poorly developed resources or similar. The profiler is directly integrated into the server software and can therefore also be used for any FiveM server variant.

Usage of the Profiler

The procedure for using the Profiler may differ slightly depending on the FiveM Server variant selected (Windows/Linux/TxAdmin). How to proceed is explained in more detail in the following sections.

The FiveM (Linux) server variant allows you to create a profile directly via the live console. To do this, execute the commands profiler record 100 and profiler view in the console. A profile with 100 frames will be created, which can then be accessed via the link provided in the console. img

Identifying issues

The profiler contains information on the individual activities (ticks) that need to be checked more closely. Select a tick area and zoom in on it. Based on the tick, you can now see which processes were executed and how long they took.

This way, you can for example also recognize which resources take up a lot of time. Resources that consume more than 6 ms in total can cause possible issues. :::

Conclusion

Congratulations, you have successfully created a FiveM profile that allows you to identify potential issues. For further questions or assistance, please don’t hesitate to contact our support team, which is available daily to assist you! 🙂