当我第一次通过“jruby -S trinidad”启动特立尼达时 我收到了消息:
added application to pool, size now = 1
如何在config / trinidad.yml中增加此池的大小?
答案 0 :(得分:4)
查看https://github.com/trinidad/trinidad/blob/master/lib/trinidad/configuration.rb
我认为jruby.min.runtimes
(和jruby.max.runtimes
)正是您所寻找的。 p>
答案 1 :(得分:2)
使用 trinidad.yml 时,它看起来像这样:
---
address: localhost # set '*' to bind to all interfaces
port: 3000 # port where Trinidad is going to be runnin
#environment: production # specify with `trinidad -e production`
jruby_min_runtimes: 10 # min number of JRuby runtimes to use
jruby_max_runtimes: 10 # max number of JRuby runtimes to use
#threadsafe: true # implies min runtimes == max runtimes == 1