[ https://issues.apache.org/jira/browse/CAMEL-6562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13712343#comment-13712343 ]
Torsten Mielke edited comment on CAMEL-6562 at 7/18/13 1:56 PM: ---------------------------------------------------------------- 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} If maxThreads is not set at all on the endpoint uri, the http response is ok: {noformat} DEBUG Received response: HTTP/1.1 - OK (200) - OK for exchangeId: ID-mac-fritz-box-62910-1374155483886-0-10 {noformat} Simply run the test using mvn test. was (Author: tmielke): 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