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

Marton Szasz updated MINIFICPP-1226:
------------------------------------
    Fix Version/s: 0.9.0

> Improve C2 heartbeat performance
> --------------------------------
>
>                 Key: MINIFICPP-1226
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1226
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Marton Szasz
>            Assignee: Marton Szasz
>            Priority: Major
>             Fix For: 0.9.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> During a profiling session I noticed that heartbeat serialization took about 
> 30% of the used CPU time in a simple flow, with 1 sec heartbeat interval. 
> This is way too long.
> In C2Agent::serializeMetrics, while constructing the payload, we used 
> C2Payload's move facilities incorrectly resulting in a silent fallback to 
> copy every time. This seems to have caused the high CPU usage. After the 
> submitted change, heartbeat generation was no longer showing up in the my 
> profiler view, so it should be significantly faster.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to