Problem with imagemagick and cloudlinux

noimad1

Well-Known Member
Mar 27, 2003
629
0
166
OK, I have a customer that is having an issue with imagemagick, and I think it is cloudlinux related, but I can't seem to figure it out.

If I log into the customers account using ssh, and try to run the convert command on an image (small image - only 24kb), it gives me this error:

convert: memory allocation failed `pathtoimage/x.gif' @ error/quantize.c/QuantizeImage/2726.
convert: memory allocation failed `/pathtoimage/x.gif' @ error/gif.c/WriteGIFImage/1633.

Now, if I log in as root and run the exact same command it runs just fine.

This machine is running dual quad core cpu's with 24GB of ram. I even went into the LTVE manager and allowed him access to all 24GB just to see what would happen, and there was no change.

Anyone have any ideas on this one?
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
OK, I have a customer that is having an issue with imagemagick, and I think it is cloudlinux related, but I can't seem to figure it out.

If I log into the customers account using ssh, and try to run the convert command on an image (small image - only 24kb), it gives me this error:

convert: memory allocation failed `pathtoimage/x.gif' @ error/quantize.c/QuantizeImage/2726.
convert: memory allocation failed `/pathtoimage/x.gif' @ error/gif.c/WriteGIFImage/1633.

Now, if I log in as root and run the exact same command it runs just fine.

This machine is running dual quad core cpu's with 24GB of ram. I even went into the LTVE manager and allowed him access to all 24GB just to see what would happen, and there was no change.

Anyone have any ideas on this one?
Try to add -limit area 0 to your command and run it again!

Reference link ImageMagick • View topic - Memory allocation failure - 6.7.4-8