mirror of https://github.com/apache/jclouds.git
JCLOUDS-459: Limit maximum user threads
Previously jclouds could use an unlimited number of threads on its user ExecutorService. While this ExecutorService will go away when we complete deasyncafication, we should prevent jclouds from misbehaving until that time.
This commit is contained in:
parent
266d7f847b
commit
c035bcd6b2
|
@ -66,7 +66,8 @@ public abstract class BaseApiMetadata implements ApiMetadata {
|
||||||
props.setProperty(PROPERTY_SO_TIMEOUT, 60000 + "");
|
props.setProperty(PROPERTY_SO_TIMEOUT, 60000 + "");
|
||||||
props.setProperty(PROPERTY_CONNECTION_TIMEOUT, 60000 + "");
|
props.setProperty(PROPERTY_CONNECTION_TIMEOUT, 60000 + "");
|
||||||
props.setProperty(PROPERTY_IO_WORKER_THREADS, 20 + "");
|
props.setProperty(PROPERTY_IO_WORKER_THREADS, 20 + "");
|
||||||
props.setProperty(PROPERTY_USER_THREADS, 0 + "");
|
// Successfully tested 50 user threads with BlobStore.clearContainer.
|
||||||
|
props.setProperty(PROPERTY_USER_THREADS, 50 + "");
|
||||||
props.setProperty(PROPERTY_SCHEDULER_THREADS, 10 + "");
|
props.setProperty(PROPERTY_SCHEDULER_THREADS, 10 + "");
|
||||||
props.setProperty(PROPERTY_MAX_CONNECTION_REUSE, 75 + "");
|
props.setProperty(PROPERTY_MAX_CONNECTION_REUSE, 75 + "");
|
||||||
props.setProperty(PROPERTY_MAX_SESSION_FAILURES, 2 + "");
|
props.setProperty(PROPERTY_MAX_SESSION_FAILURES, 2 + "");
|
||||||
|
|
Loading…
Reference in New Issue