From 8558e97a44048e2d15c58e6d994c317d58154642 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 13 Oct 2014 11:38:51 +0100 Subject: tune poll smartThreadpool use and give it a name --- OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | 7 +++++-- 1 file 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 private bool m_running = true; private int slowCount = 0; - private SmartThreadPool m_threadPool = new SmartThreadPool(20000, 12, 2); + private SmartThreadPool m_threadPool; public PollServiceRequestManager(BaseHttpServer pSrv, uint pWorkerThreadCount, int pTimeout) { m_server = pSrv; m_WorkerThreadCount = pWorkerThreadCount; m_workerThreads = new Thread[m_WorkerThreadCount]; + m_threadPool = new SmartThreadPool(30000, 15, 1); + m_threadPool.Name = "PoolService"; } public void Start() { + m_threadPool.Start(); //startup worker threads for (uint i = 0; i < m_WorkerThreadCount; i++) { m_workerThreads[i] = Watchdog.StartThread( PoolWorkerJob, - string.Format("PollServiceWorkerThread{0}:{1}", i, m_server.Port), + string.Format("PollServiceWorkerThread {0}:{1}", i, m_server.Port), ThreadPriority.Normal, false, false, -- cgit v1.1