Server Profiling


The profiling tools allow Server Owners and Admins to run profiling sessions to gather diagnostic data that is especially useful when the server is experiencing performance problems.
You can use this generated data to complement issue reports for SLG.
These instructions are valid for Update 9.6.4 and higher.
Requirements
For profiling to work, you need several prerequisites installed on your server:
dotnet-dump- to take memory dumps (see .NET Core diagnostic global tools and note that we don't use dotnet-trace, it doesn't provide useful output)dotTrace- to profile CPU
You have to make sure these are installed globally or available on your systems PATH so the server can run them.
Memory dumps
For when the server is consuming too much memory.
Memory dumps can be initiated by:
- As an admin, by issuing
/profiler dumpcommand - Invoking
Profiling -> Take memory dumpvia Server UI Menu (Windows only)
Memory dump will start the dotnet-dump process, taking a full snapshot of current memory as used by the server process and the file size will be proportional to that. For example, a server that is utilizing 2GB of RAM, the dump file generated will be also 2GB.
CPU profiling
For when the server is consuming too much CPU.
CPU profiling can be initiated by:
- As an admin, by issuing
/profiler cpucommand - Invoking
Profiler -> Profile CPUvia Server UI Menu (Windows only)
CPU profiling will start the dotTrace process, running it for 1 minute, capturing everything going on with the process for the time being.
Full profile
Full profile will simply take memory dump followed by CPU profiling, as if they were invoked in succession.