cancel
Showing results for 
Search instead for 
Did you mean: 

magento setup:di:compile take too long to compile

magento setup:di:compile take too long to compile

hi guys, 

facing slow issue on my dev.

 

sudo -u _www magento setup:di:compile
Password:
Compilation was started.
Interception cache generation... 7/7 [============================] 100% 34 mins 401.2 MiBBMiB
Generated code and dependency injection configuration successfully.

 

Is this normal for my Mac Book Air, with below specs ?

 

Processor 1.8 GHz Intel Core i5 

Memory 4 GB

HD 128GB  and  20GB free space

 

PHP 5.6.14 (cli) (built: Oct 3 2015 14:54:13)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans

 

I allocated PHP 3000M memory.

 

thanks in advance. 

2 REPLIES 2

Re: magento setup:di:compile take too long to compile

I have noticed it 2 months ago and have reported it now on GitHub: https://github.com/magento/magento2/issues/2893

Re: magento setup:di:compile take too long to compile

Thanks Dmitry for the response.

 

since last time I posted this issue I found out that it is not Magento's fault but a clash between php cli and xdebug.

 

Once I disable php xdebug extension I was able to compile in 4 mins on php56 

 

while on php70 I get compile time to 3mins.