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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:53:06+00:00 2026-06-09T14:53:06+00:00

I have a RorR app running on EC2 (micro insntance, ~590mb mem.). When I

  • 0

I have a RorR app running on EC2 (micro insntance, ~590mb mem.).
When I deploy the app with capistrano, memory usage hits aroun 98,7% when assets are beign compile…
Is there a way to reduce this usage?

this is my deploy.rb

require "bundler/capistrano"

set :application, "name"
set :repository,  "git@github.com:user/app.git"

set :scm, :git

role :web, "server.compute.amazonaws.com" 
role :app, "server.compute.amazonaws.com" 
role :db,  "server.compute.amazonaws.com", :primary => true

set :user, "user"
set :use_sudo, false

default_run_options[:pty] = true
ssh_options[:forward_agent] = true
ssh_options[:keys] = ["#{ENV['HOME']}/key.pem"]

# if you want to clean up old releases on each deploy uncomment this:
after "deploy:restart", "deploy:cleanup"

set :deploy_to, "/home/user"
set :deploy_via, :remote_cache

role :web, "server.compute.amazonaws.com" # Your HTTP server, Apache/etc
role :app, "server.compute.amazonaws.com" # This may be the same as your `Web` server
role :db, "server.compute.amazonaws.com", :primary => true # This is where Rails migrations will run

# if you're still using the script/reaper helper you will need
# these http://github.com/rails/irs_process_scripts

is this an expect behavior? Should I increase memory?
I was using a VM on digitalocean.com with 256mb, now i’m using EC2 with 590mb, and the consumption still hits almost 100%

  • 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-09T14:53:08+00:00Added an answer on June 9, 2026 at 2:53 pm

    If you are running Rails 3.1.1, then your problem is probably associated with this issue: https://github.com/rails/rails/issues/3694. It has been fixed in rails 3.2, so upgrading should solve your problem.

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

Sidebar

Related Questions

have been trying couple of hours now to make my iphone app universal. The
Have a really weird one here. The app has two targets, just to be
Have an app that can use tts to read text messages. It can also
Have a rails app that is supposed to display a list of products/managers. After
Have a (rather complex) app that works fine on iOS 4 but fails on
have written this little class, which generates a UUID every time an object of
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=
Have done quite a bit of searching for a guide (of any substance) for
Have deployed numerous report parts which reference the same view however one of them
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:

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.