{"id":5589225,"date":"2014-12-18T05:30:49","date_gmt":"2014-12-18T05:30:49","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/issues-optimizing-pngs-running-with-hhvm\/"},"modified":"2016-08-22T13:38:26","modified_gmt":"2016-08-22T13:38:26","slug":"issues-optimizing-pngs-running-with-hhvm","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/issues-optimizing-pngs-running-with-hhvm\/","title":{"rendered":"Issues optimizing PNGs running with HHVM"},"content":{"rendered":"<p>Have you tested the plugin under HHVM? I&#8217;ve been seeing the following error uploading PNGs &#8211; its a 1.6Mb PNG and it seems to work fine with PHP-FPM and a 128Mb memory_limit.<\/p>\n<p>Fatal error: request has exceeded memory limit in \/home\/username\/www\/wordpress\/wp-includes\/class-wp-image-editor-gd.php on line 130<\/p>\n<p>Bumping the memory_limit to 512Mb under HHVM results in the following error and the browser returning a 504:<br \/>\nFatal 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 2015<\/p>\n<p>For reference the server is on the $80\/mo plan from Digital Ocean so it should be sufficiently capable.<\/p>\n<p>I&#8217;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.<\/p>\n<p>On a related note I have imagemagick installed \u2013 is there a reason its using GD instead?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/ewww-image-optimizer\/<\/p>\n","protected":false},"template":"","class_list":["post-5589225","topic","type-topic","status-closed","hentry","topic-tag-gd","topic-tag-hhvm","topic-tag-memory_limit","topic-tag-png","topic-tag-timeout"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5589225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5589225\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5589225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}