You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2015/04/22 01:33:23 UTC
svn commit: r1675210 -
/hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java
Author: edwardyoon
Date: Tue Apr 21 23:33:23 2015
New Revision: 1675210
URL: http://svn.apache.org/r1675210
Log:
decrease default pool size to 256
Modified:
hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java
Modified: hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java
URL: http://svn.apache.org/viewvc/hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java?rev=1675210&r1=1675209&r2=1675210&view=diff
==============================================================================
--- hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java (original)
+++ hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java Tue Apr 21 23:33:23 2015
@@ -254,7 +254,7 @@ public final class GraphJobRunner<V exte
ThreadPoolExecutor executor = (ThreadPoolExecutor) Executors
.newCachedThreadPool();
- executor.setMaximumPoolSize(conf.getInt(DEFAULT_THREAD_POOL_SIZE, 1024));
+ executor.setMaximumPoolSize(conf.getInt(DEFAULT_THREAD_POOL_SIZE, 256));
executor.setRejectedExecutionHandler(retryHandler);
long loopStartTime = System.currentTimeMillis();
@@ -305,7 +305,7 @@ public final class GraphJobRunner<V exte
ThreadPoolExecutor executor = (ThreadPoolExecutor) Executors
.newCachedThreadPool();
- executor.setMaximumPoolSize(conf.getInt(DEFAULT_THREAD_POOL_SIZE, 1024));
+ executor.setMaximumPoolSize(conf.getInt(DEFAULT_THREAD_POOL_SIZE, 256));
executor.setRejectedExecutionHandler(retryHandler);
for (Vertex<V, E, M> v : vertices.getValues()) {
@@ -426,7 +426,7 @@ public final class GraphJobRunner<V exte
ThreadPoolExecutor executor = (ThreadPoolExecutor) Executors
.newCachedThreadPool();
- executor.setMaximumPoolSize(conf.getInt(DEFAULT_THREAD_POOL_SIZE, 1024));
+ executor.setMaximumPoolSize(conf.getInt(DEFAULT_THREAD_POOL_SIZE, 256));
executor.setRejectedExecutionHandler(retryHandler);
try {