HipHop Support
Hi,
It seems HipHop support is nice, they have prebuilt packages, and perform quite better than php5-fpm. Not much changing codes I guess.
Here, take a look at this: https://github.com/facebook/hhvm/wiki#installing-pre-built-packages-for-hhvm
@rahul286 Gaurav already shared a link in above comments https://github.com/rtCamp/easyengine/issues/180#issuecomment-49974742
@gau1991 @rahul286 worke perfectly. I now have WordPress running on HHVM and Drupal on PHP on the same server. Also installed CraftCMS to start plying around with it and it is also running on PHP since it crashes on HHVM. All on the same server, and everything is running well :)
Anyone having memory issue with HHVM on OpenVZ container? No problem in KVM or Xen though.
The install of HHVM went fine and all sites loaded fine except SSL enabled sites, so I had to revert the upstream config to get SSL sites active again. The sites fail to load anything. Please advise. :)
Btw, The php page showed HipHop but the X-Powered-By showed EasyEngine.
FYI:
https://rtcamp.com/tutorials/php/hhvm-with-fpm-fallback/ no longer works with EasyEngine 2.2.1
Running $ sudo /usr/share/hhvm/install_fastcgi.sh outputs:
Checking if Apache is installed
WARNING: Couldn't find Apache2 configuration paths, not configuring
Checking if Nginx is installed
Detected Nginx installation
Checking for custom Nginx configuration
WARNING: Detected clashing configuration. Look at /etc/nginx/hhvm.conf for information how to connect to the hhvm fastcgi instance.
I have found other issues that I believe are unrelated to SSL found in my previous comment.
I got HHVM 3.4 to work in a Wordpress VPS in DO (NginX+MariaDB 10) everything is working but the site is dead slow, I can't find why.
If HHVM support is added I would recommend the option to be enabled per website instead of entirely replacing php5-fpm, or using as global fallback. It's worked great for me but still needs a lot of testing with thousands of plugins/themes.
HHVM support will be added but enabled per site only on demand.
Some examples:
ee site create example.com --hhvm #for new sites
ee site update example.com --hhvm #for existing sites
Also, for every HHVM site FPM will be always there as a fallback option via nginx's upstream module.
With some pretty ruff testing compliments of Blitz.io on a EE multi-site installation w/ HHVM active and PHP5-FPM as a fallback, IMO, you really shouldn't run in to any issues (with WordPress) other than a lack of sockets being available (in the case of pounding the server with a simple stress test - far from realistic, of course, but it gives an idea of what to expect).
That was with on a 2GB VPS from DigitalOcean (SSD).
WordPress was given an increase from baseline memory allocation to 128MB (via wp-config.php) and Query Cache Type (in my.cnf) was set to 1. Nothing else was modified for the test and we came out with just 1 error / test when performing 10 back-2-back blitzes with 230 users over a 1 minute period of time (which according to them comes out to between 8-10m hits - again, not realistic).
Server Loads never went above .2-.3 during the entire test (and we didn't wait for them to come back down), so overall, I'd say it works pretty well. I used both Ubuntu 14.04 and 14.10 (64bit) and none of the other (suggested) HHVM configuration was done.
That said, HHVM does tend to fail often, but with PHP5-FPM as a backup, it's not even noticeable as it seems to instantly pick up where the requests to HHVM left off.
Just for the purpose of testing things further, I'm about to build a custom LNMP stack to test things further as I typically use quite a few more options when it comes to blocking files, blocking bots, and also blocking queries through NGINX so we can work towards reducing injections. WordPress does a pretty good job on it's own, but their $wpdb->prepare isn't a replacement for PDO :).
@joeguilmette That's a standard error. That's HHVM testing to see if you have NGINX installed and if you are potentially using a custom configuration. This check is performed so that, during the install, HHVM doesn't overwrite your configuration files. All that error means is that you will need to make the changes by hand by using the tutorial provided by RTCamp :).
I tested HHVM with an ee 2.2.2 nginx+fastcgi+W3TC install per the HHVM rtcamp tutorial. Things went smoothly. Only logged errors had to do with W3TC--a bug they say will be fixed in next update.
I was surprised to experience slightly slower page loads (~200-600ms) where pages were cached (compared to same ee config without hhvm). The test site was a clone of an existing Wordpress site, thus many variables could be responsible for this--not necessarily the ee/tutorial config.
Same here as @jmn00 on fresh install of --wpfc (w3TC installed), enabling object cache and database cache as memcached no issues, and blazing fast admin panel.
but on upgrade to hhvm admin panel doesn't respond properly. also, i noticed php version was 5.5.x without opcode cache installed.
@jmn00 and @jarylwang can you try disabling W3TC cache altogether can compare hhvm performance? W3TC backfires sometimes.
@rahul286 I set up another install and this time hhvm performance did not hinder cached page loads, even with W3TC running. Now running hhvm on my personal blog without issues. Uncached pages are loading ~1sec or less, with cached pages ~500ms on average. That's fast. Think I'll stick with hhvm for now.
As it happens, I tested mod_pagespeed with this setup per rt tutorial and found slight improvements though it failed to combine javascript and css files (and yes, I uncommented those filters and tested with W3TC uninstalled). I'm keeping mod_pagespeed on for now but using W3TC to combine css and js.
afaik, PHPMyAdmin requires mysqli immediately, and HHVM still does not support this but will do further testing today.
Fantastic!!! Installed HHVM with ee. Site powered by WordPress. I use plugin (PHP/MySQL CPU performance statistics) to test basic server environment performance. For ee PHP-FPM (5.5.21-1+deb.sury.org~trusty+2) out of the ee box general PHP Test time (for all tests ) was 12,66 seconds and PHP performance index was 790. After installing HHVM first run showed 4,83 seconds and performance index 2070. Second run showed even better results 1,22 seconds and performance index 8197. I gues it's 11X better results :-) I'm surprisingly shocked 0_0 Results even outperform standart server results which plugin developers use to indicate if your server is fast or slow.
@aristovia Thanks for sharing your experience.
We hope to make HHVM as default in EE 3.1 :-)
Are you including JIT (just in time compiler) configuration?
@Johnathan have you ran into those pesky "TC FULL" errors that end in HHVM crashing and no FPM fallback? Its been happening to me about once a week as the hhvm caches build and gives no warning signs. Has something to do with the cache size parameters for various cacheing stages hhvm puts content through as it ages, eg frozen, cold, etc. I saw claims that raising memory limits on a couple of the cache levels helped prevent the TC Full errors, just not sure why and if they would work for an EE-based environment
Aside from this somewhat preventable issue, I've had zero problems with hhvm using EE on standard and mu sites with several dynamic content plugins. HHVM definitely has my vote once this is addressed On Feb 14, 2015 5:22 AM, "jmn00" [email protected] wrote:
Are you including JIT (just in time compiler) configuration?
— Reply to this email directly or view it on GitHub https://github.com/rtCamp/easyengine/issues/180#issuecomment-74371371.
Does anyone here notice HHVM's memory usuage slowly creeping upwards? I am running it one a new WP install I notice creeping past 65% memory usage.