Extremely Slow HHVM, Wordpress, Nginx

Something may be wrong, but I'm testing a bit between installing wordpress php-fpm and setting up Wordpress HHVM. I heard and saw a lot of mental results from HHVM, but I'm just shocked by the results that I get.

Using the following apache testing command, I get a much higher performance from php-fpm than HHVM.

ab -n1000 http://127.0.0.1:8080/ 

For php-fpm, I get 109.98 requests per second.

Unfortunately, for me, I only get ~ 12.33 requests per second using HHVM.

These tests are performed on a standard new Wordpress installation. I have to do something wrong in my configuration. I just need fresh eyes to see if I do something right.

Customization

An emergency copy from my local Macbook. Ubuntu Server 14.04.1 LTS 1 GB RAM 1 Nginx MySQL processor

HHVM Configuration

 pid = /var/run/hhvm/pid hhvm.server.file_socket=/var/run/hhvm/hhvm.sock hhvm.server.type = fastcgi hhvm.server.default_document = index.php hhvm.log.level = Warning hhvm.log.always_log_unhandled_exceptions = true hhvm.log.runtime_error_reporting_level = 8191 hhvm.log.use_log_file = true hhvm.log.file = /var/log/hhvm/error.log hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc hhvm.mysql.typed_results = false hhvm.eval.jit_warmup_requests = 0 hhvm.eval.jit = true 

Nginx config

 location ~ \.(hh|php)$ { fastcgi_pass unix:/var/run/hhvm/hhvm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } 

Any help is appreciated! Thank.

+5
php nginx wordpress hhvm
Aug 05 '14 at 19:45
source share
1 answer

Ok, so I finally figured out why this is happening ...

This is not HHVM, it is slow. I use Vagrant and set up a shared directory between my host system and the guest OS. VirtualBox virtual folders are extremely slow !!! When I placed all my Wordpress files in another private directory and pointed Nginx to it, my requests / second increased sharply.

+7
Aug 21 '14 at 15:40
source share



All Articles