diff options
author | Justin Clark-Casey (justincc) | 2014-07-26 01:41:03 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-07-26 01:41:03 +0100 |
commit | 1e3027afb18aa1d6dee3a498458da824fb79e88c (patch) | |
tree | 64144e319ec9628355811a1af9d3135d04e6a8de /OpenSim/Framework/Servers | |
parent | Add undocumented RemoteRequestTimeout seconds parameter to xinventory requests (diff) | |
download | opensim-SC-1e3027afb18aa1d6dee3a498458da824fb79e88c.zip opensim-SC-1e3027afb18aa1d6dee3a498458da824fb79e88c.tar.gz opensim-SC-1e3027afb18aa1d6dee3a498458da824fb79e88c.tar.bz2 opensim-SC-1e3027afb18aa1d6dee3a498458da824fb79e88c.tar.xz |
Temporary stop CAPS service points from being added to stats as this can be a huge number.
A stop gap solution - a better one may be to improve stats display on simulator-side.
Caps information is still accessible via the "show caps stats by user" and "show caps stats by cap" commands
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs b/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs index 72ffb0e..d4a1ec3 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs | |||
@@ -63,18 +63,23 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
63 | m_httpMethod = httpMethod; | 63 | m_httpMethod = httpMethod; |
64 | m_path = path; | 64 | m_path = path; |
65 | 65 | ||
66 | StatsManager.RegisterStat( | 66 | // FIXME: A very temporary measure to stop the simulator stats being overwhelmed with user CAPS info. |
67 | new Stat( | 67 | // Needs to be fixed properly in stats display |
68 | "requests", | 68 | if (!path.StartsWith("/CAPS/")) |
69 | "requests", | 69 | { |
70 | "Number of requests received by this service endpoint", | 70 | StatsManager.RegisterStat( |
71 | "requests", | 71 | new Stat( |
72 | "service", | 72 | "requests", |
73 | string.Format("{0}:{1}", httpMethod, path), | 73 | "requests", |
74 | StatType.Pull, | 74 | "Number of requests received by this service endpoint", |
75 | MeasuresOfInterest.AverageChangeOverTime, | 75 | "requests", |
76 | s => s.Value = RequestsReceived, | 76 | "service", |
77 | StatVerbosity.Debug)); | 77 | string.Format("{0}:{1}", httpMethod, path), |
78 | StatType.Pull, | ||
79 | MeasuresOfInterest.AverageChangeOverTime, | ||
80 | s => s.Value = RequestsReceived, | ||
81 | StatVerbosity.Debug)); | ||
82 | } | ||
78 | } | 83 | } |
79 | 84 | ||
80 | public virtual string Path | 85 | public virtual string Path |