Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums OroCommerce Running console commands gets killed by out of memory

This topic contains 7 replies, has 2 voices, and was last updated by  Mauro Chojrin 1 day, 9 hours ago.

  • Creator
    Topic
  • #37803

    Mauro Chojrin
    Participant

    Hi:

    I’ve installed oroCommerce v1.6 following the instructions on the documentation. I’m hosting on DigitalOcean, created a fresh new droplet with CentOS 7, 2 cpus and 2 GB ram.

    After I installed the application and done some configuration, every time I try to run the console command I get some error related to the failure to allocate more memory (PHP has a limit of 1GB configured).

    The only way I found it to work is to temporarily stop the supervisord service…

    How much memory should I have in order to run the application without these problems?

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #37807
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Here are the system requirements for the production environment
    https://oroinc.com/b2b-ecommerce/doc/1.6/system-requirements

    But dev environment is more memory consuming because it tracks all the files and collects a lot of information during each operation, you should have about 5GB of ram allocated for PHP for some CLI operations. As usual, the local environment used for development and this is not an issue.

    #37811

    Mauro Chojrin
    Participant

    Hi Andrey:

    Thanks for your reply. The environment I’m running is production (I need to do some basic CLI operations such as clear the cache) and I’m finding these errors…

    I’ll probably try to scale my configuration to 4GB of RAM and see what happens…

    #37814
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    This looks like a bug,
    according to system requirements, the minimum required memory_limit should be 512M.
    I will check it locally to confirm on oroCommerce v1.6.

    Please share exact commands that are leading to out of memory error in the production environment, this will help.

    #37816

    Mauro Chojrin
    Participant

    Well, I have upgraded to a 4GB machine and things seem to be working better (I can certainly issue a console cache:clear –env=prod without turning every other service off.

    From what I can see using the command htop, at the peak of memory usage there’s 2.5 GB used (php, consumers, nginx, supervisord and mysql running).

    Just realized I had altered php.ini to allow a memory_limit of 2G, just turned it back to 1G as suggested in documentation and the total memory consumption is pretty much the same (during cache clearing) but it works.

    Also the system seems to be running fine…

    I’ll try lowering the memory_limit to 512M and see what happens

    #37817

    Mauro Chojrin
    Participant

    Just changed it to 512M and, without any console command running I get a stable 1.5G of used ram.

    I run the command cache:clear –env=prod and got this error:

    And the memory run just a little above 2GB (2.11 or something)

    #37830
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Thanks for the report, Mauro.

    This looks like a bug, cache:clear command should not consume more than 512M of RAM in the production environment.
    We will investigate it.

    #37870

    Mauro Chojrin
    Participant

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No
sso for www.magecore.comsso for oroinc.comsso for oroinc.desso for oroinc.fr