0

我尝试配置一个程序使用 xhprof。

当我使用 php-cli 模式或 php 内置的 webServer 时,调用图生成图像效果很好。

但是当我使用 nginx+php-fpm 时,xhprof_generate_image_by_dot 处的 dot exec 会永远阻塞。

然后我安装梨Image_Graphviz。写一个像这样的简单案例:

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 内置的 webServer 可以生成 png 文件,但是 php-fpm 永远在 dot exec 处阻塞。

那么,有人可以帮助我吗?这有什么问题?以下是一些相关的机器信息:

  • 操作系统:OSX
  • graphviz 版本:2.34.0
  • 应用程序:nginx1.2.8+php-fpm+php5.4.21+xhprof(github最新版本)
4

1 回答 1

0

重新启动我的机器后。一切都向右转。

神秘。

于 2013-12-27T03:34:45.233 回答