msqar
msqar

Reputation: 3020

Receiver Threading Profile HTTP configuration in Mule

I've made a simple flow just to test the http:connector thing.

<http:connector name="httpConnector" doc:name="HTTP\HTTPS">
    <receiver-threading-profile maxThreadsActive="100" maxBufferSize="1000"/>
</http:connector>

And if i add the maxBufferSize, the flow won't work. If i remove it, the flow works in terms of when i want to call HTTP get from the browser, it keeps loading and loading.

Wanted to know why this is happening. What's the default maxBufferSize?? in the documentation isn't included. None of those values.

How can i configure this receiver propertly?

Upvotes: 1

Views: 1315

Answers (1)

genjosanzo
genjosanzo

Reputation: 3264

With this configuration in place nothing will be processed until the buffer is not filled.

If this is not what you want you should set the maxThreadsIdle at the same value.

Behind the scenes Mule uses the ThreadPoolExecutor, so read the javadoc for more informations

Upvotes: 1

Related Questions