barbushin / php-console

Handle PHP errors, dump variables, execute PHP code remotely in Google Chrome
https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef
MIT License
1.34k stars 283 forks source link

Very slow performance with Vtiger 6 #65

Closed MichalJanicki closed 10 years ago

MichalJanicki commented 10 years ago

I added php-console to Vtiger CRM 6 as follows (file index.php):


include_once 'include/Webservices/Relation.php';

include_once 'vtlib/Vtiger/Module.php';
include_once 'includes/main/WebUI.php';

require_once '../lib/php-console/src/PhpConsole/__autoload.php';
$handler = PhpConsole\Handler::getInstance();
$handler->start();

$webUI = new Vtiger_WebUI();
$webUI->process(new Vtiger_Request($_REQUEST, $_REQUEST));

The problem is that from that moment Vtiger CRM 6 began to act very slowly. Does anyone have an idea what could be causing this?

barbushin commented 10 years ago

May be it's because you're logging some huge objects? Otherwise you should try use some profiler to detect what part of code work so slowly.

Also may be there is custom session handle in that CRM, so you can try to use custom postponed requests storage. See https://github.com/barbushin/php-console#troubleshooting-with-_session-handler-overridden-in-some-frameworks