Configure core dumps
Learn how to enable core dumps to help diagnose server crashes.
Read time 2 minutesLast updated 3 days ago
Enable crash debugging and analysis using Multiplay Hosting core dumps and Google Cloud Storage. A core dump is a debugging file that contains a process's address space (memory) when it terminates unexpectedly. This file provides a snapshot of what happened when a process crashed. To generate core dumps for your game server, you must configure the feature at the fleet level to specify where to store the core dump file.
Core dump archive contents
When a crash occurs, Multiplay Hosting saves a core dump as an archive to your configured Google Cloud Storage (GCS) bucket. This archive provides a comprehensive snapshot of the server's state and contains the following files:- Core dump file: The raw memory dump of the process when it terminated.
- log: The standard output log from your game server process.
stdout - log: The standard error log from your game server process.
stderr - : A file containing key details about the server instance and crash event.
metadata.json
metadata.json{ "PID": $$PID$$, "Started": "$$Started$$", "ServerID": $$ServerID$$, "ProfileID": $$ProfileID$$, "AccountServiceID": $$AccountServiceID$$, "GameID": $$GameID$$, "ModID": $$ModID$$, "Name": "$$Name$$", "IP": "$$IP$$", "GameVersionIdentifier": "$$GameVersionIdentifier$$", "MaxDown": $$MaxDown$$, "MemBase": $$MemBase$$, "CPUBase": $$CPUBase$$, "DumpMemory": true, "DumpCPU": true, "DumpQuery": true, "QueryType": "sqp"}
Prerequisites
To configure core dumps for your game server, you must have an existing Google Cloud Storage (GCS) bucket. Refer to Create buckets (Google) for more information.Unity Dashboard configuration
To configure core dumps:- In the Unity Dashboard, open Multiplay Hosting.
- Select Fleets.
- Select the fleet for which you want to configure core dumps.
- Select Core Dump Storage.
- Select Configure core dump storage.
- In the Configure core dump storage dialog:
- Set Storage service to Google Cloud.
- Write the bucket name exactly as it appears in your GCS account.
- Add the service account client ID.
- Add the service account private key.
- Select Finish.
If this fleet causes your game server to crash, the core dump file appears in this GCS bucket.