cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT! extreme disk quota increase

SOLVED

URGENT! extreme disk quota increase

Hi at the moment our disk quota of our hosting server is increasing rapidly and wee are way over our quota. I'm not sure what is causing this issue. We didnt add any files lately, but somehow each week `0gb of disk space is filled by Magento. How can we decrease this?

 These are some large files and folders at the moment:

17G .

7.5G ./var

6.9G ./pub

5.9G ./pub/media/catalog

5.9G ./pub/media

5.6G ./var/po_image_optimization_original_images/pub

5.6G ./var/po_image_optimization_original_images

1.3G ./var/page_cache

995M ./pub/static

749M ./pub/static/frontend

555M ./vendor

336M ./vendor/magento

280M ./var/view_preprocessed/pub

280M ./var/view_preprocessed 268M ./var/cache

215M ./bridge2cart 156M ./pub/static/_cache

114M ./vendor/magento/magento2-base

101M ./vendor/mpdf/mpdf

101M ./vendor/mpdf

 

Really need some help

1 ACCEPTED SOLUTION

Accepted Solutions

Re: URGENT! extreme disk quota increase

Hi @Jojobaa 

 

In a Magento website the following directories contain temporary or generated files you can clear periodically.

 

  1. var/page_cache: Cached pages from the full page cache mechanism. This directory is empty if you use a third-party HTTP accelerator such as Varnish.
  2. var/cache: All cacheable objects except the page cache. This directory is empty if you use a third-party cache storage such as Redis.
  3. var/composer_home: Home directory for Setup Wizard artifacts. Do not touch this directory unless you are an experienced developer familiar with the Magento plug-in system.
  4. generated/code: Contains generated code
  5. generated/metadata: Contains the compiled dependency injection configuration for all modules.
  6. var/view_preprocessed: Contains minified templates and compiled LESS (meaning LESS, CSS, and HTML).

 

after this you need to run following commands.

 

sudo php bin/magento setup:upgrade
sudo php bin/magento setup:di:compile
sudo php bin/magento setup:static-content:deploy -f
sudo php bin/magento cache:clean
sudo php bin/magento cache:flush
sudo chmod -R 777 var/ pub/ generated/

I hope it will help you.

 

Thanks

--

If answer is helpful, Please give 'Kudos' and accept 'Answer as Solution'

View solution in original post

3 REPLIES 3

Re: URGENT! extreme disk quota increase

Hi @Jojobaa 

 

In a Magento website the following directories contain temporary or generated files you can clear periodically.

 

  1. var/page_cache: Cached pages from the full page cache mechanism. This directory is empty if you use a third-party HTTP accelerator such as Varnish.
  2. var/cache: All cacheable objects except the page cache. This directory is empty if you use a third-party cache storage such as Redis.
  3. var/composer_home: Home directory for Setup Wizard artifacts. Do not touch this directory unless you are an experienced developer familiar with the Magento plug-in system.
  4. generated/code: Contains generated code
  5. generated/metadata: Contains the compiled dependency injection configuration for all modules.
  6. var/view_preprocessed: Contains minified templates and compiled LESS (meaning LESS, CSS, and HTML).

 

after this you need to run following commands.

 

sudo php bin/magento setup:upgrade
sudo php bin/magento setup:di:compile
sudo php bin/magento setup:static-content:deploy -f
sudo php bin/magento cache:clean
sudo php bin/magento cache:flush
sudo chmod -R 777 var/ pub/ generated/

I hope it will help you.

 

Thanks

--

If answer is helpful, Please give 'Kudos' and accept 'Answer as Solution'

Re: URGENT! extreme disk quota increase

Thanks, but the main problem was with the server host. There was a large server cache file extending to a 29gb file that was stuck somewhere on the server. So problem was with the hosting. Problem solved.

Re: URGENT! extreme disk quota increase

hi, I have the same problem. Disc quota increasing without any files added.

can you give me please some more details on how you solver the problem?

I am talking with support, but they just tell me to delete files.

I see that media files are duplicated up to 26 times each, in different cache folders!