View Single Post
  #1  
Old 08-06-2009, 02:00 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Insane CPU Usage

On Era Dev, we're constantly seeing things like this in our stats:

Quote:
Originally Posted by /stats
Top 10 of npcs taken most CPU time:
1. 14.767989811 percent -System/Commands (commands_items,commands_def,commands_staff)
This is absolutely ridiculous; there is no feasible way the script could be this CPU-intensive. The only command used was a single summon. This happens to virtually all of our scripts, from the simplest to the most complex. I don't notice any pattern or specific time this happens, but at some points the server is so laggy we can't do anything, even on RC with no scripts running. I have checked out the scripts with function profiling and all other tools we have, but there is no reason for this to be occurring.

This is clearly a problem with the server and not our scripts, and I'd like to hear from Stefan about what we can to to fix this. It is impossible to get any kind of clue how efficient our scripts are when they're constantly reaching 15percent on the CPU usage list for no reason.
__________________
Reply With Quote