diff options
author | Justin Clark-Casey (justincc) | 2013-06-17 22:55:25 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-06-17 22:55:25 +0100 |
commit | 2c9bb0f9738534732e147c090fac43f3373af1bb (patch) | |
tree | 792cc365ae02e7d33cb0a6c8e534458a2aa7bf68 /OpenSim/Framework | |
parent | Make general server stats available on the robust console as well as the simu... (diff) | |
download | opensim-SC_OLD-2c9bb0f9738534732e147c090fac43f3373af1bb.zip opensim-SC_OLD-2c9bb0f9738534732e147c090fac43f3373af1bb.tar.gz opensim-SC_OLD-2c9bb0f9738534732e147c090fac43f3373af1bb.tar.bz2 opensim-SC_OLD-2c9bb0f9738534732e147c090fac43f3373af1bb.tar.xz |
Add server stats for available builtin threadpool and iocp workers
Diffstat (limited to 'OpenSim/Framework')
-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(',')); |