You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ken Giusti (Jira)" <ji...@apache.org> on 2021/08/03 21:00:00 UTC

[jira] [Created] (DISPATCH-2222) Avoid cpu-intensive message string-ify of every received AMQP message

Ken Giusti created DISPATCH-2222:
------------------------------------

             Summary: Avoid cpu-intensive message string-ify of every received AMQP message
                 Key: DISPATCH-2222
                 URL: https://issues.apache.org/jira/browse/DISPATCH-2222
             Project: Qpid Dispatch
          Issue Type: Bug
          Components: Router Node
    Affects Versions: 1.17.0
            Reporter: Ken Giusti
            Assignee: Ken Giusti


A call to log_link_message() is made for every received AMQP message.  This function logs a string-ified version of the message at level QD_LOG_TRACE.

 

log_link_message() parses out each message and summarizes it into a string buffer before logging.  This stringify operation is cpu-intensive.  According to flamegraphs it occupies 5% of the compute budget.

 

The string-ify operation should be avoided if the message log level doe not have TRACE enabled.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org