aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Monitoring
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-06-17 22:55:25 +0100
committerJustin Clark-Casey (justincc)2013-06-17 22:55:25 +0100
commit2c9bb0f9738534732e147c090fac43f3373af1bb (patch)
tree792cc365ae02e7d33cb0a6c8e534458a2aa7bf68 /OpenSim/Framework/Monitoring
parentMake general server stats available on the robust console as well as the simu... (diff)
downloadopensim-SC-2c9bb0f9738534732e147c090fac43f3373af1bb.zip
opensim-SC-2c9bb0f9738534732e147c090fac43f3373af1bb.tar.gz
opensim-SC-2c9bb0f9738534732e147c090fac43f3373af1bb.tar.bz2
opensim-SC-2c9bb0f9738534732e147c090fac43f3373af1bb.tar.xz
Add server stats for available builtin threadpool and iocp workers
Diffstat (limited to 'OpenSim/Framework/Monitoring')
-rw-r--r--OpenSim/Framework/Monitoring/ServerStatsCollector.cs16
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(','));