flysystem-google-drive icon indicating copy to clipboard operation
flysystem-google-drive copied to clipboard

Allowed memory size of x bytes exhausted (tried to allocate x bytes)

Open Devang142 opened this issue 6 years ago • 1 comments

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.

Devang142 avatar Oct 05 '18 16:10 Devang142

A recent PR I made may fix this issue.

DynamoGeek avatar Apr 28 '19 03:04 DynamoGeek