duanchen9594 2013-12-26 16:54
浏览 84
已采纳

在php-fpm模式下graphviz出了什么问题?

I try to config a program use xhprof.

When I use php-cli mode or php's built in webServer, the callgraph generate image works well.

But When I use nginx+php-fpm, the dot exec at xhprof_generate_image_by_dot blocks forever.

Then I install the pear Image_Graphviz.Write a simple case like this:

require_once  'Image/GraphViz.php';
$img = new Image_GraphViz();
$img->addNode(
    'Node1',
    array(
        'URL'   => 'http://link1',
        'label' => 'This is a label',
        'shape' => 'box'
    )
);

$img->image('png');

php's built in webServer can generate png files ok,but php-fpm block at dot exec forever.

So, can anybody help me? What's wrong with this? Here is some relevant machine information:

  • The OS: OSX
  • The graphviz version:2.34.0
  • The App: nginx1.2.8+php-fpm+php5.4.21+xhprof(the latest version from github)
  • 写回答

1条回答 默认 最新

  • duaiwo9093 2013-12-27 03:34
    关注

    After reboot my machine.Everything turn to right.

    Mystery.

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

报告相同问题?

悬赏问题

  • ¥15 MATLAB代码补全插值
  • ¥15 Typegoose 中如何使用 arrayFilters 筛选并更新深度嵌套的子文档数组信息
  • ¥15 前后端分离的学习疑问?
  • ¥15 stata实证代码答疑
  • ¥50 husky+jaco2实现在gazebo与rviz中联合仿真
  • ¥15 dpabi预处理报错:Error using y_ExtractROISignal (line 251)
  • ¥15 在虚拟机中配置flume,无法将slave1节点的文件采集到master节点中
  • ¥15 husky+kinova jaco2 仿真
  • ¥15 zigbee终端设备入网失败
  • ¥15 金融监管系统怎么对7+4机构进行监管的