"Production problem Live" Java.net.SocketTimeoutException:Read timed out

Source: Internet
Author: User

Let's talk about the deployment relationships of the corporate infrastructure:


Problem Description:

When the Web cluster calls app cluster, the app complains Java.net.SocketTimeoutException:Read timed out,web this side reported 500.

The error is accidental, in production, a instance on average only a few times a day.


The case of grasping the bag is as follows:

From the log, the Web request app sends the body content "{}".

Web Side Grab Package:


App End Grab Bag:



Conclusion: From the grasp of the case, the Web side does not send the "{}" the body out, and content-length is 2, so that the app side has been waiting for the web side to send the body, resulting in a timeout.


Legacy issues:

1. Check the code sent by the web side to see if there is a problem with multithreading (because the phenomenon is sometimes not), resulting in the body lost.

2. There is a possibility that the web side did not receive the app reply Ark package, so the web side did not send the body, only the head sent past.


OK, here we go, keep looking at the problem, and we'll have new progress tomorrow.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.