*) Bugfix for UNRESOLVED_PATTERN in threadpool configuration

See: http://www.yacy-forum.de/viewtopic.php?p=25377#25377

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2533 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 18 years ago
parent 92e986bb91
commit ecbce206b7

@ -174,7 +174,7 @@ Changes take effect immediately</td>
<td class="small" align="left">#[name]#</td> <td class="small" align="left">#[name]#</td>
<td class="small" align="right"><input name="#[name]#_maxActive" type="text" size="8" maxlength="8" value="#[maxActive]#"></td> <td class="small" align="right"><input name="#[name]#_maxActive" type="text" size="8" maxlength="8" value="#[maxActive]#"></td>
<td class="small" align="right"><input name="#[name]#_maxIdle" type="text" size="8" maxlength="8" value="#[maxIdle]#"></td> <td class="small" align="right"><input name="#[name]#_maxIdle" type="text" size="8" maxlength="8" value="#[maxIdle]#"></td>
<td class="small" align="right"><input name="#[name]#_minIdle" type="text" size="8" maxlength="8" value="#[minIdle]#"></td> <td class="small" align="right"><input name="#[name]#_minIdle" type="text" size="8" maxlength="8" value="#[minIdle]#" #(minIdleConfigurable)#disabled="disabled"::#(/minIdleConfigurable)#></td>
<td class="small" align="right">#[numActive]#</td> <td class="small" align="right">#[numActive]#</td>
<td class="small" align="right">#[numIdle]#</td> <td class="small" align="right">#[numIdle]#</td>
<td class="small" align="left"></td> <td class="small" align="left"></td>

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

Loading…
Cancel
Save