瀏覽代碼

better resin thread counts

Patrick Falls 12 年之前
父節點
當前提交
aae0f494c6
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      config/resin.properties

+ 5 - 5
config/resin.properties

@@ -20,7 +20,7 @@ log_level     : severe
 dev_mode      : false
 
 # How often Resin should check for updated files.
-# dependency_check_interval : 5m
+dependency_check_interval : 5m
 
 # Enable /resin-doc Resin documentation
 resin_doc      : false
@@ -80,7 +80,7 @@ setuid_user   :
 setuid_group  : 
 
 # Arg passed directly to the JVM
-jvm_args  : -Xmx2048m -XX:MaxPermSize=256m
+jvm_args  : -Xmx2048m -Xms2048m -XX:MaxPermSize=256m
 jvm_mode    : -server
 
 # Local URLs for the watchdog to check to ensure the server is up,
@@ -88,9 +88,9 @@ jvm_mode    : -server
 # http_ping_urls : http://127.0.0.1/test.jsp
 
 # Throttle the number of active threads for a port
-port_thread_max   : 4096
-accept_thread_max : 512
-accept_thread_min : 256
+port_thread_max   : 256
+accept_thread_max : 32
+accept_thread_min : 4
 
 # Enable JNI TCP speed optimizations
 tcp_cork : true