Server falls asleep after Game end

Discussions about Coding and Scripting
User avatar
rjmno1
Masterful
Posts: 716
Joined: Fri Aug 12, 2011 9:38 pm
Personal rank: masterfull
Location: https://sites.google.com/view/unrealtou ... oject/home
Contact:

Re: Server falls asleep after Game end

Post by rjmno1 »

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
https://sites.google.com/view/unrealtou ... oject/home mine home ut99 website.
https://richardmoust105.blogspot.com/20 ... ef-in.html dutch blog page about ut99 settings.
dot
Average
Posts: 59
Joined: Tue Oct 30, 2018 3:41 am

Re: Server falls asleep after Game end

Post by dot »

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: 3605
Joined: Sat Sep 12, 2015 8:46 pm

Re: Server falls asleep after Game end

Post by OjitroC »

Just to note that the link in (1) above should be https://wiki.beyondunreal.com/Legacy:Co ... mands_(UT)
User avatar
Que
Inhuman
Posts: 781
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...
Contact:

Re: Server falls asleep after Game end

Post by Que »

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.
*Join our Discord Here.*
Our mods - MVX , SSB , SmartWFL , UTCmds , BotCommands , Smart Stats , join/leave announcer , NoSmoke , UTLogin , BrightSkins , Server Tran…
*Our Servers
User avatar
esnesi
Godlike
Posts: 1018
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: Server falls asleep after Game end

Post by esnesi »

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
User avatar
Barbie
Godlike
Posts: 2792
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Server falls asleep after Game end

Post by Barbie »

Update on this topic: since server is running version 469b instead of 451, those sleeps after game end are very seldom or have vanished at all (sometimes server is restarted because it does not respond within a small time window, but this may be caused by too aggressive setting for the watchdog).
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Post Reply