Php thumbnails are generated. if the memory is insufficient, php will be used to generate thumbnails. it is okay to operate KB + jpg images, but the png images around kb will show that the memory is exhausted. Allowedmemorysizeof8388608bytesexhausted
Use php to generate thumbnails,
It's okay to operate jpg images of KB +,
However, the png image around KB is displayed.
Memory exhausted,
Allowed memory size of 8388608 bytes exhausted (tried to allocate 3715200 bytes;
What is the cause,
How can this happen.
------ Solution --------------------
How much memory you allocated to php
1. optimized memory
2. set memory_limit to be larger.
------ Solution --------------------
Add ini_set ("memory_limit", "12 M") at the beginning of the row to check whether the problem can be solved.
If it cannot be solved, you need to optimize your code.
------ Solution --------------------
This modification disappears at the end of this page.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service