You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by is...@apache.org on 2011/06/22 12:03:59 UTC
svn commit: r1138372 -
/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/threadpool/ThreadPool.java
Author: isurues
Date: Wed Jun 22 10:03:59 2011
New Revision: 1138372
URL: http://svn.apache.org/viewvc?rev=1138372&view=rev
Log:
Limiting the max thread pool size to 100 as per the thread 'Default ThreadPool Size' in axis2 dev list
Modified:
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/threadpool/ThreadPool.java
Modified: axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/threadpool/ThreadPool.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/threadpool/ThreadPool.java?rev=1138372&r1=1138371&r2=1138372&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/threadpool/ThreadPool.java (original)
+++ axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/threadpool/ThreadPool.java Wed Jun 22 10:03:59 2011
@@ -48,7 +48,8 @@ public class ThreadPool implements Threa
//integers that define the pool size, with the default values set.
private int corePoolSize = 5;
- private int maxPoolSize = Integer.MAX_VALUE;
+ //max pool size is set to 100 to control the maximum number of threads created
+ private int maxPoolSize = 100;
public ThreadPool() {
setExecutor(createDefaultExecutor("Axis2 Task", Thread.NORM_PRIORITY, true));