Code Monkey home page Code Monkey logo

Comments (6)

chaz6chez avatar chaz6chez commented on August 16, 2024
  1. 使用workerman官方文档的busy排查方案,上传一下busy相关的信息
  2. 上传一下该队列的配置信息,包括QOS、timerInterval等参数

from webman-rqueue.

hhrensheng avatar hhrensheng commented on August 16, 2024

image
strace -ttp 18881
image
lsof -nPp 18881
image

代码配置
image

from webman-rqueue.

hhrensheng avatar hhrensheng commented on August 16, 2024

redis 的connection是正常的,延迟队列也是用的这个配置是没有问题的

from webman-rqueue.

chaz6chez avatar chaz6chez commented on August 16, 2024

你的队列看起来很正常,没问题;
poll timeout是正常的;
我进行测试后,没有复现你的问题,是否能给一个稳定的测试样例?

尝试使用status -d观察是否长时间busy

from webman-rqueue.

hhrensheng avatar hhrensheng commented on August 16, 2024

status -d 刚开始是busy 然后就正常了。如果不加-d 就是busy

from webman-rqueue.

chaz6chez avatar chaz6chez commented on August 16, 2024

status是定时器捕获状态,假设在workman事件刚好发生阻塞事件(php大多数io都是阻塞的,如PDO),那么就会显示busy;
-d是轮询查询,所以能观察的更仔细;
刚开始busy,我认为是redis创建连接等阻塞操作造成的,当连接成功创建后,消费者的timer就正常进行消费了,如你的timer handler中存在阻塞,那么这个时候进行status查询,也将会是busy,直到handler执行完,workerman的event就将接管业务。

from webman-rqueue.

Related Issues (10)

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.