• Resolved bastiiaann24

    (@bastiiaann24)


    Hello!

    On one of our websites, our client has been uploading pretty large images (15MB+). For years this has been no problem at all, however last week they noticed the following error:
    cache resources exhausted @error/cache.c/OpenPixelCache/4095
    (the whole error message is in Dutch, but I think this might be the most important part).

    The strange thing is that this error shows on an image that is 16MB in size, but an image with a size of 21MB shows no problems at all. The server that’s running the site is not limiting the amount of cache resources it can use. So we were wondering what the issue could be. Could you perhaps provide a bit more information about this error message and why it is possible to upload larger files and not generate the error? Is there more to it than file size, like compression that also could play a role here?

    This is the first time that we’ve seen this error, and we’ve been running this plugin on multiple sites for multiple years. So we thought we would reach out.

    Thanks very much in advance!

    • This topic was modified 2 years, 6 months ago by bastiiaann24.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    The error itself comes from ImageMagick (via the PHP imagick module), but I believe it’s more a matter of memory consumption which is linked more to the resolution of the images than the filesize.
    Do you know what the resolution of those two images are (the 16MB and 21MB ones you mentioned)?

    Thread Starter bastiiaann24

    (@bastiiaann24)

    The 16MB image has a size of 7836 × 5051 pixels, with a DPI of 300 pixels/inch. And the 21MB image has a size of 6558 × 4372 pixels, with a DPI of 220 pixels/inch. So I guess judging by those numbers, the 16MB image would take up a lot more resources.

    Plugin Author nosilver4u

    (@nosilver4u)

    Yup, that makes sense then, as the 16MB image will use approximately 25% more memory to edit. Essentially the image is decompressed into a “bitmap” format when editing/resizing by WordPress, and that can use a LOT of memory. If the server has sufficient memory, you might be able to work with your web host to increase the cache size for ImageMagick (I don’t remember exactly how to do that).

    Thread Starter bastiiaann24

    (@bastiiaann24)

    Thanks for the explanation, I’ll run it by our host administrator in the hopes we could increase the cache size.

    Thanks for the help, much appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cache resource exhausted’ is closed to new replies.