[
https://issues.apache.org/jira/browse/CAMEL-26474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-26474 started by Adriano Machado.
-----------------------------------------------
> camel-management - StatisticCounter: do not update the counter with 0
> ---------------------------------------------------------------------
>
> Key: CAMEL-26474
> URL: https://issues.apache.org/jira/browse/CAMEL-26474
> Project: Camel
> Issue Type: Sub-task
> Reporter: Adriano Machado
> Assignee: Adriano Machado
> Priority: Major
> Fix For: 4.24.0
>
>
> Follow\-up of CAMEL\-26393 under CAMEL\-25132.
> {{StatisticCounter.updateValue}} calls {{LongAdder.add}} even with 0, which
> still does a compare and set on a shared cell and changes nothing. Most nodes
> of a fast route complete within a millisecond, so {{totalProcessingTime}} is
> updated with 0 for processor, route and context counters on almost every node.
> Measured with the default statistics level on a 10 node route, JDK 21 Linux
> arm64 with 9 CPUs, 3 rounds: about 1.38M to 1.84M exchanges per second at 8
> threads, and about 910k to 1.06M at 4 threads. Single threaded throughput
> does not change. A shared clock read per node was also tried, and it added
> nothing measurable.
> _Claude Code on behalf of Adriano Machado \(@ammachado\)_
> _This was generated by an AI agent and may contain inaccuracies. Please
> verify before relying on it._
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)