> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 자동 크래시 덤프 수집

> PlayFab Multiplayer Servers Windows 컨테이너 빌드에서 자동 크래시 덤프 수집을 활성화하여 호스팅되는 게임 서버 프로세스가 크래시될 때 미니덤프를 캡처합니다.

# 자동 크래시 덤프 수집 활성화

이 문서에서는 서버에 대한 자동 크래시 덤프 수집을 활성화하는 방법을 설명합니다.

<Note>
  이 기능은 Windows 컨테이너 서버에서만 사용할 수 있습니다. 현재 Linux 또는 Windows 프로세스 기반 서버에서는 사용할 수 있는 방법이 없습니다.
</Note>

자동 크래시 덤프 수집을 활성화하려면 아래와 같이 CreateBuildWithManagedContainer API를 사용할 수 있습니다. CreateBuildwithManagedContainer에 대한 자세한 내용은 [Multiplayer Server - CreateBuild With Managed Container](https://learn.microsoft.com/en-us/rest/api/playfab/multiplayer/multiplayer-server/create-build-with-managed-container)를 참조하세요. JSON에서 요청 본문에 "WindowsCrashDumpConfiguration"이라는 새 필드를 추가하여 크래시 덤프를 활성화할 수 있습니다.

```Json theme={null}
    "BuildName": "crashDumpTest",
    "ContainerFlavor": "ManagedWindowsServerCore",
    "MultiplayerServerCountPerVm": 1,
    "Ports": [
        {
            "Name": "PortName",
            "Num": 1243,
            "Protocol": "TCP"
        }
    ],
    "RegionConfigurations": [
        {
            "Region": "EastUs",
            "MaxServers": 1,
            "StandbyServers": 1
        }
    ],
    "StartMultiplayerServerCommand": "C:\\Assets\\CrashingServerExample.exe sizeMiB:10",
    "UseStreamingForAssetDownloads": false,
    "GameAssetReferences": [
        {
            "FileName": "CrashingServerExample_v1_0.zip",
            "MountPath": "C:\\Assets"
        }
    ],
    "VmSize": "Standard_D2_v2",
    "WindowsCrashDumpConfiguration": {
        "IsEnabled": true,
        "DumpType": 0,
        "CustomDumpFlags": 6693
    }
}
```

<Note>
  이 기능을 활성화하면 DumpType 및 CustomDumpFlag 값이 레지스트리 키에 저장됩니다. 자세한 내용은 [Collecting User mode dumps](https://learn.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps)를 참조하세요.
</Note>

서버가 크래시되고 로그가 생성되면 PlayStream 알림이 서버 ID를 제공합니다. 서버 ID를 받은 후에는 아카이브된 서버 페이지에서 이를 검색할 수 있습니다. 아카이브된 서버 페이지로 이동하여 검색 창에 받은 서버 ID를 붙여넣습니다. 영향을 받은 서버의 로그를 다운로드하면 크래시 덤프 파일을 볼 수 있습니다. 자세한 내용은 [멀티플레이어 서버 로그 아카이빙 및 검색](/services/playfab/multiplayer/servers/archiving-and-retrieving-multiplayer-server-logs)을 참조하세요.
