I did a php bin/magento deploy:mode:set production
on magento 2 snappy 4000 vps, it's taking about 3h and still not done.
Is it normal?
4 GB RAM 2 Cores CPU 165 GB Disk Space 2 TB Bandwidth
Aren't those specs enough for magento?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI did a php bin/magento deploy:mode:set production
on magento 2 snappy 4000 vps, it's taking about 3h and still not done.
Is it normal?
4 GB RAM 2 Cores CPU 165 GB Disk Space 2 TB Bandwidth
Aren't those specs enough for magento?
No that is not normal.
Normally process takes minutes.
Try with no memory limit and show errors.
php -d display_errors=1 -d memory_limit=-1 bin/magento deploy:mode:set production
Your spec is reasonable. I would recommend 4 cores and around 10GB RAM for Magento. But ultimately will depend on the concurrent users your site is going to get. That's fine for around 5 - 10 concurrent users.
Disk space is fine. Bandwidth is fine.
By Default while setting the production mode the code will get compiled which may increase the time. try to skip compillation while setting production mode and compile afterward.
php bin/magento deploy:mode:set production --skip-compilation
which will skip the compilation and once the application is set to production compile.
which may resolve your issue.