diff options
author | Justin Clarke Casey | 2008-06-14 17:47:25 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-06-14 17:47:25 +0000 |
commit | 4af62865122121069638ed51f3c799a265800a4c (patch) | |
tree | 8422400ae1b3ec7480098c63b250f6feb3736154 /OpenSim/Framework/Statistics | |
parent | * Enables maptile display in grid mode for simulators that are not on the sam... (diff) | |
download | opensim-SC_OLD-4af62865122121069638ed51f3c799a265800a4c.zip opensim-SC_OLD-4af62865122121069638ed51f3c799a265800a4c.tar.gz opensim-SC_OLD-4af62865122121069638ed51f3c799a265800a4c.tar.bz2 opensim-SC_OLD-4af62865122121069638ed51f3c799a265800a4c.tar.xz |
* Start recording asset request failures
* This includes problems such as connection failures and timeouts. It does not include 'asset not found' replies from the asset service.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Statistics/SimExtraStatsCollector.cs | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs index 6c67c9e..968ed3f 100644 --- a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs +++ b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs | |||
@@ -46,6 +46,7 @@ namespace OpenSim.Framework.Statistics | |||
46 | private long textureCacheMemoryUsage; | 46 | private long textureCacheMemoryUsage; |
47 | private long blockedMissingTextureRequests; | 47 | private long blockedMissingTextureRequests; |
48 | 48 | ||
49 | private long assetServiceRequestFailures; | ||
49 | private long inventoryServiceRetrievalFailures; | 50 | private long inventoryServiceRetrievalFailures; |
50 | 51 | ||
51 | /// <summary> | 52 | /// <summary> |
@@ -72,6 +73,13 @@ namespace OpenSim.Framework.Statistics | |||
72 | public long BlockedMissingTextureRequests { get { return blockedMissingTextureRequests; } } | 73 | public long BlockedMissingTextureRequests { get { return blockedMissingTextureRequests; } } |
73 | 74 | ||
74 | /// <summary> | 75 | /// <summary> |
76 | /// Record the number of times that an asset request has failed. Failures are effectively exceptions, such as | ||
77 | /// request timeouts. If an asset service replies that a particular asset cannot be found, this is not counted | ||
78 | /// as a failure | ||
79 | /// </summary> | ||
80 | public long AssetServiceRequestFailures { get { return assetServiceRequestFailures; } } | ||
81 | |||
82 | /// <summary> | ||
75 | /// Number of known failures to retrieve avatar inventory from the inventory service. This does not | 83 | /// Number of known failures to retrieve avatar inventory from the inventory service. This does not |
76 | /// cover situations where the inventory service accepts the request but never returns any data, since | 84 | /// cover situations where the inventory service accepts the request but never returns any data, since |
77 | /// we do not yet timeout this situation. | 85 | /// we do not yet timeout this situation. |
@@ -122,6 +130,11 @@ namespace OpenSim.Framework.Statistics | |||
122 | blockedMissingTextureRequests++; | 130 | blockedMissingTextureRequests++; |
123 | } | 131 | } |
124 | 132 | ||
133 | public void AddAssetServiceRequestFailure() | ||
134 | { | ||
135 | assetServiceRequestFailures++; | ||
136 | } | ||
137 | |||
125 | public void AddInventoryServiceRetrievalFailure() | 138 | public void AddInventoryServiceRetrievalFailure() |
126 | { | 139 | { |
127 | inventoryServiceRetrievalFailures++; | 140 | inventoryServiceRetrievalFailures++; |
@@ -163,18 +176,14 @@ namespace OpenSim.Framework.Statistics | |||
163 | sb.Append(Environment.NewLine); | 176 | sb.Append(Environment.NewLine); |
164 | sb.Append( | 177 | sb.Append( |
165 | string.Format( | 178 | string.Format( |
166 | @"Asset cache contains {0,6} assets using {1,10} K" + Environment.NewLine, | 179 | @"Asset cache contains {0,6} non-texture assets using {1,10} K |
167 | AssetsInCache, Math.Round(AssetCacheMemoryUsage / 1024.0))); | 180 | Texture cache contains {2,6} texture assets using {3,10} K |
168 | 181 | Blocked client requests for missing textures: {4} | |
169 | sb.Append(Environment.NewLine); | 182 | Asset service request failures: {5}"+ Environment.NewLine, |
170 | sb.Append("TEXTURE STATISTICS"); | 183 | AssetsInCache, Math.Round(AssetCacheMemoryUsage / 1024.0), |
171 | sb.Append(Environment.NewLine); | 184 | TexturesInCache, Math.Round(TextureCacheMemoryUsage / 1024.0), |
172 | sb.Append( | 185 | BlockedMissingTextureRequests, |
173 | string.Format( | 186 | AssetServiceRequestFailures)); |
174 | @"Texture cache contains {0,6} textures using {1,10} K | ||
175 | Blocked requests for missing textures: {2}" + Environment.NewLine, | ||
176 | TexturesInCache, Math.Round(TextureCacheMemoryUsage / 1024.0), | ||
177 | BlockedMissingTextureRequests)); | ||
178 | 187 | ||
179 | sb.Append(Environment.NewLine); | 188 | sb.Append(Environment.NewLine); |
180 | sb.Append("CONNECTION STATISTICS"); | 189 | sb.Append("CONNECTION STATISTICS"); |