SA-MP Forums

Go Back   SA-MP Forums > Other > Everything and Nothing

Reply
 
Thread Tools Display Modes
Old 20/09/2016, 04:46 PM   #1
donB
Huge Clucker
 
donB's Avatar
 
Join Date: Nov 2010
Location: Down the Street!
Posts: 359
Reputation: 58
Default Continual momentary lag & VPS

Hi,

I got a OpenVZ Ubuntu 14.04.3 LTS VPS with the following configuration:

4GB RAM
5 CPU core
200GB HDD space
5000GB traffic
1Gbps uplink

I'm just running a forum (phpbb) & a SA-MP server on it. However, there seems to be a lot of momentary lags. Its as if you lost connection for a second, and got back on it. And this momentary lag occurs almost every minute. I've checked with the CPU usage, and its about 10-12%, mainly the SA-MP server. Why do you think this momentary lag occurs?

Kindly put up your opinions.
__________________


Las Venturas Cops & Robbers (LVCNR)



donB is offline   Reply With Quote
Old 20/09/2016, 04:48 PM   #2
Marricio
Gangsta
 
Join Date: Dec 2010
Posts: 718
Reputation: 96
Default Re: Continual momentary lag & VPS

Definitely not the VPS. The problem is in your script, use the profiler plugin to give you a hint where the problem is at.
Marricio is offline   Reply With Quote
Old 20/09/2016, 06:02 PM   #3
donB
Huge Clucker
 
donB's Avatar
 
Join Date: Nov 2010
Location: Down the Street!
Posts: 359
Reputation: 58
Default Re: Continual momentary lag & VPS

Hey! Thanks for the reply. Well, I agree with you upto an extent, but I've noticed that the rate of momentary lags decreases as well. Like it happens every minute for sometime, then every 4 minutes for some time, like that. Its random, but does exist all the time.
I suspected some DoS/DDoS or excessively stressed node, but nothing of that sort seems such.

I'll try with the profiler you saying, but just doubting if such a randomly timed rate of momentary lags could occur with a buggy script.
__________________


Las Venturas Cops & Robbers (LVCNR)



donB is offline   Reply With Quote
Old 20/09/2016, 06:05 PM   #4
Kyle
High-roller
 
Kyle's Avatar
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 2,258
Reputation: 330
Default Re: Continual momentary lag & VPS

Quote:
Originally Posted by donB View Post
Hey! Thanks for the reply. Well, I agree with you upto an extent, but I've noticed that the rate of momentary lags decreases as well. Like it happens every minute for sometime, then every 4 minutes for some time, like that.
I suspected some DoS/DDoS or excessively stressed node, but nothing of that sort seems such.

I'll try with the profiler you saying, but just doubting if such a randomly timed rate of momentary lags could occur with a buggy script.
Some players could be doing something specific causing it?

For example if they're in a car, and there's some extensive looping, when they exit it stops, it could be numerous things.
Kyle is offline   Reply With Quote
Old 20/09/2016, 06:07 PM   #5
donB
Huge Clucker
 
donB's Avatar
 
Join Date: Nov 2010
Location: Down the Street!
Posts: 359
Reputation: 58
Default Re: Continual momentary lag & VPS

Quote:
Originally Posted by KyleSmith View Post
Some players could be doing something specific causing it?

For example if they're in a car, and there's some extensive looping, when they exit it stops, it could be numerous things.
So in short, you're saying that it could be a script issue. Hmmm.
__________________


Las Venturas Cops & Robbers (LVCNR)



donB is offline   Reply With Quote
Old 20/09/2016, 06:08 PM   #6
Kyle
High-roller
 
Kyle's Avatar
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 2,258
Reputation: 330
Default Re: Continual momentary lag & VPS

Quote:
Originally Posted by donB View Post
So in short, you're saying that it could be a script issue. Hmmm.
Yes, I'm just explaining as to why how the 'momentary lag' could be working.
Kyle is offline   Reply With Quote
Old 20/09/2016, 06:12 PM   #7
donB
Huge Clucker
 
donB's Avatar
 
Join Date: Nov 2010
Location: Down the Street!
Posts: 359
Reputation: 58
Default Re: Continual momentary lag & VPS

Could it be this as well? I mean is it advisable to make this SLEEP parameter 1, for eg.?

Quote:
Server.cfg parameter: Sleep
Default Value: 5
Description: Time in milliseconds for which the main sa-mp and raknet networking thread will "sleep" idly during each sync cycle. Using a higher value, the server will require fewer CPU, but the quality of sync will suffer greatly. By using a lower value, the server will consume more cpu resources but will improve server sync performance - at cost of cpu power. It is not advisable to change this value ever unless your player count is very high and you have server fps stability issues.
Quoted from https://wiki.sa-mp.com/wiki/Server.cfg
__________________


Las Venturas Cops & Robbers (LVCNR)



donB is offline   Reply With Quote
Old 20/09/2016, 06:15 PM   #8
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,329
Reputation: 652
Default Re: Continual momentary lag & VPS

Is it you specifically, or everybody?
Crayder is offline   Reply With Quote
Old 20/09/2016, 06:35 PM   #9
donB
Huge Clucker
 
donB's Avatar
 
Join Date: Nov 2010
Location: Down the Street!
Posts: 359
Reputation: 58
Default Re: Continual momentary lag & VPS

Almost everyone, ofcourse.
__________________


Las Venturas Cops & Robbers (LVCNR)



donB is offline   Reply With Quote
Old 20/09/2016, 07:11 PM   #10
Jstylezzz
High-roller
 
Jstylezzz's Avatar
 
Join Date: Sep 2011
Location: Netherlands
Posts: 1,860
Reputation: 1571
Default Re: Continual momentary lag & VPS

Damn that's annoying.. Does this also happen when you are the only one online and idling? If not, then what KyleSmith said could be a very likely suspect.

Quote:
Originally Posted by donB View Post
Could it be this as well? I mean is it advisable to make this SLEEP parameter 1, for eg.?


Quoted from https://wiki.sa-mp.com/wiki/Server.cfg
I never touched that value (didn't even know it exists lol), and I haven't encountered the issue you describe.. So I can't say for certain if it helps or not.
Jstylezzz is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 12:37 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.