|
|
|
@ -210,7 +210,7 @@ public class PerformanceQueues_p {
|
|
|
|
|
// storing the new values into configfile
|
|
|
|
|
switchboard.setConfig("crawler.MaxActiveThreads",maxActive);
|
|
|
|
|
switchboard.setConfig("crawler.MaxIdleThreads",maxIdle);
|
|
|
|
|
switchboard.setConfig("crawler.MinIdleThreads",minIdle);
|
|
|
|
|
//switchboard.setConfig("crawler.MinIdleThreads",minIdle);
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* configuring the http pool
|
|
|
|
@ -293,7 +293,8 @@ public class PerformanceQueues_p {
|
|
|
|
|
prop.put("pool_0_name","Crawler Pool");
|
|
|
|
|
prop.put("pool_0_maxActive",crawlerPoolConfig.maxActive);
|
|
|
|
|
prop.put("pool_0_maxIdle",crawlerPoolConfig.maxIdle);
|
|
|
|
|
//prop.put("pool_0_minIdle",crawlerPoolConfig.minIdle);
|
|
|
|
|
prop.put("pool_0_minIdleConfigurable",0);
|
|
|
|
|
prop.put("pool_0_minIdle","0");
|
|
|
|
|
prop.put("pool_0_numActive",switchboard.cacheLoader.getNumActiveWorker());
|
|
|
|
|
prop.put("pool_0_numIdle",switchboard.cacheLoader.getNumIdleWorker());
|
|
|
|
|
|
|
|
|
@ -302,6 +303,7 @@ public class PerformanceQueues_p {
|
|
|
|
|
prop.put("pool_1_name","httpd Session Pool");
|
|
|
|
|
prop.put("pool_1_maxActive",httpdPoolConfig.maxActive);
|
|
|
|
|
prop.put("pool_1_maxIdle",httpdPoolConfig.maxIdle);
|
|
|
|
|
prop.put("pool_1_minIdleConfigurable",1);
|
|
|
|
|
prop.put("pool_1_minIdle",httpdPoolConfig.minIdle);
|
|
|
|
|
prop.put("pool_1_numActive",((serverCore)httpd).getActiveSessionCount());
|
|
|
|
|
prop.put("pool_1_numIdle",((serverCore)httpd).getIdleSessionCount());
|
|
|
|
@ -310,6 +312,7 @@ public class PerformanceQueues_p {
|
|
|
|
|
prop.put("pool_2_name","CrawlStacker Session Pool");
|
|
|
|
|
prop.put("pool_2_maxActive",stackerPoolConfig.maxActive);
|
|
|
|
|
prop.put("pool_2_maxIdle",stackerPoolConfig.maxIdle);
|
|
|
|
|
prop.put("pool_2_minIdleConfigurable",1);
|
|
|
|
|
prop.put("pool_2_minIdle",stackerPoolConfig.minIdle);
|
|
|
|
|
prop.put("pool_2_numActive",switchboard.sbStackCrawlThread.getNumActiveWorker());
|
|
|
|
|
prop.put("pool_2_numIdle",switchboard.sbStackCrawlThread.getNumIdleWorker());
|
|
|
|
|