-
Notifications
You must be signed in to change notification settings - Fork 16
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
PHP process on 100% CPU and transformations not generated by cron jobs #267
Comments
Hi, In general, all PHP processes will gobble up as much CPU as is available, there's no way to throttle this. A queue runner wouldn't make much of a difference, the actual transform will happen in PHP anyway. There're a couple of things in your description that's a bit unclear:
When you say "PHP process", is it the webserver php process (ie php-fpm for instance), or the PHP CLI version?
Does it become unresponsive forever? Or just while the transforms are being generated? Does it eventually become responsive again. And since you mention that this happens on a client's server, does that mean that it works as expected locally/in other envs?
You mean that you've set ut auto generation for the fields to which you add the images? If so, the the generation of the transforms will happen via queue jobs, there's no other way Imager will be triggered at this point. If the queue jobs doesn't appear when running How many transforms per image are you creating? What file formats? |
Hi
It takes a between 30 seconds and a couple minutes.
Yes
I thought I was doing so, yes. But I just discovered, that I do not have enabled auto-generation at the moment.
|
I'm submitting a...
Steps to reproduce
Description
I have the problem that the server of a client becomes unresponsive by generating many transforms at the same time. I am looking into possible solutions. I thought about optimizing queue-handling. However, the generation of the transformations will not be executed by queue jobs. I run
craft queue/listen -v
but cannot see any queues of generating images. However, while observing the processes on the server, I can clearly see that imager is active generating transformations, for example by thecwebp
process.Displayed errors, stack trace, relevant logs
Additional info
The text was updated successfully, but these errors were encountered: