aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs
diff options
context:
space:
mode:
authorUbitUmarov2014-10-13 11:38:51 +0100
committerUbitUmarov2014-10-13 11:38:51 +0100
commit8558e97a44048e2d15c58e6d994c317d58154642 (patch)
treec70355a51683a345a6c878099c451bff45d9a84d /OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs
parent move AnimationSet and AvatarSkeleton to OpenSimExtras (diff)
downloadopensim-SC_OLD-8558e97a44048e2d15c58e6d994c317d58154642.zip
opensim-SC_OLD-8558e97a44048e2d15c58e6d994c317d58154642.tar.gz
opensim-SC_OLD-8558e97a44048e2d15c58e6d994c317d58154642.tar.bz2
opensim-SC_OLD-8558e97a44048e2d15c58e6d994c317d58154642.tar.xz
tune poll smartThreadpool use and give it a name
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs
index 4058229..51a1136 100644
--- a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs
+++ b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs
@@ -57,24 +57,27 @@ namespace OpenSim.Framework.Servers.HttpServer
57 private bool m_running = true; 57 private bool m_running = true;
58 private int slowCount = 0; 58 private int slowCount = 0;
59 59
60 private SmartThreadPool m_threadPool = new SmartThreadPool(20000, 12, 2); 60 private SmartThreadPool m_threadPool;
61 61
62 public PollServiceRequestManager(BaseHttpServer pSrv, uint pWorkerThreadCount, int pTimeout) 62 public PollServiceRequestManager(BaseHttpServer pSrv, uint pWorkerThreadCount, int pTimeout)
63 { 63 {
64 m_server = pSrv; 64 m_server = pSrv;
65 m_WorkerThreadCount = pWorkerThreadCount; 65 m_WorkerThreadCount = pWorkerThreadCount;
66 m_workerThreads = new Thread[m_WorkerThreadCount]; 66 m_workerThreads = new Thread[m_WorkerThreadCount];
67 m_threadPool = new SmartThreadPool(30000, 15, 1);
68 m_threadPool.Name = "PoolService";
67 } 69 }
68 70
69 public void Start() 71 public void Start()
70 { 72 {
73 m_threadPool.Start();
71 //startup worker threads 74 //startup worker threads
72 for (uint i = 0; i < m_WorkerThreadCount; i++) 75 for (uint i = 0; i < m_WorkerThreadCount; i++)
73 { 76 {
74 m_workerThreads[i] 77 m_workerThreads[i]
75 = Watchdog.StartThread( 78 = Watchdog.StartThread(
76 PoolWorkerJob, 79 PoolWorkerJob,
77 string.Format("PollServiceWorkerThread{0}:{1}", i, m_server.Port), 80 string.Format("PollServiceWorkerThread {0}:{1}", i, m_server.Port),
78 ThreadPriority.Normal, 81 ThreadPriority.Normal,
79 false, 82 false,
80 false, 83 false,