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 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 linux驱动,linux应用,多线程
  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法