do a GC collect on last client exit

melanie
UbitUmarov 2016-12-01 07:49:17 +00:00
parent 29f6e3fc7b
commit 1fdd71f856
1 changed files with 2 additions and 4 deletions

View File

@ -619,11 +619,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
m_entityProps = new PriorityQueue(1); m_entityProps = new PriorityQueue(1);
m_killRecord.Clear(); m_killRecord.Clear();
GroupsInView.Clear(); GroupsInView.Clear();
// m_scene = null; can't do this unless checks are added everywhere due to workitems already in pools
//m_log.InfoFormat("[CLIENTVIEW] Memory pre GC {0}", System.GC.GetTotalMemory(false)); if(m_scene.GetNumberOfClients() == 0)
//GC.Collect(); GC.Collect();
//m_log.InfoFormat("[CLIENTVIEW] Memory post GC {0}", System.GC.GetTotalMemory(true));
} }
public void Kick(string message) public void Kick(string message)