Apache using high CPU resources
Original Question or Issue:
Apache uses high CPU resources causing slowness with FileCloud Drive
Environment:
- Product - FileCloud Drive
- Version - Any
- Platform - Any
Steps to Reproduce:
Error or Log Message:
Check the Apache access logs to see if the getfilelist API call is accessed too frequently, similar to the below one:
[xx/xx/xxx:xx:xx:xx -xxxx] xx.xx.xx.xx TLSv1.3 TLS_AES_256_GCM_SHA384 "POST /core/getfilelist?time=1725532939 HTTP/1.1" 246
Defect or Enhancement Number:
Cause:
Apache CPU usage can trigger for multiple reasons, though in a newly set-up system with FileCloud Drive used as the major client application, this can be caused by FileCloud Drive's pre-caching feature.
Resolution or Workaround:
Disable precaching in FileCloud Drive in the Admin Portal>Settings>Policies under Device Configuration by adding the remote management policy below.
<xml>
<winclouddrive>
<disableprecaching>1</disableprecaching>
</winclouddrive>
</xml>
Starting from FileCloud 23.241, you can add the below configuration to cloudconfig.php to disable this server wide.
define("TONIDOCLOUD_DISABLE_DRIVE_PRECACHING", true);
Changes will reflect only when existing FileCloud Drive connections are restarted.
Notes: