About the errors generated by Nginx integrated PHP

Source: Internet
Author: User
Run the Discuz Forum program under the nginx+php architecture. All run in a compiled and installed manner.

However, the browser occasionally appears with the following error:


View Nginx log found error:
[ERROR] 14439#0: *3072 recv () failed (104:connection reset by peer) while reading response ...

The system log also has an error at the same time:
Kernel: [5612713.463986] php-fpm[12410]: segfault at 6f3cc0 IP 00000000006fee94 SP 00007fff41c76d80 error 7 in php-fpm[400 000+75E000]

Kernel: [5611900.052878] php-fpm[11948]: segfault at 0 IP 00007f7810447fc3 SP 00007fff41c76e70 error 4 in memcache.so[7f78 10441000+17000]

This should be a memory address error and appear when memcache.so is called by the system. There is no way to find a solution. I do not know which friend can be very grateful to enlighten me.


Reply to discussion (solution)

This nginx will report 502 error, but is due to fpm, it is possible that your memcache.so file and your PHP version inconsistency caused, it is best to download Memcache source code, and then use PHP fpm phpize to hit the. so file, so there's no problem.

BTW upstairs your knot rate is too that.

I can be sure it's not a version of the problem, and memcache.so is actually built with Phpize compilation. Anyway, thank you for your reply, it is very useful to me. About the knot, I hope to get more help. So I can't immediately paste it. But if there is no other help, I will give you the score.

Open Core Dump if it's out of the core at this point, it's good to do something. GDB can look at where the core is. You can see if this process started with a memcache error or the FPM process ran for some time to report the error.

  • 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.