SphereServer BugTracker - SphereServer |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0001868 | SphereServer | executable - windows build | public | 17-12-10 13:26 | 23-01-11 03:35 |
|
Reporter | Incanus | |
Assigned To | MrSugarCube | |
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | |
Platform | Windows | OS | Windows | OS Version | Server 2003 |
Product Version | | |
Target Version | | Fixed in Version | 0.56c Nightly | |
Nightly Version | Automated (specify build number) |
Experimental Flags | UsePingServer, UseNetworkMulti |
Option Flags | Command_Sysmsgs, FileCommands, NoHouseMuteSpeech, Buffs, NoPrefix |
Internal Build Number | 1377 |
|
Summary | 0001868: Sphere has a major memory leak |
Description | Sphere has a major memory leak. When we start up our server it uses approximately 460 MB. This increases over time, dependent on user activity. We use a script that reboots the server when sphere reaches a memory usage of 730 MB. This happens
two times on a normal day.
Though on major events, when 30+ players are battling in the same crowded area the memory usage explodes and we lose 200-300 MB an hour.
So my guess is the memory leak is related to the networking code.
When I can help to track down the cause of the memory leak let me know. |
Steps To Reproduce | |
Additional Information | Items: 850.000
Chars: 26.000
UseAsyncNetwork=1
UsePacketPriority=1
EF_NetworkOutThread enabled
User load: http://www.skariatain.net/statusbild/24stunden.php [^] |
Tags | No tags attached. |
Relationships | related to | 0001891 | closed | MrSugarCube | Compress failed with error -4 when generating gump. Using old packet. | related to | 0001818 | closed | MrSugarCube | Sphere throws exception in CScript::ReadKeyParse after running fine for 24 hours |
|
Attached Files | mem_leak.png (35,523) 04-01-11 02:29 http://tracker.sphere.torfo.org/bugs/file_download.php?file_id=49&type=bug
|
|
Issue History |
Date Modified | Username | Field | Change |
17-12-10 13:26 | Incanus | New Issue | |
04-01-11 02:25 | Incanus | Note Added: 0000813 | |
04-01-11 02:29 | Incanus | File Added: mem_leak.png | |
12-01-11 02:54 | Incanus | Note Added: 0000832 | |
19-01-11 17:00 | MrSugarCube | Relationship added | related to 0001891 |
22-01-11 02:18 | MrSugarCube | Note Added: 0000852 | |
22-01-11 02:18 | MrSugarCube | Status | new => resolved |
22-01-11 02:18 | MrSugarCube | Fixed in Version | => 0.56c Nightly |
22-01-11 02:18 | MrSugarCube | Resolution | open => fixed |
22-01-11 02:18 | MrSugarCube | Assigned To | => MrSugarCube |
23-01-11 02:18 | Incanus | Note Added: 0000860 | |
23-01-11 02:18 | Incanus | Status | resolved => feedback |
23-01-11 02:18 | Incanus | Resolution | fixed => reopened |
23-01-11 03:35 | MrSugarCube | Note Added: 0000861 | |
23-01-11 03:35 | MrSugarCube | Status | feedback => resolved |
23-01-11 03:35 | MrSugarCube | Resolution | reopened => fixed |
24-01-11 01:09 | MrSugarCube | Relationship added | related to 0001818 |
Notes |
|
|
Script to reproduce the leak on an empty world, tested with 1385 and UseExtraBuffer=1
[FUNCTION f_test_leak]
GO 100,100
FOR X -20 20
FOR Y -20 20
SERV.NEWITEM i_floor_marble
NEW.P <EVAL <P.X> + <LOCAL.X>>, <EVAL <P.Y> + <LOCAL.Y>>
ENDFOR
ENDFOR
f_test_leak_timer
f_test_leak_timer
f_test_leak_timer
f_test_leak_timer
[FUNCTION f_test_leak_timer]
IF !(<FLAGS>&statf_war)
UPDATE
TIMERF 0, f_test_leak_timer
ENDIF |
|
|
|
This issue is related to the TooltipCache. Enabling the TooltipCache fixes the bug. |
|
|
|
Managed to reproduce and fix this (with Torfo's help). I believe it normally should only occur if you have TooltipCache=0 and a script is returning 1 under @ClientToolTip/@ItemClientToolTip. |
|
|
|
This bug still exists in #1401
I reproduced on a freshly installed sphere server only with sphere standard scripts
TooltipCache=0
FeatureAOS=0f |
|
|
|
True, the leak isn't related to @ClientTooltip triggers at all, just TooltipCache. :)
Please check again in the next automated build (1402+). |
|