cancel
Showing results for 
Search instead for 
Did you mean: 

Peak cpu and disk every 1 minute

Peak cpu and disk every 1 minute

Hi, I have been monitoring this problem for a few days and I believe that this increase in cpu and disk usage that occurs every 1 minute is related to PHP7 running the magento crontab.
Is this consumption normal or should I worry?  
I looked for something strange in the logs in <magento dir>/var/log and found nothing  

Follow how crontab is configured  

#~ MAGENTO START  
* * * * * /usr/bin/php7.0 /var/www/html/magento2/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /var/www/html/magento2/var/log/magento.cron.log  
* * * * * /usr/bin/php7.0 /var/www/html/magento2/update/cron.php >> /var/www/html/magento2/var/log/update.cron.log  
* * * * * /usr/bin/php7.0 /var/www/html/magento2/bin/magento setup:cron:run >> /var/www/html/magento2/var/log/setup.cron.log  
#~ MAGENTO END  

cpu.pngdisk.png

3 REPLIES 3

Re: Peak cpu and disk every 1 minute

Hello,

 

It was when caching was disabled so my first call would be to make sure all caches are enabled.

Make sure you're running in production mode (if it's a production server) as when in developer mode a lot of code is generated on the fly.

Also you can check memory_limit in php.ini. If still you will not fix let me knwo.

 

Please Kudos and mark as solution if it will work. Cheers coding Smiley Happy

Manish Mittal
https://www.manishmittal.com/

Re: Peak cpu and disk every 1 minute

Hello, all items have been verified, follow the attached screen

 

memory_limit.pngssh.png

Re: Peak cpu and disk every 1 minute

you have limited I/O from host system, or your disk is very slow.

you need SSD or better hosting.

------------
MagenX - Magento and Server optimization