Results 1 to 6 of 6

Thread: Lagg on server

  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts

    Lagg on server

    Hi all,

    I have a vps from OVH. http://www.ovh.nl/vps/vps-classic.xml
    The 5 euro one. It runs smoothly, but as soon as there is more than 2 players, the server laggs. Pings increase. But when I check RAM its pretty low and same as processor thing. The mod has no errors. Is it possible that libcod laggs the server? Or that the 5 euro vps isnt good enough? I know there are some others in this forum hosting from VPS. Please let me know

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Are you doing a lot of bullettraces?
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  3. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Just disable libcod and test again with 2 players. There are some functions, which can lag the server, like system() and the mysql-functions (for long queries), but the other functions should be very fast (just some lines of C). And there are no background threads.

    I would firstly test some stock gametype like sd. When the normal gametypes work normally, disable some CoDScript threads in your mod, or as IzNoGod said bullettraces, check if log-files are flooded for some reason (Input/Output devices are often under heave load on VPS), loops without wait 0.05. And ofc with developer 1. ^^
    timescale 0.01

  4. #4
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Looks like you are using OpenVZ. This means CPU resources are always shared with other clients on the same box. If someone else is running a CPU intensive task - it will affect you.

    You need to find a host with KVM or Xen. These give you guaranteed server resources.

  5. #5
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Quote Originally Posted by IzNoGoD View Post
    Are you doing a lot of bullettraces?
    Its rifle only mod. So no bullettraces or custom threads :/ Also the log doesnt show anything.

    But i know there are more people on this forum who use OVH. Do you have laggs aswell?

  6. #6
    Private First Class php's Avatar
    Join Date
    Nov 2012
    Posts
    142
    Thanks
    28
    Thanked 116 Times in 59 Posts
    Not using a VPS though.

    Dedicated ftw

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •