How to determine reason why game session running forever?

0

I have create a game fleet and have some game sessions running on it. My game is running in open testing phase. For some reasons, sometime there is a game session that running forever, it doesn't shutdown. I don't know the reason because It doesn't shut down, so I can't see logs. Is there any one can help me with that problem? or is there anyway that I can manual terminate a game session in gamelift console or using terminal? for now I just can terminated all game fleet and start new one, but it's inconvenience. Thank you very much! Here is this game session's info: DNS name: ec2-13-250-1-196.ap-southeast-1.compute.amazonaws.com Ip address: 13.250.1.196 Port: 7908

已提問 2 年前檢視次數 246 次
1 個回答
0

Hi InWaveStudio,

GameLift by default uploads game session logs every hour, and is provided to you via the GetGameSessionLogUrl API. If you have setup your log path correctly (via ProcessReady parameter), you should be able to see your game session logs there.

The quickest way to terminate your game session is by remote accessing your fleet instance and kill the process, see instructions. You might also be able to find the logs for your game session on the instance, especially you didn't setup log paths correctly or if your logs were truncated due size exceeding the limit for upload.

Slightly slower way is by setting your fleet's capacity to 0 instances (via UpdateFleetCapacity API), let all instances terminate, then re-spin up your instances.

AWS
已回答 2 年前
  • Thanks for your answer. I've set the log path via ProcessReady paremeter. But it seem like every game sessions all write log into single file at log path because when I open log file of some game sessions, it looks weird, sometime it has full log content, sometime it has just a part of log. Do I need to define log path for each game session to make it write correctly? ( like add game session id into general log path) ? Sorry for my bad English :D

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南