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

Large/multiple GIF uploads cause extreme high server load #132

Closed
arifje opened this issue Jan 8, 2019 · 1 comment
Closed

Large/multiple GIF uploads cause extreme high server load #132

arifje opened this issue Jan 8, 2019 · 1 comment

Comments

@arifje
Copy link

arifje commented Jan 8, 2019

Let me start with saying I don't know for sure if this is caused by Craft or this plugin, so forgive me if I am wrong.

When we add and upload some GIF images in an entry and double click on them so add some data in the custom fields we've added (titel, description, etc.), our server becomes almost unresponsive within a few seconds. Small GIF files (< 2MB) are doable, but larger files aren't.

Also, often we see the message "this is not an image that can be manipulated", but after a while this is gone and the image does seems to be converted (or whatever happens with it).

screenshot 2019-01-08 at 11 45 09

The modal and CP are freezing, and multiple PHP-CGI processes seem to freeze on the server, which are causing an extreme high load. Eventually, when I kill all these processes, restart Lighttpd, it becomes responsive again.

Conclusion: it looks like a process it triggered for GIF files that will cause all these issues and I would really like to find out if this is caused by this plugin, or maybe Craft itself.

Note; we also experienced issues with Craft before, because Craft tried to optimise all GIF files after upload. The config parameter transformGifs was ignored. I created an issue for that (craftcms/cms#3110) which seems to be fixed. But this caused the same issues.

We have all required libs running;

screenshot 2019-01-08 at 11 43 54

We really would to see a way to SKIP all conversions for GIF files if possible. We don't need it and it causes a lot of (server) stress.

Craft CMS 3.0.36
PHP 7.0.32
Dedicated server running ubuntu with 8 cores and 16GB ram (so enough for handling some conversions)

Thanks in advance!

@khalwat
Copy link
Contributor

khalwat commented Jan 10, 2019

So this is likely not an ImageOptimize issue, because it just uses Craft Transforms under the hood... which then end up using Imagick or GD or whatever PHP image library you have installed.

The Optimized Images field does have options that let you ignore creating variants for certain types of images:

google chromescreensnapz316

That should do the trick for you! Just make sure on the frontend, you check to see if there are any image variants before trying to use them (because for GIFs there won't be any).

@khalwat khalwat closed this as completed Jan 10, 2019
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