3

当我第一次通过“jruby -S trinidad”启动特立尼达时,我得到了消息:

added application to pool, size now = 1

如何在我的 config/trinidad.yml 中增加这个池的大小?

4

2 回答 2

4

看看https://github.com/trinidad/trinidad/blob/master/lib/trinidad/configuration.rb

我认为jruby.min.runtimes(and jruby.max.runtimes) 是您正在寻找的。

于 2013-05-26T05:59:27.173 回答
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
于 2014-04-14T08:38:41.123 回答