Skip to content

Instantly share code, notes, and snippets.

@simonmilz
Created March 8, 2015 21:53
Show Gist options
  • Save simonmilz/63628ea69738019acef1 to your computer and use it in GitHub Desktop.
Save simonmilz/63628ea69738019acef1 to your computer and use it in GitHub Desktop.
hhvm server.ini example for 18gb RAM Root-Server
; php options
pid = /var/run/hhvm/pid
; hhvm specific
hhvm.server.port = 9000
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
; Custom server configuration
hhvm.server.fix_path_info = true
hhvm.server.thread_count = 16
hhvm.server.enable_keep_alive = true
hhvm.server.enable_ssl = true
; Custom APC configuration
hhvm.server.apc.enable_apc = true
hhvm.server.apc.table_type = concurrent
hhvm.server.apc.expire_on_sets = true
hhvm.server.apc.purge_frequency = 4096
; Custom MySQL configuration
hhvm.mysql.slow_query_threshold = 10000
; Custom configuration
; @see https://github.com/facebook/hhvm/issues/2851
hhvm.jit_a_size = 536870912
hhvm.jit_a_cold_size = 268435456
hhvm.jit_a_frozen_size = 536870912
hhvm.jit_a_prof_size = 536870912
hhvm.jit_a_max_usage = 536870912
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment