aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Monitoring/BaseStatsCollector.cs9
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs7
2 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Framework/Monitoring/BaseStatsCollector.cs b/OpenSim/Framework/Monitoring/BaseStatsCollector.cs
index e513abd..b5df94b 100644
--- a/OpenSim/Framework/Monitoring/BaseStatsCollector.cs
+++ b/OpenSim/Framework/Monitoring/BaseStatsCollector.cs
@@ -48,12 +48,9 @@ namespace OpenSim.Framework.Monitoring
48 Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0)); 48 Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0));
49 49
50 sb.AppendFormat( 50 sb.AppendFormat(
51 "Last heap allocation rate : {0} MB/s\n", 51 "Heap allocation rate (last/avg): {0}/{1}MB/s\n",
52 Math.Round((MemoryWatchdog.LastHeapAllocationRate * 1000) / 1024.0 / 1024, 3)); 52 Math.Round((MemoryWatchdog.LastHeapAllocationRate * 1000) / 1048576.0, 3),
53 53 Math.Round((MemoryWatchdog.AverageHeapAllocationRate * 1000) / 1048576.0, 3));
54 sb.AppendFormat(
55 "Average heap allocation rate: {0} MB/s\n",
56 Math.Round((MemoryWatchdog.AverageHeapAllocationRate * 1000) / 1024.0 / 1024, 3));
57 54
58 Process myprocess = Process.GetCurrentProcess(); 55 Process myprocess = Process.GetCurrentProcess();
59// if (!myprocess.HasExited) 56// if (!myprocess.HasExited)
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 0522814..fe3b8a0 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -843,7 +843,10 @@ namespace OpenSim.Framework.Servers.HttpServer
843 if (!response.SendChunked && response.ContentLength64 <= 0) 843 if (!response.SendChunked && response.ContentLength64 <= 0)
844 response.ContentLength64 = buffer.LongLength; 844 response.ContentLength64 = buffer.LongLength;
845 845
846 response.OutputStream.Write(buffer, 0, buffer.Length); 846 //response.OutputStream.Write(buffer, 0, buffer.Length);
847 response.RawBufferStart = 0;
848 response.RawBufferLen = buffer.Length;
849 response.RawBuffer = buffer;
847 } 850 }
848 851
849 // Do not include the time taken to actually send the response to the caller in the measurement 852 // Do not include the time taken to actually send the response to the caller in the measurement
@@ -851,7 +854,9 @@ namespace OpenSim.Framework.Servers.HttpServer
851 // server 854 // server
852 requestEndTick = Environment.TickCount; 855 requestEndTick = Environment.TickCount;
853 856
857 buffer = null;
854 response.Send(); 858 response.Send();
859 response.RawBuffer = null;
855 } 860 }
856 catch (SocketException e) 861 catch (SocketException e)
857 { 862 {