I'm using CentOS 8 and openlitespeed with php version 7.4
Whenever I am enabling the support for imagemagick I'm getting lot of php fatal errors related to not able to allocate memory looks like this in stderr file mmap() failed to allocate memory.
Error: Out of memory (allocated 2097152) (tried to allocate 131072 bytes)
My server has 64 GB ram but I'm not sure why is this error happening. I have almost tried every solution mentioned related to this error with imagick available on Google but still I'm getting this same error. Does anyone have any solution for this error ? Or can guide me how can I debug this issue fast and get it fixed.