I have something that I don't quite understand with the library and debugging it - having run xdebug profiling on the CLI gearman task it states that it runs for a total of 5.5 seconds as a result of xdebug's cachegrind file. What I have is a code that contacts external web service, fetches data and retrieves relevant datasets from our database. In total, it safely can process about 300 odd records. I set the timeout on gearman worker to 20 seconds and tries to increase the limit to 400 but alas it is not enough time to process this many records. My conundrum is this - why is xdebug states it only takes 5.5 seconds to run the code that gets 300 records, while gearman times out if it's increased to 400, meaning it takes MORE than 20 seconds to do that? Sometimes it times out on 320, or 310, I just picked 400 as marginal example guaranteed to timeout. Has anyone got any suggestions?
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率

已采纳
Gearman和xdebug
收起
- 写回答
- 好问题 0 提建议
- 关注问题
微信扫一扫
点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
1条回答 默认 最新
- 关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
drpjdfj618393 2017-02-07 00:00关注Having set up XHPROF we can now clearly see, without the need for xDebug, precise details of what is being called and for how long it is running.
本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏举报微信扫一扫
点击复制链接分享
编辑预览轻敲空格完成输入- 显示为
- 卡片
- 标题
- 链接
评论按下Enter换行,Ctrl+Enter发表内容
编辑
预览

轻敲空格完成输入
- 显示为
- 卡片
- 标题
- 链接
报告相同问题?
提交
- 2013-09-27 22:54回答 1 已采纳 Sorry for my vague question it was a silly mistake. I upgraded my gearman package by using pecl
- 2015-10-17 10:01回答 1 已采纳 You can use the go bindings for gearman. Check it out here: https://github.com/mikespook/gearman-
- 2013-12-27 23:01回答 1 已采纳 You're supposed to run the worker script from the console (or under something like GearmanManager
- 2021-04-13 06:00学利斯的博客 KCacheGrind (下称KCG)是一个性能数据分析工具,由德国工程师Josef Weidendorfer,Josef.Weidendorfer@gmx.de开发并维护,具详细信息可见:https://kcachegrind.github.io/html/Home.html通过PHP-Xdebug扩展,我们在...
- 2014-10-28 19:03回答 1 已采纳 How do you spawn your workers? In order to use Yii your workers need to be instantiated with such
- 2015-04-26 14:16回答 1 已采纳 The problem was not from gearman or the lib but the Symfony Bundle I was using. (cf https://github
- 2015-04-27 12:34回答 1 已采纳 You can use Beanstalkd, as you can customize the priority of jobs and the TTR time-to-resolve, def
- 2018-04-12 09:451. **性能优化基础**:书中首先会介绍性能优化的基本理念,包括理解CPU、内存、网络等资源对PHP应用的影响,以及如何通过性能分析工具(如Xdebug, New Relic)来定位性能瓶颈。 2. **PHP语言特性与性能**:探讨PHP...
- 2013-02-03 17:18回答 1 已采纳 That is due to implementation. In PHP errors do not raise exceptions. If you want your program to
- 2011-10-05 07:38回答 1 已采纳 There are a couple of ways that you can go about this. The easiest way is to send the "kill" job
- 2011-11-12 13:17回答 1 已采纳 Figured it out! pretty stupid actually, forgot to call parent::__construct(); in my constructor...
- 2021-03-23 11:12小马新志的博客 PHP环境要求PHP 5.5.9POSIX extensionProcess Control extensionpecl/gearman or Net_Gearman使用GearmanManager的理由运行Gearman的Worker是项比较让人讨厌的任务。千篇一律的代码...GearmanManager的目标是让运行...
- 2018-03-28 06:05weixin_33928137的博客 通过PHP-Xdebug扩展,我们在debug时可以生成代码运行时的数据,而通过KCG对这些运行数据进行分析,可以很直观地通过各种方式,如图形,列表等,看到每行代码每个函数所耗费的时间和资源,为代码性能优化提供依据。...
- 2021-12-17 14:58沈恩华的博客 以便在工作中迅速的查找所需,本文主要和大家分享常用的100个PHP 类库资源和技巧,希望能帮助到大家。 PHP相关的有参考价值的社区,博客,网站,文章,书籍,视频等资源 PHP网站(PHP Websites) PHP The Right Way 一个...
- 2024-04-21 16:19九黎AJ的博客 大概内容:安装php拓展有时候需要指定版本,以下为网络收集的
- 2021-03-23 11:43Wang Eric的博客 #re: MAC brew install PHP5.32016-06-11 23:36聂文龙bash-3.2# brew install php53-apcu php53-gearman ...
- 2024-03-08 04:20sayyy的博客 目录 前言 remi yum源 remi yum源 ...php81-php-pecl-ev Name : php81-php-pecl-event Name : php81-php-pecl-excimer Name : php81-php-pecl-fann Name : php81-php-pecl-gearman Name : ...
- 2022-06-15 08:05hshshshshs1的博客 laradock配置多php版本
- 2016-02-27 05:21weixin_34289454的博客 项目地址:https://github.com/brianlmoon/GearmanManager PHP环境要求 PHP 5.5.9 POSIX extension Process Control extension pecl/gearman or Net_Gearman 使用GearmanManager的理由 运行Gearman的Worker是项...
- 2021-04-25 03:13weixin_39994438的博客 -prefix=/usr/local/php-7.1.17 --disable-debug --enable-shmop --with-gd --with-jpeg-dir=/usr/lib64 --with-png-dir=/usr/lib64--with-libxml-dir=/usr/lib64 --with-zlib-dir=/usr/lib64 --with-m...
- 没有解决我的问题, 去提问
联系我们(工作时间:8:30-22:00)
400-660-0108kefu@csdn.net在线客服
- 京ICP备19004658号
- 经营性网站备案信息
公安备案号11010502030143
- 营业执照
- 北京互联网违法和不良信息举报中心
- 家长监护
- 中国互联网举报中心
- 网络110报警服务
- Chrome商店下载
- 账号管理规范
- 版权与免责声明
- 版权申诉
- 出版物许可证
- ©1999-2025北京创新乐知网络技术有限公司