Giter Site home page Giter Site logo

Comments (6)

yunwuxin avatar yunwuxin commented on June 29, 2024 3

生产模式下推荐使用 php think queue:work --daemon

php think queue:listen 主要是测试的时候使用

from think-queue.

yikuo123 avatar yikuo123 commented on June 29, 2024

@Zhwt 请问解决了吗

from think-queue.

Zhwt avatar Zhwt commented on June 29, 2024

@yikuo123 目前我的解决方法是在框架里面加了一个sleep函数, 解决的不完美, 两次执行队列间会间隔3s, 但是解决了在测试环境下导致大量CPU时间处于等io的问题

from think-queue.

hainuo avatar hainuo commented on June 29, 2024

这个只能提升硬件性能,在2核4g的ecs上 两个queue命令可以吃掉70%的cpu,所以只能提升cpu数量或者提升cpu的性能

from think-queue.

hainuo avatar hainuo commented on June 29, 2024

@yunwuxin 原来如此,我也一直奇怪为啥我自己写了一个脚本自动拉取 git 占用的 cpu 没这么高呢

from think-queue.

peter-biu avatar peter-biu commented on June 29, 2024

生产模式下推荐使用 php think queue:work --daemon

php think queue:listen 主要是测试的时候使用

3.0 版本php think queue:work 没有这个--daemon参 ,还有什么办法解决 php think queue:listen 拉高cpu的情况嘛 @yunwuxin

from think-queue.

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.