Sending transport message of size on took ms which is above the warn threshold of ms – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.12-7.13

Briefly, this error occurs when Elasticsearch takes longer than the set threshold to send a transport message. This could be due to network latency, large data size, or insufficient resources. To resolve this, you can increase the warning threshold, optimize your data size by reducing unnecessary fields, or improve your network speed. Additionally, consider scaling up your Elasticsearch cluster resources to handle larger data loads more efficiently.

This guide will help you check for common problems that cause the log ” sending transport message [{}] of size [{}] on [{}] took [{}ms] which is above the warn threshold of [{}ms] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: threshold.

Log Context

Log “sending transport message [{}] of size [{}] on [{}] took [{}ms] which is above the warn threshold of [{}ms]” classname is OutboundHandler.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        private void maybeLogSlowMessage() {
            final long took = threadPool.relativeTimeInMillis() - startTime;
            final long logThreshold = slowLogThresholdMs;
            if (logThreshold > 0 && took > logThreshold) {
                logger.warn("sending transport message [{}] of size [{}] on [{}] took [{}ms] which is above the warn threshold of [{}ms]";
                        messageSupplier; messageSize; channel; took; logThreshold);
            }
        }

        @Override

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?