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

在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
    duaiwo9093 2013-12-27 03:34
    已采纳

    After reboot my machine.Everything turn to right.

    Mystery.

    点赞 评论

相关推荐