diff options
Diffstat (limited to 'OpenSim/Framework/Monitoring/ServerStatsCollector.cs')
-rw-r--r-- | OpenSim/Framework/Monitoring/ServerStatsCollector.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Framework/Monitoring/ServerStatsCollector.cs b/OpenSim/Framework/Monitoring/ServerStatsCollector.cs index 80d0a89..fe74ef7 100644 --- a/OpenSim/Framework/Monitoring/ServerStatsCollector.cs +++ b/OpenSim/Framework/Monitoring/ServerStatsCollector.cs | |||
@@ -157,6 +157,22 @@ namespace OpenSim.Framework.Monitoring | |||
157 | m_log.ErrorFormat("{0} Exception creating 'Process': {1}", LogHeader, e); | 157 | m_log.ErrorFormat("{0} Exception creating 'Process': {1}", LogHeader, e); |
158 | } | 158 | } |
159 | 159 | ||
160 | MakeStat("BuiltinThreadpoolWorkerThreadsAvailable", null, "threads", ContainerProcessor, | ||
161 | s => | ||
162 | { | ||
163 | int workerThreads, iocpThreads; | ||
164 | ThreadPool.GetAvailableThreads(out workerThreads, out iocpThreads); | ||
165 | s.Value = workerThreads; | ||
166 | }); | ||
167 | |||
168 | MakeStat("BuiltinThreadpoolIOCPThreadsAvailable", null, "threads", ContainerProcessor, | ||
169 | s => | ||
170 | { | ||
171 | int workerThreads, iocpThreads; | ||
172 | ThreadPool.GetAvailableThreads(out workerThreads, out iocpThreads); | ||
173 | s.Value = iocpThreads; | ||
174 | }); | ||
175 | |||
160 | try | 176 | try |
161 | { | 177 | { |
162 | List<string> okInterfaceTypes = new List<string>(NetworkInterfaceTypes.Split(',')); | 178 | List<string> okInterfaceTypes = new List<string>(NetworkInterfaceTypes.Split(',')); |