502 and 504 Error differences

Source: Internet
Author: User
Tags fpm

Practice is the real truth.

This error has been encountered in the last two times.

For the first time, MySQL takes too long to execute, and at the same time 504, other applications with the same machine deployment appear 502. Reason, the MySQL process CPU utilization is too high, memory consumption, the system does not have time to process the PHP process, resulting in PHP process processing timeout, directly hung off. When other apps are accessed, the link is not on FPM, so 502 appears.

The second time, the data set is slow, multiple refreshes several times, appears 502. Check carefully to find that the PHP process is dead. Restart PHP, link up.

Summarize:

502:nginx Link not on FPM

504:FPM long time no return results, direct timeout


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.