Issues optimizing PNGs running with HHVM
-
Have you tested the plugin under HHVM? I’ve been seeing the following error uploading PNGs – its a 1.6Mb PNG and it seems to work fine with PHP-FPM and a 128Mb memory_limit.
Fatal error: request has exceeded memory limit in /home/username/www/wordpress/wp-includes/class-wp-image-editor-gd.php on line 130
Bumping the memory_limit to 512Mb under HHVM results in the following error and the browser returning a 504:
Fatal error: entire web request took longer than 50 seconds and timed out in /home/username/www/wp-content/plugins/ewww-image-optimizer/common.php on line 2015For reference the server is on the $80/mo plan from Digital Ocean so it should be sufficiently capable.
I’ve also noticed the plugin starts to complain the dependencies are missing after HHVM has been running for a couple hours. Almost as if exec() stops working after awhile. Restarting HHVM seems to fix it briefly before it occurs again. I can poke around with xdebug if there is anything in particular that would be helpful.
On a related note I have imagemagick installed – is there a reason its using GD instead?
- The topic ‘Issues optimizing PNGs running with HHVM’ is closed to new replies.