You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2023/05/29 11:33:00 UTC

[jira] [Commented] (CAMEL-19398) camel-core: type converter performs slowly due to exception-based flow control

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

Otavio Rodolfo Piske commented on CAMEL-19398:
----------------------------------------------

Comparing the throughput logs: 

This is what is can process without the CBR:


{code:java}
2023-05-15 12:30:22,975 [INFO ] Remaining: 97.65825% (50288782 of 2147483646) - 2097194864 messages to finish
2023-05-15 12:30:22,975 [INFO ] Current rate: 816588.600000 exchanges/sec

{code}


This is what it is processing w/ the CBR when consuming data of different types: 

{code:java}

2023-05-29 07:12:11,830 [INFO ] Remaining: 99.86858% (2822283 of 2147483646) - 2144661363 messages to finish
2023-05-29 07:12:11,830 [INFO ] Current rate: 49401.500000 exchanges/sec
{code}




> camel-core: type converter performs slowly due to exception-based flow control
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-19398
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19398
>             Project: Camel
>          Issue Type: Task
>          Components: camel-core
>            Reporter: Otavio Rodolfo Piske
>            Assignee: Otavio Rodolfo Piske
>            Priority: Major
>         Attachments: profile-cbr-text-2023-05-29-4.0.0-SNAPSHOT-2023-05-29-070154.html
>
>
> It looks like, when consuming data of different types, our type converters perform extremely slowly. For instance, in a test sending data of different types (Strings, Integers, Beans, etc) in a machine that easily routes 800k exchanges per sec, with a CBR, it decreases to as much as 49k exchanges/sec. 
> Analyzing the frame graphs for this (attached) we can see that there is a significant amount of time spent dealing with handling exceptions. 
> Camel's ability to use the processing power available in the machine seems to be severely affected by this: 
> {noformat}
> 39132464047      instructions                     #    0.80  insn per cycle
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)