HHVM预热流程

时间:2016-04-20 19:30:30

标签: hhvm

我在我的hhvm服务器启动命令中包含了server.hdf。

Server {
    WarmupRequests {
        * = /var/www/app/hhvm_warmup.php
        * = /var/www/app/hhvm_warmup.php
        * = /var/www/app/hhvm_warmup.php
        * = /var/www/app/hhvm_warmup.php
        * = /var/www/app/hhvm_warmup.php
        * = /var/www/app/hhvm_warmup.php
        * = /var/www/app/hhvm_warmup.php
        * = /var/www/app/hhvm_warmup.php
        * = /var/www/app/hhvm_warmup.php
        * = /var/www/app/hhvm_warmup.php
        * = /var/www/app/hhvm_warmup.php
        * = /var/www/app/hhvm_warmup.php
    }
}

这是我的php.ini

; php options
;
session.save_handler = files
session.save_path = /var/lib/php5
session.gc_maxlifetime = 1440

; hhvm specific
hhvm.jit_warmup_requests = 10

hhvm.server.port=9000
hhvm.server.type=fastcgi
hhvm.server.source_root=/var/www/app/public
hhvm.server.default_document = index.php

hhvm.log.use_log_file = true
hhvm.log.level = Warning 
hhvm.log.file = /var/log/hhvm/error.log
hhvm.log.header = true
hhvm.log.use_sys_log = true
hhvm.log.injected_stack_trace = true
hhvm.log.native_stack_trace = true
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 1
hhvm.mysql.typed_results = false

hhvm.hack.lang.look_for_typechecker = false
hhvm.utf8 = true

有点挑剔,因为我以前在/var/log/hhvm/error.log中看到热身日志,但现在我看到数据库错误失败了。这些错误来自应用程序,不知道要在基本URL上加载哪个环境。我无法确定这些请求失败的来源。 hhvm以某种方式向应用程序发送请求吗?

0 个答案:

没有答案