cancel
Showing results for 
Search instead for 
Did you mean: 

magento2 delay command bin magento

magento2 delay command bin magento

Hello,

I have a magento2 installation that has a ~2 delays before processing any requests even from web or command

for example when I issue bin/magento I get repsonse for 2~3 seconds delay

 I removed all the modules and the themes setup:upgrade

compiled

deplyed static files 

removed /var/cache di and generation

but the problem still stays

the other magent2 installations have no problems

 

4 REPLIES 4

Re: magento2 delay command bin magento

Are the other Magento installs on the same server or different servers?

Are you running this command via SSH or another method?

Have you checked your network connection on your server is healthy and you also have a good connection to the server?

--
Problem solved? Click Accept as Solution!

Re: magento2 delay command bin magento

If you run the bin/magento tool, all commands are instanciated during command registration.
This means that, if you run a single command, other commands can slow down yours.
Is there any 3rd party command installed by an extension. Sometimes a constructor argument opens resources. It can be fixed by changing them to a "Proxy".

Re: magento2 delay command bin magento

I removed any third party extensions even by composer or in app/code but still it was about 4 seconds delay

even the whole website and admin panel also had this delay

 

after struggling a lot I had to reinstall and insert all products again

Please provide me instructions to trace this issue in the future to find out where it has such delay

 

Thanks

Re: magento2 delay command bin magento

today I installed a clean magento 2.3.1 installation

it had no issues

I upgraded it using composer update and after the update there is 4~6 sec delay starting the command

./magento itself without any parameter has this issue

 

the following is the list of updates

 

 

Do you want to store credentials for repo.magento.com in /home/selinbeauty/.config/composer/auth.json ? [Yn] y
Updating dependencies (including require-dev)
Package operations: 0 installs, 41 updates, 0 removals
- Updating colinmollenhour/cache-backend-file (v1.4.4 => v1.4.5): Downloading (100%)
- Updating colinmollenhour/php-redis-session-abstract (v1.4.0 => v1.4.1): Downloading (100%)
- Updating symfony/process (v4.1.11 => v4.1.12): Downloading (100%)
- Updating symfony/finder (v4.2.4 => v4.2.8): Downloading (100%)
- Updating symfony/polyfill-ctype (v1.10.0 => v1.11.0): Downloading (100%)
- Updating symfony/filesystem (v4.2.4 => v4.2.8): Downloading (100%)
- Updating symfony/polyfill-mbstring (v1.10.0 => v1.11.0): Downloading (100%)
- Updating symfony/contracts (v1.0.2 => v1.1.0): Downloading (100%)
- Updating symfony/console (v4.1.11 => v4.1.12): Downloading (100%)
- Updating composer/spdx-licenses (1.5.0 => 1.5.1): Downloading (100%)
- Updating composer/semver (1.4.2 => 1.5.0): Downloading (100%)
- Updating composer/composer (1.8.4 => 1.8.5): Downloading (100%)
- Updating elasticsearch/elasticsearch (v6.1.0 => v6.7.0): Downloading (100%)
- Updating paragonie/sodium_compat (v1.9.0 => v1.9.4): Downloading (100%)
- Updating zendframework/zend-soap (2.7.0 => 2.8.0): Downloading (100%)
- Updating symfony/options-resolver (v4.2.4 => v4.2.8): Downloading (100%)
- Updating symfony/polyfill-php70 (v1.10.0 => v1.11.0): Downloading (100%)
- Updating symfony/polyfill-php72 (v1.10.0 => v1.11.0): Downloading (100%)
- Updating symfony/stopwatch (v4.2.4 => v4.2.8): Downloading (100%)
- Updating myclabs/deep-copy (1.8.1 => 1.9.1): Downloading (100%)
- Updating symfony/event-dispatcher (v4.1.11 => v4.1.12): Downloading (100%)
- Updating symfony/yaml (v3.4.23 => v3.4.27): Downloading (100%)
- Updating consolidation/robo (1.4.6 => 1.4.9): Downloading (100%)
- Updating mikey179/vfsstream (v1.6.5 => v1.6.6): Downloading (100%)
- Updating symfony/css-selector (v4.2.4 => v4.2.8): Downloading (100%)
- Updating theseer/tokenizer (1.1.0 => 1.1.2): Downloading (100%)
- Updating phpdocumentor/reflection-docblock (4.3.0 => 4.3.1): Downloading (100%)
- Updating doctrine/collections (v1.5.0 => v1.6.1): Downloading (100%)
- Updating doctrine/instantiator (1.1.0 => 1.2.0): Downloading (100%)
- Updating doctrine/annotations (v1.6.0 => v1.6.1): Downloading (100%)
- Updating jms/serializer (1.13.0 => 1.14.0): Downloading (100%)
- Updating symfony/dom-crawler (v4.2.4 => v4.2.8): Downloading (100%)
- Updating symfony/browser-kit (v4.2.4 => v4.2.8): Downloading (100%)
- Updating symfony/config (v4.2.4 => v4.2.8): Downloading (100%)
- Updating symfony/dependency-injection (v4.2.4 => v4.2.8): Downloading (100%)
- Updating myclabs/php-enum (1.6.6 => 1.7.1): Downloading (100%)
- Updating symfony/inflector (v4.2.4 => v4.2.8): Downloading (100%)
- Updating symfony/property-access (v4.2.4 => v4.2.8): Downloading (100%)
- Updating symfony/polyfill-util (v1.10.0 => v1.11.0): Downloading (100%)
- Updating symfony/polyfill-php56 (v1.10.0 => v1.11.0): Downloading (100%)
- Updating symfony/http-foundation (v4.2.4 => v4.2.8): Downloading (100%)
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files