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 7827033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:41:12+00:00 2026-06-02T09:41:12+00:00

My application is swapping to disk, because it is using 2.2 GB of memory.

  • 0

My application is swapping to disk, because it is using 2.2 GB of memory. I can’t figure out what in my application is causing it to be such a memory hog.

This is an RHEL5 VM, with 2 GB of RAM.

Rails is version 3.1.3.

My webserver in nginx v1.0.10, using Phusion Passenger version 3.0.11.

The “ruby” process appears to be completely off the hook in terms of its memory footprint.

The application is a relatively straightforward product catalog. The server is crashing about twice per day when it runs out of memory. I’m also using memcached v1.4.4.

Rails caching is causing the crash when it is eventually unable to establish any more memory.

I don’t know what steps to take to determine why my application has such a large footprint.

Could it be:

1) Some gems being loaded into memory?
2) A faulty or insufficient Passenger setup in my nginx.conf file?
3) Something else?

I deeply appreciate any help anyone can offer! I am having to check this thing every two hours at night. Not fun!

UPDATE:

Passenger config is as follows:

server {
  listen 80;
  client_max_body_size 4M;
  server_name www.myapp.net myapp.net *.myapp.net;
  root /usr/code/mcp5/public;   # <--- be sure to point to 'public'!
  passenger_enabled on;
  passenger_min_instances             5;
  rails_env                           production;
  rails_framework_spawner_idle_time   0;
  rails_app_spawner_idle_time         0;
}

I also noticed in my logging utility that this thing is quickly spinning up to over 20 ruby procs.

  • 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-06-02T09:41:17+00:00Added an answer on June 2, 2026 at 9:41 am

    What does your passenger configuration look like? You may have too many threads for the resources available to you.

    Thanks for the update.

    Although our servers have much more resources than yours, we still make use of the following directive.

    PassengerMaxPoolSize

    Try setting it to 10 to start off with and perform your load test. This should at least stop the app from killing your server. I would then spend further time trying to determine where the bottleneck is. We use Newrelic for performance monitoring.hope this helps

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

Sidebar

Related Questions

Application : HTA (therefore IE) This is an application that uses SendKeys to populate
Application works fine. I can access everything in debug except for an Array Adapter
An application I have recently started work on has to register two dll's, because
I realise it's an early release and unstable. I wouldn't dream of swapping out
In the example on using fragments in the Android docs, when the application is
Is it practically possible for a malicious developer exploit your application by swapping a
An application I'm working on does all its queries by identifier using session.load(). Given
I have a UserControl in an application where I am constantly swapping the Content
I have an application currently using the 1.0 version of ent-lib, which I am
I currently have an application in Mac Os X whose Real Memory footprint grows

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.