Browse Source

BETA: Memory leak fix. CharEffectList shouldnt keep effects cache upon deletion, this causes references to some effects (thus cant be deleted by GC and keep memory occupied). getEffector() and getEffected() of the effect keep references to L2Characters, those L2Characters cant be deleted from the GC aswell, thus causing 13,731 instances of L2PcInstance on my server, WTF? I just hope that this is the main causer of that, and not something else ^^

Nik 13 năm trước cách đây
mục cha
commit
9ae33d9e84

+ 1 - 0
L2J_Server_BETA/java/com/l2jserver/gameserver/model/CharEffectList.java

@@ -1271,6 +1271,7 @@ public class CharEffectList
 			_debuffs = null;
 			_stackedEffects = null;
 			_queuesInitialized = false;
+			_effectCache = null;
 		}
 		catch (Exception e)
 		{