CPU usage -
Nin9r - 16.05.2016
Hi !
How can I see which part of my script use more resources than normal?
I received "
Код HTML:
Warning: client exceeded 'ackslimit' 93.174.22.223:50520 (1073) Limit: 3000/sec
" in server_logs.txt and players kicked.
I have almost 67k lines in my script and I don't know where can I search to optimize it.
Re: CPU usage -
Naresh - 17.05.2016
well i suggest u test Some Functions like Onplayerconnect or some Systems and Check where it occurs it is rly hard to find the spot...
Good Luck~
Re: CPU usage -
SoLetsGO - 17.05.2016
Quote:
Originally Posted by Naresh
well i suggest u test Some Functions like Onplayerconnect or some Systems and Check where it occurs it is rly hard to find the spot...
Good Luck~
|
No.
3000/sec just means, that you passed 3000 units (x,y,z) in 1 second which is set as limit for you.
This can happen if you port a player from 0,0,0 to 4000,4000,10000 or whatever.
To solve this, you can delete this teleportation or the better solution is to increase your ackslimit.
In your "server.cfg" you might find "ackslimit 3000". Just increase the value (f.e.: 6000).
If it is not in your server.cfg, then you can just add it to the server.cfg.
Regards
Re: CPU usage -
ev0lution - 17.05.2016
Quote:
Originally Posted by SoLetsGO
No.
3000/sec just means, that you passed 3000 units (x,y,z) in 1 second which is set as limit for you.
This can happen if you port a player from 0,0,0 to 4000,4000,10000 or whatever.
To solve this, you can delete this teleportation or the better solution is to increase your ackslimit.
In your "server.cfg" you might find "ackslimit 3000". Just increase the value (f.e.: 6000).
If it is not in your server.cfg, then you can just add it to the server.cfg.
Regards
|
ackslimit has nothing to do with teleportation or in-game units, it's how many network messages were sent to/from the client.
This can be caused by a poorly written script that sends lots of information to the client frequently, or a laggy client so that they're delayed and send lots of messages in a large block, or you might just have lots of players and lots of things happening on your server.
You can raise the ackslimit in server.cfg, try "ackslimit 5000" and see if the problem persists.
As for seeing which functions take the most time to execute, Zeex made an excellent
profiler plugin which does exactly that.
Re: CPU usage -
Nin9r - 19.05.2016
Quote:
Originally Posted by ev0lution
ackslimit has nothing to do with teleportation or in-game units, it's how many network messages were sent to/from the client.
This can be caused by a poorly written script that sends lots of information to the client frequently, or a laggy client so that they're delayed and send lots of messages in a large block, or you might just have lots of players and lots of things happening on your server.
You can raise the ackslimit in server.cfg, try "ackslimit 5000" and see if the problem persists.
As for seeing which functions take the most time to execute, Zeex made an excellent profiler plugin which does exactly that.
|
I know it. But how can i see which part of code is poorly?
Re: CPU usage -
Naresh - 19.05.2016
Your Forgot to read the last line he said
"As for seeing which functions take the most time to execute, Zeex made an excellent profiler plugin which does exactly that."
Re: CPU usage -
Nin9r - 19.05.2016
Ok. i am sorry i didn't see it.
Re: CPU usage -
jacobwallace - 20.05.2016
use online program fixer.