It has several context initialization parameters to control behavior :
jruby.min.runtimes
: Initial number of runtimes to create and put in the pool. Default is none. jruby.max.runtimes
: Maximum size of the pool. Default is unlimited, in which case new requests for an application object will create one if none are available. jruby.runtime.acquire.timeout
: Value (in seconds) indicating when a thread will timeout waiting for an application instance when no runtimes are available in the pool. Default is 10.0 (seconds), an {@link AcquireTimeoutException} is thrown if such a condition occurs.jruby.runtime.init.threads
: Number of threads to use at startup to fill the pool. Default is 4. jruby.runtime.init.wait
: Whether to wait for initialization to complete before the factory is usable. In case it's a integer value it waits for until given number of application instances are in the pool. Default is true (waits till at least min runtimes are initialized).
|
|