peter royal wrote:
> On Jul 3, 2006, at 4:31 AM, Trustin Lee wrote:
>> For now, there's a strong 1-to-1 relationship between
>> PooledThreadModel and
>> thus it causes excessive creation of thread pools.  I think at least the
>> PooledThreadModel instances with the same service name should share
>> the same
>> ThreadPoolFilter insstance. What do you think?
>>
>> If you agree with me, there are two choices:
>>
>> * Provide a static factory method for PooledThreadModel instead of
>> constructors.
>> * Retain the constructors, but share the filters using a static map.
>
> Static factory method.
>
> -pete
>
> [EMAIL PROTECTED] - http://fotap.org/~osi
>
>
>
Is there a JIRA issue for this? Brad Harvey created an issue
(https://issues.apache.org/jira/browse/DIRMINA-231) lately which I think
is related to this. If a user uses a new connector for each connect() a
new thread pool will be created for each connection. I recommended him
to reuse a single connector which of course solves the problem. But if
there's anything we could do to prevent users from running into this
problem in the first place we should do it.

-- 
Niklas Therning
www.spamdrain.net

Reply via email to