0

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?

  • enable verbose mode, check logs and strace proccess. probably issue with magento, not server. – MagenX Jun 6 '19 at 17:02
  • @MagenX wow! that'd be strange! Is it even possible? – Lynob Jun 6 '19 at 17:04
1

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.

| improve this answer | |
  • Outside the scope of the question, do you recommend any hosting provider? I explained my situation here reddit.com/r/Magento/comments/bxicoe/… – Lynob Jun 6 '19 at 15:59
  • Out of Linode, digital ocean, azure, AWS - I've only used AWS. But I've not used their support. In terms of performance AWS no issues with performance. Easy to upscale. I've heard positive things about Linode in terms of performance. But honestly I don't know on a personal level. – Dominic Xigen Jun 6 '19 at 16:54
  • Will they offer support if I pay them on a case by case basis you think or do I need to subscribe to their business plan from day one? Btw if you know another option not included in my list please let me know. – Lynob Jun 6 '19 at 17:02
  • 1
    We've been most impressed with OVH – Dominic Xigen Jun 6 '19 at 19:56
  • 1
    Magento is fast. Not used support yet. We've got a couple of good sys admin guys plus I know a bit myself so generally we solve server problems ourselves. Plus we use services like uptime robot to monitor. Uptime robot can integrate with slack. You can get slack of phone. So you know on your phone within minutes if your site has problems. Which is good for business. Bad for stress levels. – Dominic Xigen Jun 6 '19 at 20:13
1

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.