Anonymous | Login | Signup for a new account | 01-07-25 12:29 CEST | ![]() |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||
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 | |||||
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 | |||||
Tags | No tags attached. | |||||
Nightly Version | Automated (specify build number) | |||||
Experimental Flags | None | |||||
Option Flags | None | |||||
Internal Build Number | ||||||
Attached Files | ||||||
![]() |
|
(0001965) XuN (developer) 18-02-14 19:20 edited on: 18-02-14 19:56 |
i'll look on creating a exception so these triggers are not called on startup. Edit: I cannot reproduce it. Edit2: It seems to happen the first time this build is being loaded, do a worldsave and reload... it should work fine then. |
(0001966) XuN (developer) 19-02-14 15:36 |
Any news? happened again? it was just the first time...? |
(0001967) Coruja (developer) 19-02-14 17:17 |
the problem still there, I downloaded exactly all same savefiles from the live server (which already have everything created and running fine) but even using this save file the test server will got a heavy load on startup. I noticed this problem only on @SkillChange and @ExpLevelChange (strangely @ExpChange is fine). Others triggers are fine too |
(0001968) Coruja (developer) 19-02-14 17:30 |
I'm using this event on all players, with exactly these same triggers. All these triggers are using SQL functions to sync data on SQL. Only @SkillChange and @ExpLevelChange are causing heavy load on server startup [EVENTS e_sql_sync] ON=@Login ... ON=@Logout ... ON=@ItemEquip ... ON=@ItemUnequip ... ON=@SkillChange //heavy load ... ON=@Kill ... ON=@Death ... ON=@MurderDecay ... ON=@FameChange ... ON=@KarmaChange ... ON=@ExpChange ... ON=@ExpLevelChange //heavy load ... |
(0001969) XuN (developer) 23-02-14 13:27 |
Added |
![]() |
|||
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 | View Revisions |
18-02-14 19:56 | XuN | Note Edited: 0001965 | View Revisions |
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 |
Copyright © 2000 - 2010 MantisBT Group |