[ 
https://issues.apache.org/jira/browse/CAMEL-11341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16026155#comment-16026155
 ] 

Claus Ibsen edited comment on CAMEL-11341 at 5/26/17 11:18 AM:
---------------------------------------------------------------

This was reproduced by the camel-example-spring-boot and changing the route to 
use 10 threads and a timer that fires with period=1
{code}
public class SampleCamelRouter extends RouteBuilder {

    @Override
    public void configure() throws Exception {
        from("timer:hello?period={{timer.period}}")
            .to("seda:foo?waitForTaskToComplete=Never");

        from("seda:foo?concurrentConsumers=10")
                .transform(method("myBean", "saySomething"))
                .to("log:out?level=OFF");
    }
{code}


was (Author: davsclaus):
This was reproduced by the camel-example-spring-boot and changing the route to 
use 10 threads
{code}
public class SampleCamelRouter extends RouteBuilder {

    @Override
    public void configure() throws Exception {
        from("timer:hello?period={{timer.period}}")
            .to("seda:foo?waitForTaskToComplete=Never");

        from("seda:foo?concurrentConsumers=10")
                .transform(method("myBean", "saySomething"))
                .to("log:out?level=OFF");
    }
{code}

> Optimize DefaultEndpointUtilizationStatistics
> ---------------------------------------------
>
>                 Key: CAMEL-11341
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11341
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.20.0
>
>         Attachments: Screen Shot 2017-05-26 at 13.03.16.png
>
>
> This registry has a little synchronization point to record hits, we can 
> optimize this.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to