blob: af7c41cdcbcddc00a9bac278741d000e236337bd [file] [log] [blame]
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Apache Dubbo – 6 - Transport</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/</link><description>Recent content in 6 - Transport on Apache Dubbo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/index.xml" rel="self" type="application/rss+xml"/><item><title>Docs3-V2: 6-1 - Server Connection Failed</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/1/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/1/</guid><description>
&lt;p>Network communication layer, failed to connect to the service provider service&lt;/p>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;p>The service provider&amp;rsquo;s network is abnormally disconnected or blocked by firewalls and third-party tools, and cannot provide external services.&lt;/p>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;ol>
&lt;li>If it is a rest connection, check whether the requested server configuration is correct.&lt;/li>
&lt;li>Check whether the network communication is normal, you can use some simple cmd commands to detect, such as &lt;code>ping&lt;/code> and so on.&lt;/li>
&lt;/ol>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-2 - Client Timeout</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/2/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/2/</guid><description>
&lt;p>Timeout occurs when the caller fails to obtain the corresponding response within the specified time after the request is sent.&lt;/p>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;ol>
&lt;li>The server is really slow in processing and cannot return the result within the specified time. The caller will automatically return a timeout exception response to end the call.&lt;/li>
&lt;li>If the server responds quickly, but when the client load is high and the load pressure is high, it will time out due to problems such as the client request not being sent out or the response stuck in the TCP Buffer. Because the client receives the data sent by the server or requests the data from the server, it will be queued at the system level. If the system load is relatively high, the time spent in the kernel state will increase, causing the client to time out when it gets the value. .&lt;/li>
&lt;li>Usually the business processing is too slow, and it can be executed on the service provider machine: &lt;code>jstack [PID] &amp;gt; jstack.log&lt;/code> to analyze which method calls the threads are stuck on, which is the reason for the slowness. If performance tuning is not an option, increase the timeout threshold.&lt;/li>
&lt;/ol>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;ol>
&lt;li>There may be GC on both sides. Check the GC logs of the server and client. A GC that takes a long time will cause a timeout. The occurrence of a timeout probably means that the resource (CPU, memory, or network) of the caller or server has a bottleneck. It is necessary to check whether the problem is on the server or the caller to rule out suspicions such as GC jitter.&lt;/li>
&lt;li>Check the network quality of the server, such as the retransmission rate to rule out network suspicions.&lt;/li>
&lt;li>With the help of link tracking analysis services (such as Ali&amp;rsquo;s &lt;a href="https://help.aliyun.com/document_detail/63796.html">ARMS&lt;/a>, the open source [OpenTracing](&lt;a href="https://github.com/opentracing/">https://github.com/opentracing/&lt;/a> opentracing-java)
System implementation &lt;a href="https://github.com/openzipkin/zipkin">Zipkin&lt;/a>, &lt;a href="https://github.com/apache/skywalking">SkyWalking&lt;/a> etc.) to analyze the time-consuming situation of each point.&lt;/li>
&lt;/ol>
&lt;h2 id="acknowledgments">Acknowledgments&lt;/h2>
&lt;p>The FAQ page of this error code refers to &lt;a href="https://github.com/StabilityMan/StabilityGuide/blob/master/docs/diagnosis/plugin/rpc/%E7%B3%BB%E7%BB%9F%E7%A8%B3%E5%AE%9A%E6%80%A7%E2%80%94%E2%80%94Dubbo%E5%B8%B8%E8%A7%81%E9%94%99%E8%AF%AF%E5%8F%8A%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95.md">&amp;ldquo;Dubbo Common Errors and Solutions&amp;rdquo;&lt;/a>.&lt;/p>
&lt;p>Articles cited are compiled under license &lt;a href="http://creativecommons.org/licenses/by/4.0/">CC-BY-4.0&lt;/a>. Thanks to the original author here.&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-3 - Failed to close network connection</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/3/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/3/</guid><description>
&lt;p>Network connection close failed&lt;/p>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;p>Non-graceful shutdown of the service. At this time, the server may not complete the external output stream.&lt;/p>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>Generally, it is a prompt warning message, which does not affect subsequent program execution.&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-4 - Network communication layer unknown exception</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/4/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/4/</guid><description>
&lt;h2 id="reminder">Reminder&lt;/h2>
&lt;p>The meaning of this error code has been adjusted. If you are looking for information of this error code in Dubbo versions prior than (or equal) 3.1.4 or 3.2.0-beta.3, head to &lt;a href="https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/99/0/">99-0&lt;/a>.&lt;/p>
&lt;p>(This error code is currently absent.)&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-5 - Network disconnection failed</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/5/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/5/</guid><description>
&lt;p>Timeout occurs when the caller fails to obtain the corresponding response within the specified time after the request is sent.&lt;/p>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;p>Client actively disconnects&lt;/p>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>Generally, it is a prompt warning message, which does not affect subsequent program execution.&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-6 - Unsupported message</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/6/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/6/</guid><description>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;p>The returned data is serialized incorrectly, or exceeds the serialization maximum&lt;/p>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>You can use some third-party tools or &lt;code>jstack [PID] &amp;gt; jstack.log&lt;/code> to analyze the stack information and locate it.&lt;/p>
&lt;p>For the specific configuration items and meanings supported by each component, please refer to &lt;a href="https://dubbo.apache.org/en/docs3-v2/java-sdk/reference-manual/config/properties/">Configuration Item Manual&lt;/a>&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-7 - Thread Connection Exceeded Warning</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/7/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/7/</guid><description>
&lt;p>Reminder message when the number of connections exceeds the limit&lt;/p>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;p>A warning reminder that the configuration or the number of connections exceeds the configured number.&lt;/p>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>The default configuration item &lt;code>connect.queue.warning.size=1000&lt;/code> can be adjusted through configuration.&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-8 - Return data decoding failed</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/8/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/8/</guid><description>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;p>Return data format error or decoding failed&lt;/p>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>Through the debug/warn log mode, the specific service class name and the returned message and stack information can be output.&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-9 - There are duplicate serial number IDs</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/9/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/9/</guid><description>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;ol>
&lt;li>An empty object is returned.&lt;/li>
&lt;li>The custom serial number class, &lt;code>org.apache.dubbo.common.serialize.Serialization#getContentTypeId&lt;/code> is duplicated with the built-in system,
At this time, when loading, the first loaded SPI instance shall prevail. Other items will be skipped.&lt;/li>
&lt;/ol>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;ol>
&lt;li>Check the return result.&lt;/li>
&lt;li>The built-in value can refer to the class &lt;code>org.apache.dubbo.common.serialize.Constants&lt;/code>&lt;/li>
&lt;/ol>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-10 - Payload Limit Exceeded Exception</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/10/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/10/</guid><description>
&lt;p>The default &lt;code>payload=8M&lt;/code>, please check the configuration&lt;/p>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>For the specific configuration items and meanings supported by each component, please refer to &lt;a href="https://dubbo.apache.org/en/docs3-v2/java-sdk/reference-manual/config/properties/">Configuration Item Manual&lt;/a>&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-11 - Character set not supported</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/11/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/11/</guid><description>
&lt;p>Default &lt;code>UTF-8&lt;/code> charset&lt;/p>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>The result will end up being processed in the &lt;code>UTF-8&lt;/code> character set.&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-12 - An error occurred when the ZK client was destroyed</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/12/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/12/</guid><description>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;p>The connection between the client and the server has been refused
When the client is being destroyed, the server may be performing elections or other operations, resulting in an exception.&lt;/p>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>The shutdown method can be used to query stack information. Generally do not deal with.&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-13 - Stream closed exception</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/13/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/13/</guid><description>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;p>&lt;code>Stream is closed&lt;/code> or the stream is closed while other threads are reading&lt;/p>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>Generally, the order in which the code closes the streams is reversed.&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-14 - Server response failed</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/14/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/14/</guid><description>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;p>When the server interacts with the client to generate data, the client closes abnormally.&lt;/p>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>The client terminated abnormally or the server crashed.&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-15 - Skip unread stream data</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/15/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/15/</guid><description>
&lt;p>When decoding, if there is unread data in the stream, the unread stream will be skipped&lt;/p>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>When decoding, all the data will be read at one time&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item><item><title>Docs3-V2: 6-16 - An exception occurred during reconnection</title><link>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/16/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/6/16/</guid><description>
&lt;p>Prompt every time a reconnection occurs&lt;/p>
&lt;h2 id="possible-reason">Possible Reason&lt;/h2>
&lt;p>Delayed reconnection caused by network instability.&lt;/p>
&lt;h2 id="troubleshooting-and-resolution-steps">Troubleshooting and resolution steps&lt;/h2>
&lt;p>Check for network packet loss.&lt;/p>
&lt;p style="margin-top: 3rem;"> &lt;/p></description></item></channel></rss>