Giter Site home page Giter Site logo

Comments (11)

sinbad01234 avatar sinbad01234 commented on May 18, 2024

image

from skyapm-php-sdk.

sinbad01234 avatar sinbad01234 commented on May 18, 2024

image

from skyapm-php-sdk.

heyanlong avatar heyanlong commented on May 18, 2024

from skyapm-php-sdk.

sinbad01234 avatar sinbad01234 commented on May 18, 2024

是同一个用户

from skyapm-php-sdk.

heyanlong avatar heyanlong commented on May 18, 2024

请执行如下操作,并反馈
ps aux | grep php
ps aux | grep report_client
ls -l /tmp/sky_agent*

from skyapm-php-sdk.

sinbad01234 avatar sinbad01234 commented on May 18, 2024

image

from skyapm-php-sdk.

heyanlong avatar heyanlong commented on May 18, 2024

明显不在一个用户运行,使用www-data 运行 report_client 就好了

from skyapm-php-sdk.

sinbad01234 avatar sinbad01234 commented on May 18, 2024

能上传日志了,但是有个问题。nginx报错,有些接口返回正常,个别接口请求返回 502. 不是因为超时,nginx日志如下:
2019/07/20 11:36:23 [error] 7#7: *856 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /place/search HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000"

杀掉report_client进程,接口请求都是正常的。
其中一个返回502的接口是请求elastic search,search索引。用的是官方的es-php sdk。

from skyapm-php-sdk.

sinbad01234 avatar sinbad01234 commented on May 18, 2024

我修改了php-fpm.conf也不起作用。修改如下:
pm = dynamic
pm.max_children = 200
pm.start_servers = 30
pm.min_spare_servers = 15
pm.max_spare_servers = 45
pm.max_requests = 10000
rlimit_files = 51200
request_terminate_timeout = 150

request_slowlog_timeout = 8s
slowlog = /data/www-slow.log

from skyapm-php-sdk.

heyanlong avatar heyanlong commented on May 18, 2024

from skyapm-php-sdk.

sinbad01234 avatar sinbad01234 commented on May 18, 2024

对,都是特定接口,目前就两个接口这样,一个是请求阿里云oss上传图片的,一个是请求elastic search的搜索。
杀掉report_client进程,接口请求都是正常的。

from skyapm-php-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.