Server falls asleep after Game end

Discussions about Coding and Scripting
User avatar
rjmno1
Masterful
Posts: 621
Joined: Fri Aug 12, 2011 9:38 pm
Personal rank: masterfull

Re: Server falls asleep after Game end

Post by rjmno1 » Wed Apr 26, 2017 4:45 pm

Barbie wrote:
rjmno1 wrote:Well so far as i know it got something todo with the windows settings also.
*cough* That server is running on Linux in a shared environment.
Well is there a Linux distribution who you can edit the power management?
Now i understand the complex things of editing files so the server never can sleep.
Otherwise read the faq who comes with the Linux.Otherwise you have to solve indeed the software way.
I,m sory i never use Linux, Always windows.Its to complex for me and not so user friendly.
I have a multitask operating systenm who works with dos commands, thats Linux.And a hard way properly to install.
Have much pleasure to solve this problem.

regardz:rjmno1
unreal tournament 99
®
Image
Image
ImageImage

dot
Average
Posts: 57
Joined: Tue Oct 30, 2018 3:41 am

Re: Server falls asleep after Game end

Post by dot » Wed Nov 07, 2018 8:33 am

1. Here console commands for explore memory:
https://wiki.beyondunreal.com/Legacy:Co ... mands_(UT)

2. Search over code and eliminate all keyword "new" if possible. Or make new (None) as you write in forum for linked list. Better reuse objects.
I make small test - 10000 new object on every tick. It is eat many memory. After switch level it is going free this memory. It is take a lot time. CPU loaded on one core. On Windows.
Also possible overflow not only for name length but for name counter. 2 billion objects. It can be hard, but not impossible. But maybe memory ended before this.

3. Make debug packages of all custom server packages and debug all in and out to each function. For determine place of hang.

4. Make server process memory dump for investigate it later.

5. Try see what treads running on asleep state and compare with usual state. Via gdb.

6. Make script for dump some state about server each interval (memory, count objects etc). On asleep you can get this values before crash.
Last edited by dot on Wed Nov 07, 2018 11:11 am, edited 1 time in total.

User avatar
OjitroC
Godlike
Posts: 1303
Joined: Sat Sep 12, 2015 8:46 pm

Re: Server falls asleep after Game end

Post by OjitroC » Wed Nov 07, 2018 10:09 am

Just to note that the link in (1) above should be https://wiki.beyondunreal.com/Legacy:Co ... mands_(UT)

User avatar
Que
Experienced
Posts: 108
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...
Contact:

Re: Server falls asleep after Game end

Post by Que » Wed Mar 04, 2020 11:45 am

This could be caused by an Infinite Loop Apparently.. Iam also suffering from the same problem
unfortunately theres no easy way to find it.. without debugging and other high level techniques.
unreal://103.125.218.185:7760 (469 Test Server)

User avatar
esnesi
Masterful
Posts: 547
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: on it!

Re: Server falls asleep after Game end

Post by esnesi » Wed Mar 04, 2020 3:06 pm

UTPe wrote:
Sun Jan 01, 2017 11:44 am
Hi Barbie,
maybe you have to turn off ngstats from ut99 by nulling these params into your UnrealTournament.ini file, see if it works:

[Engine.StatLog]
LocalBatcherURL=
LocalBatcherParams=
LocalStatsURL=
WorldBatcherURL=
WorldBatcherParams=
WorldStatsURL=
LocalLogDir=
WorldLogDir=
bWorldBatcherError=False
bLogTypingEvents=False



cheers,
Pietro
Not sure if it helps after this many years.
I've got them set on:

[Engine.StatLog]
LocalBatcherURL=../NetGamesUSA.com/ngStats/ngStatsUT.exe
LocalBatcherParams=
LocalStatsURL=../NetGamesUSA.com/ngStats/html/ngStats_Main.html
WorldBatcherURL=../NetGamesUSA.com/ngWorldStats/bin/ngWorldStats.exe
WorldBatcherParams=-d ../NetGamesUSA.com/ngWorldStats/logs -g UT
WorldStatsURL=http://www.netgamesusa.com
LocalLogDir=../Logs
WorldLogDir=../NetGamesUSA.com/ngWorldStats/logs
bLogTypingEvents=False
bWorldBatcherError=True

[Engine.GameInfo]
bLocalLog=False
bWorldLog=False
bBatchLocal=False

viewtopic.php?t=5813

Post Reply