a W3C action is eating alot of CPU
-
Hello, my disk monitor is showing a high CPU performance for almost 1 hour
and at that time, the cache folder in wp-content was growing, and now it’s 11 GB
please give me an explanation of what is causing this high performance. is it normal that the cache folder hold 11 Gb?
thank you
-
Hello @tavakal4devs
Thank you for your question and I am happy to help!
Depending on the size of your website, options you are using and if the caching method for each option is set to disk, there is a chance that the cache folder can grow out to be 11GB.
You can safely delete the cache folder (the cache will be re-generated)
If you are using Object Caching and DB Caching and both are set to cache to disk, you should either disable OC and DB caching or use some memory-based caching for this like Memcached or Redis.
I hope this helps!please tell me what action is generating the cache folder?
is it a cron event? and what is it?
@vmarkoHello @tavakal4devs
EVery creation of any cached files mentioned in my previous reply is generating the cache folder.
If caching to disk, the files will be saved to the cache folder.
Thanks!Hello again
i checked the settings, the OC and DB cache are not enabled.
and again, the cache folder re-generation proccess is causing hight CPU performance for almost 1 hour and at the same time is holding that 11 GBhere is the settings
https://paste.pics/c779ddec63cb4b244408f4ee651ef0a0
https://paste.pics/fe63727ed427b93af32980c95ce5f754
https://paste.pics/6755cb1d0ed3e959d7bc546829db3062
https://paste.pics/2d088bda146857285174e238c7f37a4e
https://paste.pics/9d056c4520e0f1f2f4db517235ef5f89
https://paste.pics/2c5d4ceef8f6a4e45e9047e79d4107f5
https://paste.pics/e50a4b619c0a9fec5b2c96d4ed61ce47
Hello @tavakal4devs
Can you please share the content of the wp-content/cache/ folder?
Also, is cache Preload enabled in Performance>Page Cache?
Thanks!contain 4 folders, the largest is page_enhanced, it hold all the 11gb
under this folder there is the domain name and some files inside it
https://paste.pics/dca50abcc0434c8260c3099e99682aa9> Also, is cache Preload enabled in Performance>Page Cache?
No its not
@vmarkoHello @tavakal4devs
Thank you for your feedback.
Can you please manually delete the page_enhanced folder?
Thanks!Hello again, i delete the page_enhanced, but it was regenerated again with the same space (11 gb)
why it’s caching all the posts? why not only cache the post that was visited
ps: cache preload is not enabled
@vmarko now the space is 14 gb, something strange. From 11gb to 14gb in two days
Hello @tavakal4devs
Thank you for the feedback.
Well, this is strange. If Cache Preload is not enabled, then the pages will be cached only at the visit.
Can you confirm that you do not have a custom cron to call the cache preload or use wp-cli?
Can you please share the website URL?
Thanks!This is the site
http://eepir.ru/For cron jobs i disabled the wordpress cron, so an using the native cronjobs of ubuntu, (running wp-cron.php with crontab each 5 min)
Hello @tavakal4devs
Thank you for the information.
Well, this may be a problem if the server cronjob is triggering the visit of all pages. In this case, all pages of the website are being cached.
Also 5 mins cronjob is very resource-consuming when it comes to servers. I am not sure what crons you are using, however, it appears that this is causing all the pages to be cached.
Thanks!The cronjobs is triggering the wp-cron.php file only, not all the pages! i don’t think this is the issue.
dose the plugin creates any kind of log file?
could you please check all the settings (screenshots) i sent in the messages above, is everything is normal?
@vmarkoHello @tavakal4devs
Thank you for your feedback.
I’ve checked all the screenshots that you posted and there is nothing to suggest his behavior.
Can you please also share the screenshot of the Performance>Page Cache screen?
Thanks!Here
https://paste.pics/8a61bfcb2ad0d26247f1bf10f378ccbd
https://paste.pics/ac57a7860dc59d7ade0b903bf09d81e8
https://paste.pics/a336bb6ab19f3a5785479a5d717730ff
https://paste.pics/f94fbb980fb108ce18e339de75680c46
https://paste.pics/7e3afb48b0e94bde2c09bfd4fd17dda0
- The topic ‘a W3C action is eating alot of CPU’ is closed to new replies.