Henley Wing Chiu
Henley Wing Chiu

Reputation: 22515

How to increase JRuby Trinidad pool size?

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?

Upvotes: 3

Views: 233

Answers (2)

Jahan Zinedine
Jahan Zinedine

Reputation: 14874

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.

Upvotes: 4

kares
kares

Reputation: 7166

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

Upvotes: 2

Related Questions