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 孟德尔随机化结果不一致
  • ¥20 求用stm32f103c6t6在lcd1206上显示Door is open和password:
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法