Open kenshaw opened 11 years ago
What do you mean by saying that append.php $xhprof_data_obj->save($xhprof_data);
never returns? Are you expecting the method call to return some value, or are you saying that the function call timeouts?
Page generation times out (ie, function call timeouts ..).
Would you mind sharing some information about your server resources? Namely: CPU, RAM.
PHP server is on an i5 with 16 gigs of ram. MySQL server is on an i7 with 64 gigs of ram.
Have you tried debugging data.php
save
method to see where exactly does the script hangs?
Not yet, but can do so later.
Sounds good. Please share your findings here. Even if this is specific to your server, being able to detect it and throw exception will help everyone who will face the same issue.
@kenshaw - What were your findings?
I think I am having the same problem. When the append.php and prepend.php are included in php.ini my sites dont open.(They keep loading). XProf is working becuase the records are inserted in the database. PHP 5.3.10, apache 2.2.21 on ubuntu 12.04 32bits, running Symfony 2 app
Having the same problem here. Records are being inserted in database but the page keep loading...
php 5.4.16, debian 7, symfony2
Maybe the problem is triggered by the finish_request
call in append.php?
It seems it takes a lot of time if your PHP script generates thousand of callees. I tried it on a Symfony 2 based application too and the page keeps loading because insertions of callees in the database is taking lot of time. Maybe the insertion strategy should be changed, like bulk inserting for example.
In my fork https://github.com/staabm/xhprof.io I added some performance enhancements which speedup the persistance of the profilling data a lot... If you like you can give it a try...
I am going to try it asap :-)
When using xhprof.io behind apache2 (on Debian stable) and PHP 5.3.3-7, append.php, the
$xhprof_data_obj->save($xhprof_data);
call never returns.MySQL database is up and capturing data (rows are being created in the tables).
For reference, this is with a bare / basic Symfony2 codebase.