THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline


Good day, gentelmens!

Pardon me, I don't know french language, so I'll continue my post on english.

I've recently installed Thelia 2 beta 4, and wanted to look into it's sources.
But I faced interesting problem: when I enabled Xdebug and start listening connections in my PhpStorm 7 - Thelia 2 send its response to browser in about 45 to 60 seconds. I have no break-points in my code. And other vhosts (projects) works well with Xdebug at my pc.
With disabled Xdebug, everything seems fine, and I get response time about 5 seconds (on requesting index_dev.php)
On production mode I get about 1 second response time.

So here are screenshots:

Xdebug enabled, phpstorm listening remote debug connections, request index_dev.php:

4df8c4f6ae4d191d80fe7c986e8d9963.png

Xdebug disabled, request index_dev.php:

3c8266922855e886a87e4a6287196e3d.png

Phpstorm config:
PHP: http://gyazo.com/1af651ffdbb6fa48bf0df9506277afcc,
servers: http://gyazo.com/ebafecd2b20bc8debc5bee9d100f9d48
PHP > Debug: http://gyazo.com/87e7ff7261e1a26f7db83c4ba47ffca4
php.ini [xdebug]: http://gyazo.com/5d456cffb89d42b29acbe2567480d4a1

How to reduce such great response time, with enabled Xdebug?
Thanx!

Last edited by k.vladyslav (04-02-2014 09:51:10)

  • manu
  • faï tot petar miladiu

Offline


Hi,

when xdebug is enabled the response time is more important but in my installation not like you...

I compare with my configuration and the only difference is the xdebug debug port : 9000

and this is my xdebug config :

xdebug.var_display_max_depth=10
xdebug.var_display_max_data=-1
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_host="localhost"
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/var/log/xdebug/profiling/"
xdebug.profiler_output_name="cachegrind.out.%t%s"
xdebug.profiler_enable_trigger=1 
xdebug.max_nesting_level=1000

in web/.htaccess, remove the RewriteBase statement, it can slow down your installation in your case.


http://doc.thelia.net/
http://thelia.net/modules
http://raynaud.io
PGP public Key : 0xC6E546A6

Offline


manu wrote:

I compare with my configuration and the only difference is the xdebug debug port : 9000
...
in web/.htaccess, remove the RewriteBase statement, it can slow down your installation in your case.

Ive changed xdegug config section in php.ini, as You suggested, changed port to 9000, and added some params, but still no luck.
Response time vary from 16 sec up to 40 sec (huge deviation, another strange)

[XDebug]
zend_extension="C:\Program Files (x86)\PHP\ext\php_xdebug-2.2.3-5.4-vc9.dll"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.profiler_enable=0
xdebug.idekey=xdebug
xdebug.max_nesting_level=100
xdebug.var_display_max_depth=10
xdebug.var_display_max_data=-1
xdebug.remote_handler="dbgp"

Offline


Here is mine. Everything seems OK (~5 secs for index page).

[xdebug]
xdebug.remote_enable = 1
xdebug.remote_host = localhost
xdebug.remote_port = 9011
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "E:/Dev/wamp/tmp"

You may try to turn Propel logging off. The only way to do that for the moment is to comment line 90 in Thelia.php :

        if ($this->isDebug()) {
            $serviceContainer->setLogger('defaultLogger', \Thelia\Log\Tlog::getInstance());
           // $con->useDebug(true);
        }

Also, be sure to set the process_assets system variable to 0 (the production value) to get descent response times. If this variable is 1, Thelia recompile every request a lot of less CSS files.

Last edited by roadster31 (03-02-2014 23:24:05)


OpenStudio Toulouse

Offline


roadster31 wrote:

Also, be sure to set the process_assets system variable to 0 (the production value) to get descent response times. If this variable is 1, Thelia recompile every request a lot of less CSS files.

Yes, `config`.`process_assets` = 1 does performance hit when Xdebug enabled, on my PC.
I set it to 0, and response time become ~5 sec. At last!
Just for further investigation, my PC specs are: Intel-i7 4500U, SSD Sata III, Win 8

Xdebug enabled:
62042665008649b5caf914f77b15f40e.png

Also, line $con->useDebug(true); at \Thelia\Core\Thelia::initPropel doesn't have any impact on performance.
Many thanx to roadster31!

Last edited by k.vladyslav (04-02-2014 09:53:54)

Offline


Also, line $con->useDebug(true); at \Thelia\Core\Thelia::initPropel doesn't have any impact on performance.

A least a small one, as every Propel request is written in the log file.

Intel-i7 4500U, SSD Sata III, Win 8

Core i5-560M, SSD Sata III, 16 Go RAM, Win 7


OpenStudio Toulouse

Offline


Bonsoir,

Donc avec Thelia 2 vous ne voulez plus de Français.....
Car celui qui ne parle Anglais en France il est un peu dans la ca.....
A +

Offline


C'est pas qu'on ne veut plus les Français, c'est qu'on veut aussi tout ceux qui parlent anglais smile

Donc avec Thelia 2 vous ne voulez plus de Français

Tu n'a pas vu les forums Thelia 2 en Français ?


OpenStudio Toulouse

Offline


Bonsoir Roadster,

Tu as raison ne soyons pas chauvins, oui je viens juste de le voir...
Merci à toi et à toute l'équipe... vous êtes au top.
A bientôt...