Questions tagged [puma]

Puma is a simple, fast, threaded, and highly concurrent HTTP server for Ruby/Rack applications.

From the introduction:

Puma is a simple, fast, and highly concurrent HTTP 1.1 server for Ruby web applications. It can be used with any application that supports Rack, and is considered the replacement for Webrick and Mongrel. It was designed to be the go-to server for Rubinius, but also works well with JRuby and MRI. Puma is intended for use in both development and production environments.

Also see the GitHub project.

1218 questions
0
votes
2 answers

Can't make Puma run with Nginx reverse proxy in Windows

I'm trying to make my Rails app with Puma run with Nginx. I use rails s and localhost:3000 work just fine. But when I go to http://rails_host/, it returns The server at rails_host can't be found, because the DNS lookup failed. DNS is the network…
user3448806
  • 897
  • 10
  • 22
0
votes
2 answers

Ruby Threading Performance: Slow Thread.pass

We're running a threaded ruby server (Puma), and have seen serious performance issues with our Sinatra app. Specifically, something as simple as Thread.pass can take over 2s. How is it possible that a server with 16 threads can take over 2s to…
scosman
  • 2,343
  • 18
  • 34
0
votes
0 answers

Rails 4.2 Deploy NGINX, Puma, Capistrano, RBenv with SSL - 403 errors

I am getting 403 Forbidden. I have checked my nginx/error.log and get directory index of /home/deploy/apps/myapp/current/public/ is forbidden I have SSL and did a check on https://www.digicert.com/help/ and see my certificates are set up OK. I am…
Laurie
  • 162
  • 1
  • 11
0
votes
0 answers

Why I use Rails model concerns will get the superclass mismatch errors with class in production environment?

I use Puma and Rails 4.2. My concern is set up like this: Class Order module Chartable ... end end The order class is set up like this: Class Order include Chartable end In development, the code showed no errors, but in the production I…
JeskTop
  • 481
  • 1
  • 4
  • 20
0
votes
1 answer

Rails Fails To Generate Correct Link Path In Production Mode

The app whose in production mode is failed to generate correct links. For instance, the code below <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application',…
alicanerdogan
  • 1,837
  • 1
  • 12
  • 11
0
votes
2 answers

Rails 4.2 ActiveJob using Sidekiq jobs fail and then successfully retry on Heroku

Actual Result: We are getting failed mailer jobs showing up on sidekiq web UI ( using sidekiq-failures gem ) which get successfully retried after about a minute. Failure Error: ActiveRecord::RecordNotFound: Couldn't find User with…
Eric Steen
  • 719
  • 2
  • 8
  • 19
0
votes
2 answers

My Rails Tutorial (Chapter 7) Heroku deployment with puma keeps crashing

This is my first question here so I hope I'm within the rules. I've just completed Chapter 7 of the Michale Hartl Rails Tutorial. My sample_app works locally and has worked on Heroku until this point. At the end of the chapter is a section called…
Neil Wheatley
  • 71
  • 1
  • 10
0
votes
1 answer

rails ignores Gemfile

My Gemfile looks like this: source 'https://rubygems.org' ruby '2.2.2' gem 'rails', '~> 4.2.1' # a bunch of stuff that is commented out goes here group :production do # Use Postgres as the database for Active Record gem 'pg', '~> 0.18.1' #…
m81
  • 2,217
  • 5
  • 31
  • 47
0
votes
1 answer

Unicorn vs Puma in clustered mode

I've always used unicorn as my application server but relatively recently I noticed that puma now has the clustered mode, so I wonder if there is any reason to use puma in the clustered mode instead of unicorn considering that my code is not…
NoDisplayName
  • 15,246
  • 12
  • 62
  • 98
0
votes
1 answer

Jruby Heap Dump Failure

I am running an APP using Jruby and Puma. We have an issue with a potential memory leak and I would like to generate a heap dump so that I can debug. My local environment is running Linux Mint 17. I have run the following: jmap -histo:live 6450 and…
bkahler
  • 365
  • 4
  • 18
0
votes
0 answers

Does puma work or Windows or not?

I've been trying for several days now, but I always come back to the two links that tell me conflicting information. This link says that I just need backports to get puma to work (anything beyond simply installing, I can't seem to find either.) And…
Lantern
  • 1
  • 1
0
votes
3 answers

Deploying rails app basics

I've been self teaching myself ruby and rails for the past year and finally have an app ready that I want to deploy out to the world. While I can relatively easily deploy to Heroku, I would rather learn how to configure things myself but I have very…
xeroshogun
  • 1,062
  • 1
  • 18
  • 31
0
votes
0 answers

Having multiple Heroku Dynos - sometimes 1 of them is extremly slow in response

Ok, so here is our setup: We have 3 web-dynos running on Heroku with our rails application (rails with puma - we also tested unicorn). This app is connected to a postgresql DB which is quite strong (max pool_size of 120). We also tested 2 or 4…
Sascha Krause
  • 307
  • 1
  • 8
0
votes
1 answer

Heroku running rails 2.x Puma error

I'm getting the error below in my heroku logs. The Puma line and config file are the defaults as supplied by Heroku. Starting process with command bundle exec puma -C config/puma.rb invalid option: -C Has anyone seen this before?
RickR
  • 513
  • 4
  • 9
0
votes
1 answer

What's the difference between workers and threads on puma server

suppose there are 100 users on the site at the same time, What's the difference between the following settings Which setting is more sensible/practical ? Setting 1 workers Integer(ENV['WEB_CONCURRENCY'] || 10) threads_count = Integer(10) Setting…
newBike
  • 14,385
  • 29
  • 109
  • 192