This repository has been archived by the owner on Sep 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Defining the PHP memory_limit
Olivier Paroz edited this page Oct 9, 2015
·
2 revisions
If you get a message like this one,
"Allowed memory size of 536870912 bytes exhausted (tried to allocate 13743895345 bytes) at DOCROOT/lib/private/image.php#xxx"
it is likely that you have a PHP memory_limit
set too low for your needs. Image processing requires a lot of memory.
Here is a quick Bytes to MegaBytes conversion table to make more sense out of these large numbers
Bytes | MegaBytes |
---|---|
8388608 | 8 |
16777216 | 16 |
33554432 | 32 |
67108864 | 64 |
134217728 | 128 |
268435456 | 256 |
536870912 | 512 |
1073741824 | 1024 |
In order to understand what your memory requirements might be, you should visit this website which lets you input an image's dimensions and the target size and will calculate how much memory the operation will require:
http://www.dotsamazing.com/en/labs/phpmemorylimit
Please refer to the ownCloud documentation to understand where you should modify the PHP memory_limit
setting:
Note: The syntax is different depending on where you make the modification.
- General
- Installation
- Configuration
- OCC commands
- Developers