cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.2 high inode count

Magento 2.2 high inode count

Hi,

I have magento 2.2.6, the inode count for my host is over 300,000.

I tracked the problem and found the .cache of the catalog/product is the cause, check below:

148552 ./cache
1877 ./a
1509 ./w
872 ./z
241 ./f
232 ./b
88 ./r
77 ./p
31 ./d
30 ./t
24 ./1
22 .
21 ./s
18 ./g
9 ./u
9 ./placeholder
9 ./m
9 ./h
8 ./j
6 ./2
4 ./v
4 ./7

Can any one help me solve this problem, is this tha same bug found in magento 2.1 or what. i am using default magento image compression using imagik.

2 REPLIES 2

Re: Magento 2.2 high inode count

Hello @mohammed_dahwi ,

I think you are using Shared Hosting, if your are using a shared hosting then changed it to Cloud Hosting where there is no limit on inode usage.

I know it is lot more costly, but Magento does require lot of resources.

You can also check the same questions and reply 

https://community.magento.com/t5/Magento-2-x-Technical-Issues/Magento-2-1-6-Inode-Usage-problem/m-p/...

If this helps you then please give us kudos and select it as solution.

Re: Magento 2.2 high inode count

Hello @mohammed_dahwi 

Usually an indicator that you need a more capable hosting provider.

The major places that Magento creates files during operation are in the var/ folder and your product image cache.

If you've never checked before, the following areas can accumulate a phenomenal amount of detritus. Using an ftp client, check the following areas in your var/ folder:

  1. Check that you don't have a bazillion sessions files in var/session, remove anything older than current date

  2. Check that there aren't an excessive amount of files in var/report, you might want to find out why Magento is generating them and fix the issue. Delete them all.

  3. Logging will generate over time several huge files in var/log, delete them and then look at the new ones to find out what errors are being generated.

  4. Imports and other stuff can cause temporary files to accumulate in var/tmp, delete them. Also check in var/import for old imports that can be deleted

Stored database backups are kept in var/backup, using the admin backend System > Tools > Backups:

  1. Download the latest database backups to a local workstation and delete all backups.

Magento uses a lot of caching to store information, the biggest will be the Image Cache if you have a large catalog, and it will contain cached images from the beginning of time, and lots of useless ones if you've deleted product over time. Using the Admin backend, go into System > Cache Management:

  1. Clear the Magento Cache.

  2. Flush Catalog Images Cache.

For more please follow this:

https://stackoverflow.com/questions/25353118/reduce-inodes-count-on-magento-website

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