Dostlar STUDIO / Mods / Server Diagnostics

Server Diagnostics

Measures the stutter · Server management

Early developmentFS25_ServerDiagnostics

Hunting the culprit on a stuttering server usually means switching mods off and on. This mod measures instead: how long each mod's update takes, which vehicle or placeable model is expensive, how much of the frame is script and how much is engine, how often network events and sync requests arrive. When a long frame happens, the stall catcher notes the most expensive call at that moment, the player count, the relation to a savegame write and whether the event is periodic. The mod is off by default and adds nothing to the game while off; you start a measurement from the console. The report is written as plain text into the settings folder.

Status: Early development. The mod is being tested on our own server; the feature list describes the goal and the released version may differ.

Features

What it does

  • Off by default. While off it installs no hooks and costs the game nothing.
  • Update time per mod: what each mod spends per frame, listed separately.
  • Update time per vehicle and placeable model, because the expensive thing is often a single model.
  • How much of the frame goes into the mission and server loop: is the problem in script or in the engine?
  • Network event and sync request counters.
  • Vehicle, pallet, bale and placeable counts per farm.
  • Stall catcher: for every long frame the most expensive call at that moment, the player count, the relation to a savegame write and periodicity detection.
  • The relation between player count and frame time: does it break under a crowd, or is it always there?
  • The report is written as plain text to modSettings/FS25_ServerDiagnostics/.
  • Console commands: sdStart, sdStop, sdReport, sdStatus. On a dedicated server a player logged in as admin drives the server-side measurement with them.

Setup

How to use it

  1. Not released yet. The first measurements were taken on our main server and a measurement during peak hours is pending.
  2. On release the zip goes into the server's mods folder only; the measurement runs on the server side.
  3. Start with sdStart, finish with sdStop and take the report with sdReport. autoStart in the settings file can also begin at launch.