Hi Junior,

Yes. Passthrough worker pool configuration can be found in
EI_home/conf/passthru-http.properties and by default, there are 400 core
threads. Once EI receive the request, worker pool grows to 400 and It will
remains in WAITING state until server shutdown. If you want to reduce the
threads WAITING and your server load is not much, you can reduce
the worker_pool_size_core. so that you can manage WAITING thread on lower
value.

Please note that since the worker_pool_queue_length is -1, It can queue
unlimited message, so thread pool will not grow up to 500 max in any load
and condition.
If you set a positive value for worker_pool_queue_length(Ex:1000), once the
queue is full, then additional threads are creating upto max value(500) and
those threads are staling after 60 sec of idling when the load is low.
Limiting a queue length may lead to cause message rejections once all
threads occupied and queue is full.

worker_pool_size_core=400
worker_pool_size_max=500
worker_thread_keepalive_sec=60
worker_pool_queue_length=-1

Name: PassThroughMessageProcessor-1
State: WAITING on
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@9ae83d3
Total blocked: 0  Total waited: 1

Please refer documentation[1] for passthrough worker pool configuration.

[1] https://docs.wso2.com/display/EI611/Tuning+the+HTTP+Transport

Thanks,
Nuwanw

On Fri, Apr 6, 2018 at 9:37 AM, Shakila Sasikaran <shak...@wso2.com> wrote:

> Hi Junior,
>
> Is this happening when the threads try to do the write operation? Do you
> see any error in the log? If so, could you please share the
> repository/logs/wso2carbon.log with us?
>
> Thanks
>
> On Thu, Apr 5, 2018 at 5:01 PM, Júnior <fjunio...@gmail.com> wrote:
>
>> Hi Shakila,
>>
>> I am using EI 6.1.0
>>
>> Thanks,
>>
>> 2018-04-05 0:45 GMT-03:00 Shakila Sasikaran <shak...@wso2.com>:
>>
>>> Hi Junior,
>>>
>>> Which version are you using? Seems this is similar to
>>> https://wso2.org/jira/browse/ESBJAVA-4392.
>>>
>>> Thanks
>>>
>>> On Thu, Apr 5, 2018 at 2:33 AM, Júnior <fjunio...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am seeing a lot of PassThroughMessageProcessor threads in Waiting
>>>> state.
>>>>
>>>> Is this normal? Is there a way to set then to remove stale threads?
>>>>
>>>> Thanks,
>>>> --
>>>> Francisco Ribeiro
>>>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Shakila Sasikaran
>>> Software Engineer
>>> Mobile :+94 (0) 77 526 6848
>>> shak...@wso2.com
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>>
>>
>>
>>
>> --
>> Francisco Ribeiro
>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>
>
>
>
> --
> Shakila Sasikaran
> Software Engineer
> Mobile :+94 (0) 77 526 6848
> shak...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Wimalasekara
Associate Technical Lead
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to