3

When I first boot up Trinidad via "jruby -S trinidad" I get the msg:

added application to pool, size now = 1

How do I increase the size of this pool in my config/trinidad.yml?

Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102
Henley
  • 21,258
  • 32
  • 119
  • 207

2 Answers2

4

Take a look at https://github.com/trinidad/trinidad/blob/master/lib/trinidad/configuration.rb

I think jruby.min.runtimes(and jruby.max.runtimes) is what you're looking for.

Jahan Zinedine
  • 14,616
  • 5
  • 46
  • 70
2

when using trinidad.yml it looks something like this :

---
  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
kares
  • 7,076
  • 1
  • 28
  • 38