SphereServer BugTracker - SphereServer | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0002279 | SphereServer | executable - windows build | public | 18-02-14 17:28 | 23-02-14 13:27 |
Reporter | Coruja | ||||
Assigned To | XuN | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Nightly Version | Automated (specify build number) | ||||
Experimental Flags | None | ||||
Option Flags | None | ||||
Internal Build Number | |||||
Summary | 0002279: [Major bug] Heavy load after server startup | ||||
Description | After server startup, it will call @SkillChange, @LevelChange, etc on all chars when loading it on save files, this causes a heavy load on sphere, and ultra heavy load if someone uses these triggers to sync skills/status on SQL database (me :D) [EVENTS e_player] ON=@SkillChange SQLSyncSkill char,skill,value I really doesnt make a deep tested it yet (I'm not at home) but every time my server startup, the console get spammed with millions of SQL errors. The problem is not the SQL error because I'm using the test server on my PC, not on the remote live server which has the SQL server, so SQL functions will never work on the test server. But these errors means that sphere is calling the trigger @SkillChange for every skill on every char maybe thats a wrong usage for this trigger, just imagine 57 skills on chars and 3000 chars/accounts to load on server startup. This will cause a huge load calling @SkillChange for 171.000 times (57 x 3000) I think its a wrong call for the trigger @SkillChange, because the server is not really changing any skill, its just loading the skill from the save file -without change the value- I dont know exactly all triggers causing this, but the most notable on my server startup is @SkillChange and @LevelChange | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
18-02-14 17:28 | Coruja | New Issue | |||
18-02-14 19:20 | XuN | Note Added: 0001965 | |||
18-02-14 19:47 | XuN | Note Edited: 0001965 | bug_revision_view_page.php?bugnote_id=0001965#r571 | ||
18-02-14 19:56 | XuN | Note Edited: 0001965 | bug_revision_view_page.php?bugnote_id=0001965#r572 | ||
19-02-14 15:36 | XuN | Note Added: 0001966 | |||
19-02-14 17:17 | Coruja | Note Added: 0001967 | |||
19-02-14 17:30 | Coruja | Note Added: 0001968 | |||
23-02-14 10:32 | XuN | Assigned To | => XuN | ||
23-02-14 10:32 | XuN | Status | new => acknowledged | ||
23-02-14 13:27 | XuN | Note Added: 0001969 | |||
23-02-14 13:27 | XuN | Status | acknowledged => resolved | ||
23-02-14 13:27 | XuN | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|