Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of memory #8

Open
simbyone2 opened this issue Jan 16, 2017 · 5 comments
Open

Out of memory #8

simbyone2 opened this issue Jan 16, 2017 · 5 comments

Comments

@simbyone2
Copy link

This is a very memory intensive script. The script runs out of memory very fast on most hosting accounts, on most servers, the script can't even handle 500 KB images.

@attackant
Copy link

We have this script deployed on over 100 servers without issue. It's probably hitting a low PHP memory limit setting. Unless you have more detail to provide we're going to close this issue.

@simbyone2
Copy link
Author

It's hitting memory limit on Godaddy Ultimate Linux Hosting with 1GB of memory resizing a 1,548 KB picture. Most shared servers don't even have 1GB.

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12600 bytes) in /../image.php on line 1415

On my local server, in order to resize a 11,000 KB image I had to allocate 16GB ram memory in order for the script to work.

@attackant
Copy link

That's only 67.108864 MB. Makes sense it could be maxing out. The statement about your local server doesn't make sense unless you are churning through a ton of images on a single request.

@simbyone2
Copy link
Author

Yes it actually shows 20 images in a single request.

@attackant
Copy link

Then my guess is you are actually exceeding PHP's available resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants