duanhuau567787 2016-06-05 17:44
浏览 71
已采纳

Gearman和xdebug

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?

  • 写回答

1条回答 默认 最新

  • drpjdfj618393 2017-02-07 08: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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建