diff options
author | Justin Clark-Casey (justincc) | 2014-03-18 23:21:07 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-03-18 23:21:07 +0000 |
commit | eed343ed8a23aa6dac0e6fe4aed49a0a3fd1337c (patch) | |
tree | 01a743aafe38c33df123589c5955756c61436f94 | |
parent | Extend locking in BlockingQueue to cover operations that are not guaranteed t... (diff) | |
download | opensim-SC-eed343ed8a23aa6dac0e6fe4aed49a0a3fd1337c.zip opensim-SC-eed343ed8a23aa6dac0e6fe4aed49a0a3fd1337c.tar.gz opensim-SC-eed343ed8a23aa6dac0e6fe4aed49a0a3fd1337c.tar.bz2 opensim-SC-eed343ed8a23aa6dac0e6fe4aed49a0a3fd1337c.tar.xz |
Add httpserver.<port-number>,QueuedPollResponses stat
This shows the number pf poll responses queued for processing.
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | 13 |
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() |