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

  • SEARCH
  • Home
  • 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 6541041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:03:19+00:00 2026-05-25T11:03:19+00:00

Recently I am deploying my Rails 3 project on jruby (1.6.4) platform for protecting

  • 0

Recently I am deploying my Rails 3 project on jruby (1.6.4) platform for protecting ruby source code.

I use warble to package my rails project into a war file for Apache Tomcat(6), then use NGINX as front web server to proxy backend tomcat.

I found JRuby took high memery and cpu during application initialization and this will take almost three minutes.

I want to know to how to config jruby (such as JAVA_OPTS) and my rails project to reduce memery and cpu occupation and quickly finishing startup.

And NGINX proxy backend tomcat is a suitable way to deploy rails on jruby project?


qichunren@qichunren-desktop:~/code/ntdeck$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

qichunren@qichunren-desktop:~/code/ntdeck$ jruby -v
jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [linux-amd64-java]

apache-tomcat-6.0.33
nginx-1.0.6
ubuntu 11
  • 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-25T11:03:20+00:00Added an answer on May 25, 2026 at 11:03 am

    Probably the best thing you can do is to make sure to set jruby.min.runtimes = jruby.max.runtimes = 1, and run Rails in threadsafe mode. It will reduce initialization time since you only have to boot a single runtime, and reduce memory overhead of multiple runtimes.

    Finally, if you find a steady-state memory level for the application, you might want to explicitly state the maximum memory to the JVM in the Tomcat settings.

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

Sidebar

Related Questions

Recently downloaded some code for a minor open-source project related to a small webgame
Recently I found some simple source code of a bootloader.The following is the simple
Recently one of our Tomcat servers started having trouble deploying WAR files. We have
So something I've been doing recently is adding an additional project to my code
Recently I ran into this error in my web application: java.lang.OutOfMemoryError: PermGen space It's
Recently a friend and I were talking about securing stored procedure code in a
I just recently started having issues while deploying EARS within websphere. The error I
recently I'm writing some functions that I take from Haskell and translate into Java.
I recently added a new project to my Visual Studio 2008 solution. Now, as
I have been deploying several programs into one folder using XCOPY deployment to a

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.