aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-03-18 23:21:07 +0000
committerJustin Clark-Casey (justincc)2014-03-18 23:21:07 +0000
commiteed343ed8a23aa6dac0e6fe4aed49a0a3fd1337c (patch)
tree01a743aafe38c33df123589c5955756c61436f94 /OpenSim/Framework/Servers
parentExtend locking in BlockingQueue to cover operations that are not guaranteed t... (diff)
downloadopensim-SC_OLD-eed343ed8a23aa6dac0e6fe4aed49a0a3fd1337c.zip
opensim-SC_OLD-eed343ed8a23aa6dac0e6fe4aed49a0a3fd1337c.tar.gz
opensim-SC_OLD-eed343ed8a23aa6dac0e6fe4aed49a0a3fd1337c.tar.bz2
opensim-SC_OLD-eed343ed8a23aa6dac0e6fe4aed49a0a3fd1337c.tar.xz
Add httpserver.<port-number>,QueuedPollResponses stat
This shows the number pf poll responses queued for processing.
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs
index 456acb0..f1e78ac 100644
--- a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs
+++ b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs
@@ -77,6 +77,19 @@ namespace OpenSim.Framework.Servers.HttpServer
77 PerformResponsesAsync = performResponsesAsync; 77 PerformResponsesAsync = performResponsesAsync;
78 m_WorkerThreadCount = pWorkerThreadCount; 78 m_WorkerThreadCount = pWorkerThreadCount;
79 m_workerThreads = new Thread[m_WorkerThreadCount]; 79 m_workerThreads = new Thread[m_WorkerThreadCount];
80
81 StatsManager.RegisterStat(
82 new Stat(
83 "QueuedPollResponses",
84 "Number of non long-poll responses queued for sending.",
85 "",
86 "",
87 "httpserver",
88 m_server.Port.ToString(),
89 StatType.Pull,
90 MeasuresOfInterest.AverageChangeOverTime,
91 stat => m_requests.Count(),
92 StatVerbosity.Debug));
80 } 93 }
81 94
82 public void Start() 95 public void Start()