Server slowing down

Results 1 to 11 of 11
  1. #1
    Valued Member SylenThunder is offline
    MemberRank
    Aug 2009 Join Date
    SE MichiganLocation
    143Posts

    sad Server slowing down

    OK, this is a wierd one, and I can't seem to figure it out so far on my own, so I come here for help. =P

    Basically, after I've loaded the maps, the server gradually grinds down to a speed that makes it unuseable. I mean, we're talking around 5 minutes for the ./stop.sh script to complete here.

    Near as I can tell, it's the maps, so here's my setup and what I've done...
    SunFire v20z 16GB RAM (Not certain on the CPU speed offhand, but I don't think it's terribly important at this stage.)
    Two 78GB 15k hard drives in RAID.
    Ubuntu 10.04 Server 64-bit

    I installed 343's 1.3.6 release and completed the initial configuration for the IP addresses.

    I then copied over PsyTrac's 1.4.4 files from the ISO image.

    Afterwards I edited opt\apache-tomcat-5.5.28\2\webapps\pwAdmin\WEB-INF\.pwadminconf.jsp changed string pw_server_path = "/PWServer/"; to pw_server_path = "/pwserver/";

    Then I fired it up, created a couple of accounts, loaded all the maps, and went to town.

    5 minutes later I couldn't do anything and I got errors.
    SO, I shut it down, reboot the server, fire it up again, load fewer maps, and the same thing happens.

    So I shut it down, and it's still running slow. I check the running threads, and all the maps are still there using memory.
    It's got 15GB of the 16GB of RAM in use, buffer is the same as used ram, and swap isn't being used at all. (I forget how to get rid of SWAP, pretty sure I don't need it.)

    So I then run "killall gs" and poof, the memory is free and the server is back to a normal speed.

    Anyone have any ideas about what's going on here? I'm testing it now with just the world map up, but the whole reason for getting the server was to be able to load all the maps.


  2. #2
    SHM - Swedish House Mafia 80085 is offline
    MemberRank
    Nov 2011 Join Date
    N/ALocation
    229Posts

    Re: Server slowing down

    Posted by 343 in 1.3.6 section about required specs:


    (for anyone looking for 1.4.4 specs, rule of thumb, DOUBLE these specs)
    RAM -- 32GB/+ (NO less)(with NO MORE than a 1:1 ratio of SWAP)
    BANDWIDTH -- 100/100 or faster
    HDD -- 1TB per 500,000 accounts or 4,000,000 characters

    You have lack of ram.

  3. #3
    Valued Member SylenThunder is offline
    MemberRank
    Aug 2009 Join Date
    SE MichiganLocation
    143Posts

    Re: Server slowing down

    grrr ok, so I can load most of the maps, but not all. I found in another thread where you offered a script to load all the maps at once, do you think that would reduce it enough if I limited the maps to the important ones, and then manually loaded maps like the TW maps when they were needed?

  4. #4
    SHM - Swedish House Mafia 80085 is offline
    MemberRank
    Nov 2011 Join Date
    N/ALocation
    229Posts

    Re: Server slowing down

    Just take the most important ones. If ur server is suppose to have all maps open you should get more RAM.

  5. #5
    Valued Member SylenThunder is offline
    MemberRank
    Aug 2009 Join Date
    SE MichiganLocation
    143Posts

    Re: Server slowing down

    OK, loading individual maps, everything is fine until the used memory hits 11GB, then it starts to slow down the server. I still have 5GB of free RAM at that point and 0 SWAP useage, so I'm kind of baffled as to why it would slow the server down.

  6. #6
    SHM - Swedish House Mafia 80085 is offline
    MemberRank
    Nov 2011 Join Date
    N/ALocation
    229Posts

    Re: Server slowing down

    Make it hit 10 GB so it's going smooth. I'll see if I figure out..

  7. #7
    Member corujaobr is offline
    MemberRank
    Jun 2012 Join Date
    BrazilLocation
    81Posts

    Re: Server slowing down

    I have a VPS with 8GB of ram and open only the required maps. When the server re-grow I'll have to put more than 24GB of ram.
    And even so my server is down all the time, must be a bug, or you must be doing something wrong, take a look in the logs.

  8. #8
    SHM - Swedish House Mafia 80085 is offline
    MemberRank
    Nov 2011 Join Date
    N/ALocation
    229Posts

    Re: Server slowing down

    Quote Originally Posted by corujaobr View Post
    I have a VPS with 8GB of ram and open only the required maps. When the server re-grow I'll have to put more than 24GB of ram.
    And even so my server is down all the time, must be a bug, or you must be doing something wrong, take a look in the logs.
    Don't use VPS. It's better you host it or get a dedicated server.

  9. #9
    Member corujaobr is offline
    MemberRank
    Jun 2012 Join Date
    BrazilLocation
    81Posts

    Re: Server slowing down

    Quote Originally Posted by 80085 View Post
    Don't use VPS. It's better you host it or get a dedicated server.
    I know I will buy more as a dedicated here in Brazil even buying one in France or the United States is very expensive here in VPS 8GB'm paying 150 reais a month, very cheap to start, as I receive a lot I'll go donate to a dedicated.

  10. #10
    SHM - Swedish House Mafia 80085 is offline
    MemberRank
    Nov 2011 Join Date
    N/ALocation
    229Posts

    Re: Server slowing down

    Quote Originally Posted by corujaobr View Post
    I know I will buy more as a dedicated here in Brazil even buying one in France or the United States is very expensive here in VPS 8GB'm paying 150 reais a month, very cheap to start, as I receive a lot I'll go donate to a dedicated.
    It's maybe expensive, but it's totally worth it.

  11. #11
    Valued Member SylenThunder is offline
    MemberRank
    Aug 2009 Join Date
    SE MichiganLocation
    143Posts

    idea Re: Server slowing down

    ok, so as long as I keep the load below 10GB RAM, there's no issue, which still strikes me as odd that the threshold is that low with 16GB of RAM, but I'll live.

    I was considering adding this to the bottom of ./start.sh to see if the maps loaded using less memory.
    Code:
    # Start selected 'maps' below:
    cd /pwserver/gamed
    # The following config will start 'all' maps:
    ./gs gs01 gs.conf gmserver.conf gsalias.conf is01 is02 is05 is06 is07 is08 is09 is10 is11 is12 is13 is14 is15 is16 is17 is18 is19 is20 is21 is22 is23 is24 is25 is26 is27 is28 is29 is31 is32 is33 is34 is35 b05 house1 house2 house3 house4 house5 house6 z9 q20 arena04 arena01 arena02 arena03 jail bg01 bg02 bg03 bg04 bg05 bg06 > /pwserver/logs/gs_all.log &
    Then the whole script looks like...
    Code:
    #!/bin/sh
    
    
    # Start all necessary 'services':
    # logservice
    cd /PWServer/logservice
    ./logservice logservice.conf > /PWServer/logs/logservice.log &
    # uniquenamed
    cd /PWServer/uniquenamed
    ./uniquenamed gamesys.conf > /PWServer/logs/uniquenamed.log &
    # authd
    cd /PWServer/authd
    ./authd > /PWServer/logs/authd.log &
    # gamedbd
    cd /PWServer/gamedbd
    ./gamedbd gamesys.conf > /PWServer/logs/gamedbd.log &
    # gacd
    cd /PWServer/gacd
    ./gacd gamesys.conf > /PWServer/logs/gacd.log &
    # gfactiond
    cd /PWServer/gfactiond
    ./gfactiond gamesys.conf > /PWServer/logs/gfactiond.log &
    # gdeliveryd
    cd /PWServer/gdeliveryd
    ./gdeliveryd gamesys.conf > /PWServer/logs/gdeliveryd.log &
    # glinkd
    cd /PWServer/glinkd
    ./glinkd gamesys.conf 1 > /PWServer/logs/glink1.log &
    ./glinkd gamesys.conf 2 > /PWServer/logs/glink2.log &
    ./glinkd gamesys.conf 3 > /PWServer/logs/glink3.log &
    ./glinkd gamesys.conf 4 > /PWServer/logs/glink4.log &
    
    
    # Start selected 'maps' below:
    cd /pwserver/gamed
    # The following config will start 'all' maps:
    ./gs gs01 gs.conf gmserver.conf gsalias.conf is01 is02 is05 is06 is07 is08 is09 is10 is11 is12 is13 is14 is15 is16 is17 is18 is19 is20 is21 is22 is23 is24 is25 is26 is27 is28 is29 is31 is32 is33 is34 is35 b05 house1 house2 house3 house4 house5 house6 z9 q20 arena04 arena01 arena02 arena03 jail bg01 bg02 bg03 bg04 bg05 bg06 > /PWServer/logs/gs_all.log &
    But then I start thinking, that's my map list from 343's Now I need to go check the maps in the 1.4.4 version and make sure that they are all listed in pwAdmin, and also in my script.

    I was also considering limiting the initial script to the World map and connected open maps, then making a separate script for the set of FB maps, another for TT maps, ect.



Advertisement