vServer 上 HHVM 實例的最大內存

vServer 上 HHVM 實例的最大內存

我在我的虛擬伺服器上嘗試了 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;
}

和伺服器.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

相關內容