flysystem-google-drive
flysystem-google-drive copied to clipboard
Allowed memory size of x bytes exhausted (tried to allocate x bytes)
Facing memory limit issue on production while transferring zip file of size 730MB:
ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 33554464 bytes) at nao-pon/flysystem-google-drive/src/GoogleDriveAdapter.php:1191
Current production memory limit is 128MB.
I tried to debug inside GoogleDriveAdapter.php and found that it creates chunks of 33554432 bytes(32MB) and uploads them one by one. In my case, First 4 chunks were successfully uploaded, but on 5th chunk it failed with above error.
A recent PR I made may fix this issue.