graphvizphpdotxhprof

what's wrong with graphviz in php-fpm mode?


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:


Solution

  • After reboot my machine.Everything turn to right.

    Mystery.