aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-07-23 00:31:57 +0100
committerJustin Clark-Casey (justincc)2013-07-23 00:35:41 +0100
commit9fb9da1b6c86e10b229706fe06f2875c8a63a52f (patch)
tree374c2d3e45045ab447c287a7f02ca0eea32ce2dc
parentAdd clientstack.OutgoingUDPSendsCount stat to show number of outbound UDP pac... (diff)
downloadopensim-SC_OLD-9fb9da1b6c86e10b229706fe06f2875c8a63a52f.zip
opensim-SC_OLD-9fb9da1b6c86e10b229706fe06f2875c8a63a52f.tar.gz
opensim-SC_OLD-9fb9da1b6c86e10b229706fe06f2875c8a63a52f.tar.bz2
opensim-SC_OLD-9fb9da1b6c86e10b229706fe06f2875c8a63a52f.tar.xz
Add clientstack.InboxPacketsCount stat. This records the number of packets waiting to be processed at the second stage (after initial UDP processing)
If this consistently increases then this is a problem since it means the simulator is receiving more requests than it can distribute to other parts of the code.
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index cc4de10..0e9f1b7 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -500,6 +500,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP
500 m_scene = (Scene)scene; 500 m_scene = (Scene)scene;
501 m_location = new Location(m_scene.RegionInfo.RegionHandle); 501 m_location = new Location(m_scene.RegionInfo.RegionHandle);
502 502
503 StatsManager.RegisterStat(
504 new Stat(
505 "InboxPacketsCount",
506 "Number of LL protocol packets waiting for the second stage of processing after initial receive.",
507 "Number of LL protocol packets waiting for the second stage of processing after initial receive.",
508 "",
509 "clientstack",
510 scene.Name,
511 StatType.Pull,
512 MeasuresOfInterest.AverageChangeOverTime,
513 stat => stat.Value = packetInbox.Count,
514 StatVerbosity.Debug));
515
503 // XXX: These stats are also pool stats but we register them separately since they are currently not 516 // XXX: These stats are also pool stats but we register them separately since they are currently not
504 // turned on and off by EnablePools()/DisablePools() 517 // turned on and off by EnablePools()/DisablePools()
505 StatsManager.RegisterStat( 518 StatsManager.RegisterStat(