docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Grunt maximum CPU usage by the container, the portal can not load

Open zespolit-bj opened this issue 1 year ago • 2 comments

Description Soft version in a container: Magento 2.4.6-p2 grunt-cli v1.4.3 grunt v1.5.3

After installing Grunt bin/setup-grunt, when I try to load the store site the CPU usage goes to the maximum. The site cannot load. After running bin/grunt watch --verbose, I get these messages:

image

zespolit-bj avatar Sep 14 '23 23:09 zespolit-bj

How much memory do you have allocated to Docker? Also, how many stores are you trying to compile with grunt?

markshust avatar Sep 22 '23 03:09 markshust

I have 8GB of memory assigned to the docker. I compiled one store.

After restarting the containers, I invoked the grunt clean/exec commands, again there was a load increase on the CPU and it lasted about 5-10min and everything went down to normal levels.

Later I repeated grunt clean/exec again, restarted the containers and such increase no longer occurred.

zespolit-bj avatar Sep 22 '23 07:09 zespolit-bj