diff options
author | Justin Clark-Casey (justincc) | 2012-03-16 03:26:47 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-16 03:26:47 +0000 |
commit | 6e8f80f1ab933bbd00b892fa6d01f93f62a1bbbd (patch) | |
tree | 7ea110ed31774d875574b474ddf0859979574b02 /OpenSim/Framework/Servers/BaseOpenSimServer.cs | |
parent | Add process working memory to "show stats" memory statistics. (diff) | |
download | opensim-SC_OLD-6e8f80f1ab933bbd00b892fa6d01f93f62a1bbbd.zip opensim-SC_OLD-6e8f80f1ab933bbd00b892fa6d01f93f62a1bbbd.tar.gz opensim-SC_OLD-6e8f80f1ab933bbd00b892fa6d01f93f62a1bbbd.tar.bz2 opensim-SC_OLD-6e8f80f1ab933bbd00b892fa6d01f93f62a1bbbd.tar.xz |
Improve threadpool reporting to "show threads" console command (also gets printed out periodically)
Diffstat (limited to 'OpenSim/Framework/Servers/BaseOpenSimServer.cs')
-rw-r--r-- | OpenSim/Framework/Servers/BaseOpenSimServer.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index d5c2515..5c74ac9 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs | |||
@@ -272,12 +272,8 @@ namespace OpenSim.Framework.Servers | |||
272 | sb.Append(Environment.NewLine); | 272 | sb.Append(Environment.NewLine); |
273 | } | 273 | } |
274 | 274 | ||
275 | int workers = 0, ports = 0, maxWorkers = 0, maxPorts = 0; | 275 | sb.Append("\n*** Main threadpool (excluding script engine)***\n"); |
276 | ThreadPool.GetAvailableThreads(out workers, out ports); | 276 | sb.Append(Util.GetThreadPoolReport()); |
277 | ThreadPool.GetMaxThreads(out maxWorkers, out maxPorts); | ||
278 | |||
279 | sb.Append(Environment.NewLine + "*** ThreadPool threads ***" + Environment.NewLine); | ||
280 | sb.Append("workers: " + (maxWorkers - workers) + " (" + maxWorkers + "); ports: " + (maxPorts - ports) + " (" + maxPorts + ")" + Environment.NewLine); | ||
281 | 277 | ||
282 | return sb.ToString(); | 278 | return sb.ToString(); |
283 | } | 279 | } |