You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Torsten Mielke (JIRA)" <ji...@apache.org> on 2013/07/18 15:56:48 UTC

[jira] [Updated] (CAMEL-6562) maxThreads property of restlet component is ignored

     [ https://issues.apache.org/jira/browse/CAMEL-6562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Torsten Mielke updated CAMEL-6562:
----------------------------------

    Attachment: CAMEL-6562.tgz

Attaching unit test that reproduces the problem.
Despite setting maxThreads=20 on the restlet uri in camel-context.xml only 10 concurrent requests are served and it prints out

{noformat}
INFO: Worker service thread pool: 1 core size, 10 largest size, 10 maximum size, 10 current size
INFO: Stop accepting new connections and transactions. Consider increasing the maximum number of threads.
{noformat}

Even worse, when setting maxThreads on the uri, the http rest requests all fail with 

{noformat}
DEBUG Received response: HTTP/1.1 - Not Found (404) - Not Found for exchangeId: ID-mac-fritz-box-65212-1374155642274-0-32
{noformat}

Simply run the test using mvn test. 
                
> maxThreads property of restlet component is ignored
> ---------------------------------------------------
>
>                 Key: CAMEL-6562
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6562
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-restlet
>    Affects Versions: 2.11.1
>            Reporter: Torsten Mielke
>              Labels: restlet
>         Attachments: CAMEL-6562.tgz
>
>
> Starting a Camel route that consumes from restlet as 
> {code:xml}
> <from uri="restlet:http://localhost:8080/test/v1.0/test?maxThreads=20"/>
> {code}
> the maxThreads property is ignored when configuring the restlet endpoint.
> If I push >10 concurrent requests it will result in this warning
> {noformat}
> INFO: Worker service thread pool: 1 core size, 10 largest size, 10 maximum size, 10 current size
> INFO: Stop accepting new connections and transactions. Consider increasing the maximum number of threads.
> {noformat}
> and any more than 10 concurrent requests receive 
> {noformat}
> DEBUG Received response: HTTP/1.1 - Not Found (404) - Not Found for exchangeId: ID-mac-fritz-box-53062-1374152641597-0-28
> {noformat}
> When I debugged through the creation and configuration of the RestletEndpoint the maxThreads property was not set. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira