Commit 79a75392 authored by guus's avatar guus

Capping queue size (OF-77)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11379 b35dd754-fafc-0310-a699-88a17e54d16e
parent 277f3f99
...@@ -55,7 +55,7 @@ class IOExecutor { ...@@ -55,7 +55,7 @@ class IOExecutor {
// Read poolsize parameter... // Read poolsize parameter...
int poolSize = JiveGlobals.getIntProperty("tiscali.pool.size", 15); int poolSize = JiveGlobals.getIntProperty("tiscali.pool.size", 15);
// Create queue for executor // Create queue for executor
executeQueue = new LinkedBlockingQueue<Runnable>(); executeQueue = new LinkedBlockingQueue<Runnable>(10000);
// Create executor // Create executor
executeMsgPool = executeMsgPool =
new ThreadPoolExecutor(poolSize, poolSize, 60, TimeUnit.SECONDS, executeQueue); new ThreadPoolExecutor(poolSize, poolSize, 60, TimeUnit.SECONDS, executeQueue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment