【发布时间】:2015-02-21 10:10:22
【问题描述】:
我在我的 vServer 上尝试了 hhvm,但使用的内存有问题。性能很好,但是使用的内存消耗很可怕。我有一个最小 4GB 和最大 8GB 内存的 vServer,hhvm 在 1 天后使用了大约 2.4GB 的可用内存 - 但仍在上升。
server.ini 中是否有设置用于 hhvm 进程的最大内存的选项?
我目前在 hhvm 中运行 Typo3 和 Prestashop
location ~ \.php$ {
try_files $uri =404;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
}
和 server.ini
; php options
pid = /var/run/hhvm/pid
; hhvm specific
;hhvm.server.port = 9000
hhvm.server.file_socket = /var/run/hhvm/hhvm.sock
hhvm.server.type = fastcgi
hhvm.server.default_document = index.php
hhvm.log.use_log_file = true
hhvm.log.file = /var/log/hhvm/error.log
hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc
【问题讨论】:
标签: php memory nginx settings hhvm