1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you have a problem and need help, create a new thread with a title that briefly describes the problem.
    Do not use titles like 'Help!' or 'I have a problem!'
    Dismiss Notice
  3. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Server, 100% cpu use -> people can't connect

Discussion in 'Server Help' started by Downburst, Jul 11, 2012.

  1. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    So my server (get creative) just gets unable to connect and disapears from the server list after a while.
    This morning (07:00) it automatically restarted and couldn't connect to the api, I restarted the server (15:18). Then hours later no one is able to connect to it again (I think at 17:04). I try to start it, seems it's still running. Seems it's using 100% CPU power.

    I have to manually restart this server once a day on average, to keep it running, did anyone have this before?
     

    Attached Files:

  2. FliesLikeABrick

    FliesLikeABrick THD Team THD Team Administrator Global Moderator

    Messages:
    952
    Are you still having the issue with Can't Connect to API? That may have been related to the datacenter network issues which were only finally resolved (long tail) a few hours ago

    I'm specifically talking about the error when starting the server:
    [07:00:18] WARNING: An issue was encountered while detecting the server's external IPv4/IPv6 address(es): cURL Error in determineOutboundAFPreference(): Couldn't connect to server
     
  3. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    That was fixed at the restart at 15:08.
    </br>--- merged: Jul 12, 2012 6:18 PM ---</br>
    100% CPU use again today. :(

    Only happens to my creative server.
    Does anyone know how this keeps happening every time?
     

    Attached Files:

  4. FliesLikeABrick

    FliesLikeABrick THD Team THD Team Administrator Global Moderator

    Messages:
    952
    post configs?
     
  5. Froghead48

    Froghead48 Haxor

    Messages:
    703
    Cant Connect to API strikes again!
    this happens once in a while on my server, but i get over it. :QQ:
     
  6. FliesLikeABrick

    FliesLikeABrick THD Team THD Team Administrator Global Moderator

    Messages:
    952
    once in a while is fine, that's the same as the occasional "connection to master lost" or "could not connect to master" in previous builds
     
    Froghead48 likes this.
  7. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    Settings,

    at base/scripts/:
    dedicated_autoconfig.gm
    dedicated_autostart.gm

    at /base/rules/creative/:
    team1.cfg
    team1_builder.cfg
    gamemode.cfg

    at base/maps/:
    creative.cfg
     

    Attached Files:

  8. MM

    MM THD Team THD Team Administrator Global Moderator

    Messages:
    327
    Hey. Seems like your configs don't have anything unusual. Are ppl playing when this happens?
     
  9. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    There were according to the logs, I'll ask them about what happened.
    </br>--- merged: Jul 14, 2012 12:47 PM ---</br>
    Ok, it happened when I was in the server myself now.
    KAG just crashed, no report, it just stopped reacting.

    My console log attached, server's console log attached.
    Nothing unusual.

    Could it have something to do with the weird time my server is on? No right?

    edit: I've been manually monitoring my CPU usage today and it didn't seem to be building up till it reached 100%. It was 10% 10 minutes before the crash. (that's normal)
     

    Attached Files:

  10. trelawney

    trelawney KAG Guard Tester

    Messages:
    771
    I'll be running the server in gdb today, expect logs.

    [edit]

    here's part of gdb, i omitted some stuff that kept repeating itself:
    NB: I had to issue a ^C (SIGINT) to be able to backtrace, the server was completely unresponsive.

    Code:
    [Thread 0xb6a29b70 (LWP 21113) exited]
    [01:23:32] <[TGC] Sirpixelot> Kinda a combo of hindu, chinese and science ficton
    [New Thread 0xb6a29b70 (LWP 21118)]
    [Thread 0xb6a29b70 (LWP 21118) exited]
    [01:23:45] Player DutchieJan left the game (players left 4)
    [01:23:45] <[TGC] Sirpixelot> Its quite awesome
    [01:23:46] Map saved to memory
    [New Thread 0xb6a29b70 (LWP 21123)]
    [New Thread 0xb6228b70 (LWP 21124)]
    [Thread 0xb6a29b70 (LWP 21123) exited]
    [Thread 0xb6228b70 (LWP 21124) exited]
    [01:23:51] <Masteralan> Ever heard of minecraft?
    [New Thread 0xb6228b70 (LWP 21129)]
    [Thread 0xb6228b70 (LWP 21129) exited]
    [01:23:58] <[TGC] Sirpixelot> I play it now and again
    [New Thread 0xb6228b70 (LWP 21134)]
    [Thread 0xb6228b70 (LWP 21134) exited]
    [New Thread 0xb6228b70 (LWP 21139)]
    [Thread 0xb6228b70 (LWP 21139) exited]
    [New Thread 0xb6228b70 (LWP 21144)]
    [Thread 0xb6228b70 (LWP 21144) exited]
    [01:24:20] * DutchieJan connected (admin: 0 guard 0 gold 1)
    [01:24:21] Unnamed player is now known as DutchieJan
    [New Thread 0xb6228b70 (LWP 21145)]
    [Thread 0xb6228b70 (LWP 21145) exited]
    [01:24:31] <Masteralan> time to make this gall
    [01:24:34] <Masteralan> *fall
    [New Thread 0xb6228b70 (LWP 21150)]
    [Thread 0xb6228b70 (LWP 21150) exited]
    [01:24:36] COLLAPSE by Masteralan (size 318 blocks)
    bt full
    
    ^C
    Program received signal SIGINT, Interrupt.
    0xb7022460 in CMap::isTileConstruction (this=0xb48f1410, tile=48 '0') at ../Juxta/juxta_map.cpp:3010
    3010    ../Juxta/juxta_map.cpp: No such file or directory.
            in ../Juxta/juxta_map.cpp
    (gdb) bt full
    #0  0xb7022460 in CMap::isTileConstruction (this=0xb48f1410, tile=48 '0')
        at ../Juxta/juxta_map.cpp:3010
    No locals.
    #1  0xb70275b7 in CMap::isTileSupport (this=0xb48f1410, tile=48 '0') at ../Juxta/juxta_map.cpp:6533
    No locals.
    #2  0xb702d133 in CMap::supporting_blocks (this=0xb48f1410, tile=144 '\220', offset=9469,
        last_offset=9269, origin=9269, vertical=@0xbfffe628, horizontal=@0xbfffe624,
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6604
            mult = 4
            pos = {X = 69, Y = 47}
            lastpos = {X = 69, Y = 46}
            originpos = {X = 69, Y = 46}
            t = 48 '0'
    #3  0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=9269,
        last_offset=9069, origin=9069, vertical=@0xbfffe628, horizontal=@0xbfffe624,
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 69, Y = 46}
            lastpos = {X = 69, Y = 45}
            originpos = {X = 69, Y = 45}
            t = 48 '0'
    #4  0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=9069,
        last_offset=8869, origin=8869, vertical=@0xbfffe628, horizontal=@0xbfffe624,
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 69, Y = 45}
            lastpos = {X = 69, Y = 44}
    ---Type <return> to continue, or q <return> to quit---
            originpos = {X = 69, Y = 44}
            t = 48 '0'
    #5  0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=8869, 
        last_offset=8868, origin=8668, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=2) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 69, Y = 44}
            lastpos = {X = 68, Y = 44}
            originpos = {X = 68, Y = 43}
            t = 48 '0'
    #6  0xb702d029 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=8868, 
        last_offset=8668, origin=8668, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6616
            mult = 4
            pos = {X = 68, Y = 44}
            lastpos = {X = 68, Y = 43}
            originpos = {X = 68, Y = 43}
            t = 48 '0'
    #7  0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=8668, 
        last_offset=8669, origin=8469, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=1) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 68, Y = 43}
            lastpos = {X = 69, Y = 43}
            originpos = {X = 69, Y = 42}
            t = 48 '0'
    #8  0xb702d11a in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=8669, 
    last_offset=8469, origin=8469, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6611
            mult = 4
            pos = {X = 69, Y = 43}
            lastpos = {X = 69, Y = 42}
            originpos = {X = 69, Y = 42}
            t = 48 '0'
    #9  0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=8469, 
        last_offset=8468, origin=8268, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=2) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 69, Y = 42}
            lastpos = {X = 68, Y = 42}
            originpos = {X = 68, Y = 41}
            t = 48 '0'
    #10 0xb702d029 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=8468, 
        last_offset=8268, origin=8268, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6616
            mult = 4
            pos = {X = 68, Y = 42}
            lastpos = {X = 68, Y = 41}
            originpos = {X = 68, Y = 41}
            t = 48 '0'
    #11 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=8268, 
        last_offset=8068, origin=8068, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6606
            mult = 4
    pos = {X = 68, Y = 41}
            lastpos = {X = 68, Y = 40}
            originpos = {X = 68, Y = 40}
            t = 48 '0'
    #12 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=8068, 
        last_offset=8069, origin=7869, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=1) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 68, Y = 40}
            lastpos = {X = 69, Y = 40}
            originpos = {X = 69, Y = 39}
            t = 48 '0'
    #13 0xb702d11a in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=8069, 
        last_offset=7869, origin=7869, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6611
            mult = 4
            pos = {X = 69, Y = 40}
            lastpos = {X = 69, Y = 39}
            originpos = {X = 69, Y = 39}
            t = 48 '0'
    #14 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=7869, 
        last_offset=7868, origin=7668, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=2) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 69, Y = 39}
            lastpos = {X = 68, Y = 39}
            originpos = {X = 68, Y = 38}
     t = 48 '0'
    #15 0xb702d029 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=7868, 
        last_offset=7668, origin=7668, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6616
            mult = 4
            pos = {X = 68, Y = 39}
            lastpos = {X = 68, Y = 38}
            originpos = {X = 68, Y = 38}
            t = 48 '0'
    #16 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=7668, 
        last_offset=7669, origin=7469, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=1) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 68, Y = 38}
            lastpos = {X = 69, Y = 38}
            originpos = {X = 69, Y = 37}
            t = 48 '0'
    #17 0xb702d11a in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=7669, 
        last_offset=7469, origin=7469, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6611
            mult = 4
            pos = {X = 69, Y = 38}
            lastpos = {X = 69, Y = 37}
            originpos = {X = 69, Y = 37}
            t = 48 '0'
    #18 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=7469, 
        last_offset=7468, origin=7268, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
    touchground=@0xbfffe62f, max=92, direction=2) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 69, Y = 37}
            lastpos = {X = 68, Y = 37}
            originpos = {X = 68, Y = 36}
            t = 48 '0'
    #19 0xb702d029 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=7468, 
        last_offset=7268, origin=7268, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6616
            mult = 4
            pos = {X = 68, Y = 37}
            lastpos = {X = 68, Y = 36}
            originpos = {X = 68, Y = 36}
            t = 48 '0'
    #20 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=7268, 
        last_offset=7068, origin=7068, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 68, Y = 36}
            lastpos = {X = 68, Y = 35}
            originpos = {X = 68, Y = 35}
            t = 48 '0'
    #21 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=7068, 
        last_offset=7069, origin=6869, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=1) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 68, Y = 35}
    lastpos = {X = 69, Y = 35}
            originpos = {X = 69, Y = 34}
            t = 48 '0'
    #22 0xb702d11a in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=7069, 
        last_offset=6869, origin=6869, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6611
            mult = 4
            pos = {X = 69, Y = 35}
            lastpos = {X = 69, Y = 34}
            originpos = {X = 69, Y = 34}
            t = 48 '0'
    #23 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=6869, 
        last_offset=6669, origin=6669, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 69, Y = 34}
            lastpos = {X = 69, Y = 33}
            originpos = {X = 69, Y = 33}
            t = 48 '0'
    #24 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=6669, 
        last_offset=6668, origin=6468, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=2) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 69, Y = 33}
            lastpos = {X = 68, Y = 33}
            originpos = {X = 68, Y = 32}
            t = 48 '0'
    #25 0xb702d029 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=6668, 
        last_offset=6468, origin=6468, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6616
            mult = 4
            pos = {X = 68, Y = 33}
            lastpos = {X = 68, Y = 32}
            originpos = {X = 68, Y = 32}
            t = 48 '0'
    #26 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=6468, 
        last_offset=6469, origin=6269, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=1) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 68, Y = 32}
            lastpos = {X = 69, Y = 32}
            originpos = {X = 69, Y = 31}
            t = 48 '0'
    #27 0xb702d11a in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=6469, 
        last_offset=6269, origin=6269, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6611
            mult = 4
            pos = {X = 69, Y = 32}
            lastpos = {X = 69, Y = 31}
            originpos = {X = 69, Y = 31}
            t = 48 '0'
    #28 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=6269, 
        last_offset=6268, origin=6068, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=2) at ../Juxta/juxta_map.cpp:6606
     mult = 4
            pos = {X = 69, Y = 31}
            lastpos = {X = 68, Y = 31}
            originpos = {X = 68, Y = 30}
            t = 48 '0'
    #29 0xb702d029 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=6268, 
        last_offset=6068, origin=6068, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6616
            mult = 4
            pos = {X = 68, Y = 31}
            lastpos = {X = 68, Y = 30}
            originpos = {X = 68, Y = 30}
            t = 48 '0'
    #30 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=6068, 
        last_offset=6069, origin=5870, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=1) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 68, Y = 30}
            lastpos = {X = 69, Y = 30}
            originpos = {X = 70, Y = 29}
            t = 48 '0'
    #31 0xb702d11a in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=6069, 
        last_offset=6070, origin=5870, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=1) at ../Juxta/juxta_map.cpp:6611
            mult = 4
            pos = {X = 69, Y = 30}
            lastpos = {X = 70, Y = 30}
    originpos = {X = 70, Y = 29}
            t = 48 '0'
    #32 0xb702d11a in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=6070, 
        last_offset=5870, origin=5870, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6611
            mult = 4
            pos = {X = 70, Y = 30}
            lastpos = {X = 70, Y = 29}
            originpos = {X = 70, Y = 29}
            t = 48 '0'
    #33 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=5870, 
        last_offset=5869, origin=5668, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=2) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 70, Y = 29}
            lastpos = {X = 69, Y = 29}
            originpos = {X = 68, Y = 28}
            t = 48 '0'
    #34 0xb702d029 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=5869, 
        last_offset=5868, origin=5668, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=2) at ../Juxta/juxta_map.cpp:6616
            mult = 4
            pos = {X = 69, Y = 29}
            lastpos = {X = 68, Y = 29}
            originpos = {X = 68, Y = 28}
            t = 48 '0'
    #35 0xb702d029 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=5868, 
    last_offset=5668, origin=5668, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=0) at ../Juxta/juxta_map.cpp:6616
            mult = 4
            pos = {X = 68, Y = 29}
            lastpos = {X = 68, Y = 28}
            originpos = {X = 68, Y = 28}
            t = 48 '0'
    #36 0xb702d180 in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=5668, 
        last_offset=5669, origin=5471, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=1) at ../Juxta/juxta_map.cpp:6606
            mult = 4
            pos = {X = 68, Y = 28}
            lastpos = {X = 69, Y = 28}
            originpos = {X = 71, Y = 27}
            t = 48 '0'
    #37 0xb702d11a in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=5669, 
        last_offset=5670, origin=5471, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=1) at ../Juxta/juxta_map.cpp:6611
            mult = 4
            pos = {X = 69, Y = 28}
            lastpos = {X = 70, Y = 28}
            originpos = {X = 71, Y = 27}
            t = 48 '0'
    #38 0xb702d11a in CMap::supporting_blocks (this=0xb48f1410, tile=48 '0', offset=5670, 
        last_offset=5671, origin=5471, vertical=@0xbfffe628, horizontal=@0xbfffe624, 
        touchground=@0xbfffe62f, max=92, direction=1) at ../Juxta/juxta_map.cpp:6611
            mult = 4
    
    
    [....]
    
    #63 0xb70a8139 in CRunner::DoTick (this=0xb4f5a9e0) at ../Juxta/juxta_runner.cpp:1238
            tpos = {X = 69, Y = 14}
            ladderaccy = 1429.33337
            mousenorm = {x = -0.954507649, y = 0.303651035}
            moveacc = <value optimized out>
            action = false
            actionspeed = <value optimized out>
            mult = 0
            ontree = false
            stucktile = 48 '0'
            dc = {pos = {x = 1185.93286, y = 800.49884}, vel = {x = 0, y = 0}, vellen = 0.399300218, 
              tool = 0 '\000', keys = 32 ' ', other = 32 ' ', hittime = 13}
    #64 0xb70de5c8 in CNetObject::TickDeltaUpdated () at ../Network/netobject.cpp:601
            obj = 0x30
            i = 1
    #65 0xb70fd688 in CNet::ReadPacketInSnapshot (this=0x8107520, isserver=true, statepump=0xb51f61a8, 
        bs=...) at ../Network/net.cpp:3964
            count = <value optimized out>
            netobj = <value optimized out>
            pickid = <value optimized out>
            cmd = <value optimized out>
            netid = <value optimized out>
    #66 0xb70fe7ed in CNet::ProcessSnapshots (this=0x8107520, isserver=true, statepump=0xb51f61a8, 
     bs=...) at ../Network/net.cpp:3871
            tempackedstate = 136
            tempacked_ackedstate = 5
            droppednow = 0
            temprecievedstate = 141179
            bitsize = 62
    #67 0xb70ff6bc in CNet::onPacketReceived (this=0x8107520, isserver=true, event=...)
       at ../Network/net.cpp:3629
            i = <value optimized out>
            packet_type = <value optimized out>
            last_packet = 4
            count = 1
            bs = {buffer = {<std::_Vector_base<unsigned char, std::allocator<unsigned char> >> = {
                  _M_impl = {<std::allocator<unsigned char>> = {<__gnu_cxx::new_allocator<unsigned char>> = {<No data fields>}, <No data fields>}, _M_start = 0x83eae00 "\004", _M_finish = 0x83eae19 "", 
                    _M_end_of_storage = 0x83eae19 ""}}, <No data fields>}, bitIndex = 198, 
              bitsUsed = 200, doresize = true, static fastdeltas = false, 
              buf = "\336\021\267\364\277_\267\210"}
    #68 0xb70ffa6f in CNet::UpdateServer (this=0x8107520) at ../Network/net.cpp:1072
            player = <value optimized out>
            event = {type = ENET_EVENT_TYPE_RECEIVE, peer = 0x8207e10, channelID = 0 '\000', 
              data = 1141678788, packet = 0x8304e90}
            i = <value optimized out>
    #69 0xb7102f75 in CNet::Update (this=0x8107520) at ../Network/net.cpp:838
    No locals.
    #70 0xb70dc7e0 in CNetworkTask::Update (this=0x81074f0) at ../Network/NetworkTask.cpp:42
    No locals.
    ---Type <return> to continue, or q <return> to quit---
    #71 0xb6e456ad in CKernel::Execute (this=0x8107460) at ../Engine/kernel.cpp:86
            t = 0x30
            mainControl = 0
    #72 0xb6ed8543 in CGame::Run (this=0x80f64d0, argc=1, argv=0xbffff424) at ../Game/GameDLL.cpp:426
    No locals.
    #73 0xb6ed9731 in GameDLLInit (ie=..., argc=1, argv=0xbffff424) at ../Game/GameDLL.cpp:90
            profilehandler = {<IProfilerOutputHandler> = {
                _vptr.IProfilerOutputHandler = 0xb75f1008}, <No data fields>}
            filename = {array = 0x80f1108 "Logs/console-12-07-14-19-38-04.txt", allocated = 35, 
              used = 35, allocator = {_vptr.irrAllocator = 0xb75f0bd8}}
            ex = <value optimized out>
    #74 0x0804bbd8 in CApplication::LoadGameDLL (this=0x80c6088, 
        filename=0x80c939c "Base/libJuxta_dedi.so", argc=1, argv=0xbffff424) at ../App/main.cpp:335
            initializer = 0xb6ed9080
    #75 0x0804de48 in CApplication::Run (this=0x80c6088, argc=1, argv=0xbffff424) at ../App/main.cpp:222
            dllFile = {static npos = 4294967295, 
              _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x80c939c "Base/libJuxta_dedi.so"}}
            date = "Jun 13 2012"
            buildnum = 135029480
            path = <value optimized out>
    #76 0x0804bede in main (argc=1, argv=0xbffff424) at ../App/main.cpp:595
            restart = {array = 0xb7e8e304 "X\273\r\b\340\356跐\340跄\340\350\267D\340\350\267\003", 
              allocated = 3085492212, used = 134891248, allocator = {_vptr.irrAllocator = 0xbffff378}}
            dir = {array = 0xb7ff1380 "U\211\345WV1\366S\350~\210", allocated = 134963188, 
              used = 3221222264, allocator = {_vptr.irrAllocator = 0x80a4709}}
    
    also available avec line numbers @ http://hastebin.com/rutewiqike.pl

    One of the server admins reported the following :
     
  11. MM

    MM THD Team THD Team Administrator Global Moderator

    Messages:
    327
    Looks like a collapse issue. Thanks for this, we'll need to stress test the collapses and fix this.
     
  12. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    You don't need a big collapse to make it happen. Probably just a lot or some random collapse that's weird.
    A big collapse might cause some people to time out, but that's a totally different problem.

    Code:
    [18:23:49] COLLAPSE by Rikill (size 2738 blocks)
    [18:24:05] Disconnecting peer : no response for 217 ticks
    [18:24:05] Player force777 left the game (players left 6)
    [18:24:06] Player moon2012 left the game (players left 5)
    [18:24:06] Player serg1k68 left the game (players left 4)
    [18:24:08] Player Crazy14 left the game (players left 3)
    [18:24:08] Player PinXviiN left the game (players left 2)
    [18:24:21] COLLAPSE by Dujoish (size 63 blocks)
    </br>--- merged: Jul 24, 2012 5:14 PM ---</br>
    Bump. I can't be online all day to restart my server :(

    extra info, estimated guess: the CPU is usually not increased that much on a collapse. Big buildings take about 25% of the used CPU power, players around 25% and workshops take around 50%.....
    Seems workshops like eating cpu power. Tested this by making around 300 workshops and all the sudden my server used 50% of the total CPU power. Then collapsed it and it was back at 12% again.
     
  13. FliesLikeABrick

    FliesLikeABrick THD Team THD Team Administrator Global Moderator

    Messages:
    952
    One of Rayne's servers on my box seems to regularly use 100% CPU as well, still don't have any solid leads on what it is. I'll ping Geti and MM about it, since these kinds of issues are almost always in gameplay code
     
  14. MM

    MM THD Team THD Team Administrator Global Moderator

    Messages:
    327
    Thanks for this info!
     
  15. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
  16. MM

    MM THD Team THD Team Administrator Global Moderator

    Messages:
    327
    Yes this is useful, I'm studying these logs now. Thanks.
     
  17. MM

    MM THD Team THD Team Administrator Global Moderator

    Messages:
    327
    Could you tell me your stack size?
    ulimit -a

    And maybe increase it:
    ulimit -s 32768
     
  18. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    stack size (kbytes, -s) 8192

    I will increase it now
    </br>--- merged: Aug 6, 2012 12:13 AM ---</br>
    It hasn't happened yet so far :migrant:, but I have to restart my server multiple times a day since since saturday morning as it's starting to use over 500 MB-ram after a few hours :>:(:. (actually even 1645 MB-ram this afternoon when I was not at home half a day.. :QQ:)

    Could this be related to the changed settings? It started 12 hours before I changed this though. (everything back to normal again, keeps crashing and no extreme memory leaking)


    PS. I love how these smileys make me look like a 10 yo kid....... ;) hahaha

    edit: ah damn it just happened now. Just after I turned gdb off. (I am the only one who's able to restart when gdb is on, and other people are able to restart when it's off + I will be offline a lot tomorrow so couldn't risk it.)


    edit 2: crashed again, GDB log: http://pastebin.com/WQTEy3ir

    edit 3: happened again: http://pastebin.com/uPGzHRVb

    By the way, on some collapses the server suddenly goes to a 100% CPU usage as well leading to the disconnection of some people, as described some posts above.
    But the server goes back to normal CPU usage levels afterwards (usually 15%). So not everyone disconnects and the server works fine again after some seconds. This doesn't necessarily need a HUGE collapse, and this does not always happen on a huge collapse. Seems quite random.


    edit 4: http://pastebin.com/kEZtzv5G
    all these time things are cause I had putty open when it happened. It was on 100% for quite some time till I noticed.
    </br>--- merged: Aug 13, 2012 11:02 PM ---</br>
    BUMP.

    It's not just this one server anymore. The Get Creative server is still working 'fine', if it wasn't that the 2 other servers on my box are using 100% of my CPU.
    100percent.png

    Hosting servers is impossible if they might take my total server down!

    edit 5:
    It's still happening mutliple times a day on my get creative server.
    Usually it's just a 100% CPU usage for (max) a minute where every user disconnects (happens on a big collapses) but multiple times a day my server just starts using 100% cpu due to other problems and I have to restart my server. (yes I seriously have to manually restart my server multiple times a day!)
    I am already restarting all my servers at least once a day due to the memory leaking problems. But these CPU problems (especially on get creative) are far worse.
    I seriously wonder how any hosting company could make any profit on hosting KAG servers. Hosting my own servers on a hosting company might just be cheapers than hosting them on my own dedicated server right now.
    How is that possible?
    </br>--- merged: Aug 25, 2012 2:22 AM ---</br>
    I am pretty sure my server doesn't get stuck on 100% cpu use any more. It just shuts down now :migrant:

    I will get gdb running again when I have a lot of time as I will have to manually restart the server multiple times a day then.

    edit: not true, still have to restart once in a while, but not once a day.