• Server crashing Randomly when doing a map cleanup
    0 replies, posted
My TTT server is crashing randomly 1 to 2 times a day at the end of the round when the map is getting rebuilded(game.CleanUpMap()) My console just freezes and not responsive i cant even type quit to close the server i must terminate the session then i can start the server again. I have added custom prints to my gamemode init file local function CleanUp()    print("CleanUpStarted")    local et = ents.TTT    -- if we are going to import entities, it's no use replacing HL2DM ones as    -- soon as they spawn, because they'll be removed anyway    et.SetReplaceChecking(not et.CanImportEntities(game.GetMap()))    et.FixParentedPreCleanup()    game.CleanUpMap()    print("CleanUpSuccess")    et.FixParentedPostCleanup()    -- Strip players now, so that their weapons are not seen by ReplaceEntities    for k,v in pairs(player.GetAll()) do       if IsValid(v) then          v:StripWeapons()       end    end    -- a different kind of cleanup    util.SafeRemoveHook("PlayerSay", "ULXMeCheck")    print("CleanFinished") end And here is my console output when it crashes ServerLog: Round ended. ServerLog: Result: traitors win. CleanUpStarted Then it freezes/crashes and then i must terminate the session because the quit cmd does nothing Specs i7 6700k 1gp of ram I run the server on a VPS Things i have tried Reinstalling gmod server Change VPS Host Removing all unnecessary addons Running the Gmodserver on a vps with more ram did nothing still having the same problem Distro Details ================================= Distro:    Debian GNU/Linux 8.4 (jessie) Arch:      x86_64 Kernel:    3.16.0-4-amd64 Hostname:  tmux:      tmux 1.9 GLIBC:     2.19 Performance Uptime:    4d, 19h, 14m Avg Load:  0.94, 0.61, 0.46 Mem:       total   used   free     cached Physical:  993M    914M   79M      361M Swap:      1.1G    22M    1.0G Storage ================================= Filesystem:      /dev/sda1 Total:           24G Used:            16G Available:       6.8G LinuxGSM Total:  8.7G Serverfiles:     6.4G Garry's Mod Server Details ================================= Server name:      Server IP:        Server password:  *********** RCON password:    *********** Maxplayers:       28 Game mode:        terrortown Tick rate:        66 Status:           ONLINE Thanks you for taking the time and reading this!
Sorry, you need to Log In to post a reply to this thread.