diff options
author | Justin Clark-Casey (justincc) | 2013-07-23 00:31:57 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-07-23 00:35:41 +0100 |
commit | 9fb9da1b6c86e10b229706fe06f2875c8a63a52f (patch) | |
tree | 374c2d3e45045ab447c287a7f02ca0eea32ce2dc /OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |
parent | Add clientstack.OutgoingUDPSendsCount stat to show number of outbound UDP pac... (diff) | |
download | opensim-SC-9fb9da1b6c86e10b229706fe06f2875c8a63a52f.zip opensim-SC-9fb9da1b6c86e10b229706fe06f2875c8a63a52f.tar.gz opensim-SC-9fb9da1b6c86e10b229706fe06f2875c8a63a52f.tar.bz2 opensim-SC-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.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 13 |
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( |