Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3242404
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:18:41+00:00 2026-05-17T18:18:41+00:00

We’re looking at some alternatives to our Tomcat based stack for a JRuby on

  • 0

We’re looking at some alternatives to our Tomcat based stack for a JRuby on Rails app.

So far I’ve read about the Trinidad gem, which is actually Tomcat based, and the Glassfish gem. I can’t however for either of these find production examples. Both of them it seems allow you to just run the command on command line, which is fine for local dev, but how do people use these solutions in production?

There doesn’t seem to be much action on the Glassfish gem these days, though it’s highly touted for being small and fast.

Does anyone have another setup that they find to be performant, robust and easy to deploy for a JRuby on Rails app?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:18:42+00:00Added an answer on May 17, 2026 at 6:18 pm

    Trinidad gem / Embedded Tomcat

    If you dig deeper into the Trinidad gem page on Github there are links to the various Trinidad extension gems. There is a daemonizing gem specifically supplied for use in production here:

    http://github.com/calavera/trinidad_daemon

    If you execute the install script and answer a handful of simple questions, it generates a tailored init script for your Ubuntu or OS X machine. That’s pretty much all you need.

    There are also example init scripts in the wiki here:

    http://github.com/calavera/trinidad_daemon_extension/wiki/init.d-scripts

    Note that for use in the Rails.threadsafe! mode, both min and max JRuby runtimes are set to 1 in your trinidad.yml configuration file.

    I have it working on Ubuntu with an Nginx frontend, and it’s working very nicely.

    So yes, this means that you use the command line to stop and start the application server, but the init script will also be called automatically on system startup. The wiki also includes some Capistrano deploy script examples, so you can even have the server stop and start from your own machine.

    Note: There are two daemon extensions. The one I have linked to is the new one, which uses a better daemonizing library.

    GlassFish gem

    You’re right, the GlassFish gem isn’t getting so much love right now, but I daresay things will improve. There are a couple of issues running it with JRuby 1.5+ because the gem didn’t keep up with changes in JRuby, however I wrote about how to work around the issues here: http://www.scottlowe.eu/deploying-rails-3-with-jruby-daemonized-glass

    Since writing that GlassFish post, Trinidad has gained the power to be dependably daemonized, so it’s probably the smoother path to take today.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.