Increase "PublicationsRetriever.threadsMultiplier" to 10, which in turn, increases performance by 41%.
This commit is contained in:
parent
377b98d677
commit
760e0ef7e2
|
@ -52,7 +52,7 @@ public class PublicationsRetrieverPlugin {
|
||||||
ConnSupportUtils.shouldBlockMost5XXDomains = false;
|
ConnSupportUtils.shouldBlockMost5XXDomains = false;
|
||||||
LoaderAndChecker.setCouldRetryRegex();
|
LoaderAndChecker.setCouldRetryRegex();
|
||||||
|
|
||||||
PublicationsRetriever.threadsMultiplier = 4;
|
PublicationsRetriever.threadsMultiplier = 10;
|
||||||
int workerThreadsCount = (Runtime.getRuntime().availableProcessors() * PublicationsRetriever.threadsMultiplier);
|
int workerThreadsCount = (Runtime.getRuntime().availableProcessors() * PublicationsRetriever.threadsMultiplier);
|
||||||
logger.info("Use " + workerThreadsCount + " worker-threads.");
|
logger.info("Use " + workerThreadsCount + " worker-threads.");
|
||||||
PublicationsRetriever.executor = Executors.newFixedThreadPool(workerThreadsCount);
|
PublicationsRetriever.executor = Executors.newFixedThreadPool(workerThreadsCount);
|
||||||
|
|
Loading…
Reference in New Issue