CPU Usage - ...
#1

How can I identify where the issue of my CPU usage is. My CPU usage on Volt-Host is 18%.







Reply
#2

Probably a script issue
Reply
#3

Quote:
Originally Posted by milanosie
Посмотреть сообщение
Probably a script issue
Fuck off posting crap, you did this with my other thread! READ THE QUESTION!
Reply
#4

Check OnPlayerUpdate. Too much crap in there (especially things that take a while to execute such as queries and file writing/reading) can cause an increase in CPU usage.

- Mike from CnR \o
Reply
#5

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
Fuck off posting crap, you did this with my other thread! READ THE QUESTION!
I did what with your other thread?

And seriously, whats wrong?
How are we suposed to know WHERE in the script it is wrong,
but yeah, it is probably a script issue,

And may I ask you not to talk to me like that? I'm just trying to help.

And since your question is "where could I " and not "where in the script could I" I gave you a little tip,


Thanks for your nice response please,
Reply
#6

The larger CPU use always happen at the same time?
Reply
#7

Quote:
Originally Posted by milanosie
Посмотреть сообщение
I did what with your other thread?

And seriously, whats wrong?
How are we suposed to know WHERE in the script it is wrong,
but yeah, it is probably a script issue,

And may I ask you not to talk to me like that? I'm just trying to help.

And since your question is "where could I " and not "where in the script could I" I gave you a little tip,


Thanks for your nice response please,
I asked how can I identify where the issue is.. Not asking is it a scripting issue..

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
The larger CPU use always happen at the same time?
Yes happens all the time, even when 0 players online.

Quote:
Originally Posted by MP2
Посмотреть сообщение
Check OnPlayerUpdate. Too much crap in there (especially things that take a while to execute such as queries and file writing/reading) can cause an increase in CPU usage.

- Mike from CnR \o
This is all I got in it:

Reply
#8

Show the Update(playerid) function.

Also, I think the performance profiler plugin may help: https://sampforum.blast.hk/showthread.php?tid=271129
Reply
#9

Contact your host, can be an automated attack programmed for the same time.

I think the problem isn't OnPlayerUpdate
Reply
#10

There is nothing on update apart from setting a variable, this is from profiler, the server was running for about 10 seconds...




Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)