# Warbler question for deployment on Tomcat

**URL:** <https://www.ruby-forum.com/t/warbler-question-for-deployment-on-tomcat/183049>\
**Category:** Rails\
**Created:** [February 7, 2010, 1:39am UTC](https://www.ruby-forum.com/t/warbler-question-for-deployment-on-tomcat/183049 "2010-02-07T01:39:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelF](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@MichaelF](https://www.ruby-forum.com/u/MichaelF)\
**Post date:** [February 7, 2010, 1:39am UTC](https://www.ruby-forum.com/t/warbler-question-for-deployment-on-tomcat/183049/1 "2010-02-07T01:39:33Z")

</div>

I am using Rail 2.2.2 with JRuby 1.4 to deploy to a Tomcat 6 server.

In looking through the Warbler documentation I am stumped on the  
proper settings for a couple of parameters.

In my warble.rb file I see lines for:

# config.webxml.jruby.min.runtimes = 2

# config.webxml.jruby.max.runtimes = 4

In my production.rb I have enabled threadsafe mode:

# Enable threaded mode

config.threadsafe!

With threadsafe mode am I supposed to uncommend the min and max  
runtimes and give them a value? I think that (per the Warble doco)  
once I turned on threadsafe mode that Warbler would ignore the min and  
max settings but I am not sure that this is correct?

Any advice you can offer is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![MichaelF](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@MichaelF](https://www.ruby-forum.com/u/MichaelF)\
**Post date:** [February 8, 2010, 7:39pm UTC](https://www.ruby-forum.com/t/warbler-question-for-deployment-on-tomcat/183049/2 "2010-02-08T19:39:40Z")

</div>

On Sat, Feb 6, 2010 at 6:38 PM, MichaelF [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> In my production.rb I have enabled threadsafe mode:  
> Any advice you can offer is greatly appreciated.  
> Hi Michael,

The intent is to have the runtimes set automatically, but if you  
already have a warbler config file, you may wish to uncomment and set  
both to “1” just to be sure. If you have any further Warbler-specific  
questions feel free to follow up with me privately or on the JRuby  
mailing list.

/Nick
