diff options
author | UbitUmarov | 2016-12-01 07:49:17 +0000 |
---|---|---|
committer | UbitUmarov | 2016-12-01 07:49:17 +0000 |
commit | 1fdd71f8565ee8a52aa17f9e56ef66ab2889c859 (patch) | |
tree | bebe71ff389f70e4d6b96c0a0cfba9cfabb43081 /OpenSim | |
parent | fix a typo in dbs region range (diff) | |
download | opensim-SC-1fdd71f8565ee8a52aa17f9e56ef66ab2889c859.zip opensim-SC-1fdd71f8565ee8a52aa17f9e56ef66ab2889c859.tar.gz opensim-SC-1fdd71f8565ee8a52aa17f9e56ef66ab2889c859.tar.bz2 opensim-SC-1fdd71f8565ee8a52aa17f9e56ef66ab2889c859.tar.xz |
do a GC collect on last client exit
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 68df40f..ce7ee98 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -619,11 +619,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
619 | m_entityProps = new PriorityQueue(1); | 619 | m_entityProps = new PriorityQueue(1); |
620 | m_killRecord.Clear(); | 620 | m_killRecord.Clear(); |
621 | GroupsInView.Clear(); | 621 | GroupsInView.Clear(); |
622 | // m_scene = null; can't do this unless checks are added everywhere due to workitems already in pools | ||
623 | 622 | ||
624 | //m_log.InfoFormat("[CLIENTVIEW] Memory pre GC {0}", System.GC.GetTotalMemory(false)); | 623 | if(m_scene.GetNumberOfClients() == 0) |
625 | //GC.Collect(); | 624 | GC.Collect(); |
626 | //m_log.InfoFormat("[CLIENTVIEW] Memory post GC {0}", System.GC.GetTotalMemory(true)); | ||
627 | } | 625 | } |
628 | 626 | ||
629 | public void Kick(string message) | 627 | public void Kick(string message) |