aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSim.cs
diff options
context:
space:
mode:
authorUbitUmarov2017-05-09 23:22:36 +0100
committerUbitUmarov2017-05-09 23:22:36 +0100
commit09c4952c6d60be9a2344c4295881bbb20e50d9eb (patch)
tree3ce91c768ab37d966fa986a593cd4cc33f792328 /OpenSim/Region/Application/OpenSim.cs
parentupdate mysql connector to v6.9.9 .net4.5 (diff)
parent let .net decide GC mode from its defaults on the platform (diff)
downloadopensim-SC-09c4952c6d60be9a2344c4295881bbb20e50d9eb.zip
opensim-SC-09c4952c6d60be9a2344c4295881bbb20e50d9eb.tar.gz
opensim-SC-09c4952c6d60be9a2344c4295881bbb20e50d9eb.tar.bz2
opensim-SC-09c4952c6d60be9a2344c4295881bbb20e50d9eb.tar.xz
merge
Diffstat (limited to 'OpenSim/Region/Application/OpenSim.cs')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 58178bc..f9f103a 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -33,6 +33,7 @@ using System.Diagnostics;
33using System.IO; 33using System.IO;
34using System.Linq; 34using System.Linq;
35using System.Reflection; 35using System.Reflection;
36using System.Runtime;
36using System.Text; 37using System.Text;
37using System.Text.RegularExpressions; 38using System.Text.RegularExpressions;
38using System.Timers; 39using System.Timers;
@@ -124,8 +125,11 @@ namespace OpenSim
124 Util.InitThreadPool(stpMinThreads, stpMaxThreads); 125 Util.InitThreadPool(stpMinThreads, stpMaxThreads);
125 126
126 m_log.Info("[OPENSIM MAIN]: Using async_call_method " + Util.FireAndForgetMethod); 127 m_log.Info("[OPENSIM MAIN]: Using async_call_method " + Util.FireAndForgetMethod);
128
129 m_log.InfoFormat("[OPENSIM MAIN] Running GC in {0} mode", GCSettings.IsServerGC ? "server":"workstation");
127 } 130 }
128 131
132#if (_MONO)
129 private static Mono.Unix.UnixSignal[] signals; 133 private static Mono.Unix.UnixSignal[] signals;
130 134
131 135
@@ -140,6 +144,7 @@ namespace OpenSim
140 MainConsole.Instance.RunCommand("shutdown"); 144 MainConsole.Instance.RunCommand("shutdown");
141 } 145 }
142 }); 146 });
147#endif
143 148
144 /// <summary> 149 /// <summary>
145 /// Performs initialisation of the scene, such as loading configuration from disk. 150 /// Performs initialisation of the scene, such as loading configuration from disk.
@@ -150,6 +155,7 @@ namespace OpenSim
150 m_log.Info("========================= STARTING OPENSIM ========================="); 155 m_log.Info("========================= STARTING OPENSIM =========================");
151 m_log.Info("===================================================================="); 156 m_log.Info("====================================================================");
152 157
158#if (_MONO)
153 if(!Util.IsWindows()) 159 if(!Util.IsWindows())
154 { 160 {
155 try 161 try
@@ -168,6 +174,7 @@ namespace OpenSim
168 m_log.Debug("Exception was: ", e); 174 m_log.Debug("Exception was: ", e);
169 } 175 }
170 } 176 }
177#endif
171 //m_log.InfoFormat("[OPENSIM MAIN]: GC Is Server GC: {0}", GCSettings.IsServerGC.ToString()); 178 //m_log.InfoFormat("[OPENSIM MAIN]: GC Is Server GC: {0}", GCSettings.IsServerGC.ToString());
172 // http://msdn.microsoft.com/en-us/library/bb384202.aspx 179 // http://msdn.microsoft.com/en-us/library/bb384202.aspx
173 //GCSettings.LatencyMode = GCLatencyMode.Batch; 180 //GCSettings.LatencyMode = GCLatencyMode.Batch;