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

New rails project with MRI Ruby2 or JRuby 1?

I am new to Ruby on Rails and beginning a project soon. Having read about different Ruby implementations, I am wondering which setup to use. My project is expected to have a fair amount of traffic. I am considering two optiosn: MRI Ruby (v 2.0) and…
soupdiver
  • 3,504
  • 9
  • 40
  • 68
0
votes
1 answer

Using Puma and JRuby without threadsafe Rails application

I've built my application using MRI without taking into consideration threads or concurrency, and so the application is most definitely not threadsafe (many of dependencies certainly not). My question is could I still port this to JRuby and use Puma…
Damien Roche
  • 13,189
  • 18
  • 68
  • 96
0
votes
1 answer

Puma is using one process most of the time

I configured puma to use 3 processes and 1 thread. In application I am currently checking I have one really long request (~60 s). Problem is that puma is using mostly one process to run requests. So, I have: p - puma main process p1 - puma process…
Sławosz
  • 11,187
  • 15
  • 73
  • 106
0
votes
1 answer

Maximum connections count on puma server

Is this possible to specify maximum connection on puma wev server (like in thin etc?). I need to test if this is reason of 502 that comes on some configuration with nginx+puma.
Sławosz
  • 11,187
  • 15
  • 73
  • 106
0
votes
2 answers

Websphere Portal 8 login service check existing password correct

I have a portlet that is used to change the password of the logged in user. The user has to enter their current password and a new password twice. It calls the LoginService.checkPassword(String userId, char[] password) to determine if the existing…
zargarf
  • 633
  • 6
  • 18
0
votes
2 answers

puma hot restarting on_restart function: necessary for Rails apps?

In the configuration file example for Puma, it says the following for the on_restart function: Code to run before doing a restart. This code should close log files, database connections, etc. Do I need to implement this for a Rails app, to close…
Mohamed Hafez
  • 8,621
  • 7
  • 41
  • 49
0
votes
1 answer

concurrent handling in thin, unicorn, puma, webrick

If I have the following action in a controller def give_a print a a = a+1 end What happens in each webserver when a request comes and when multiple requests are recieved? I know that webrick and thin and single threaded so I guess that means that…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
0
votes
1 answer

Login User into Websphere Portal without password using PUMA

I want to use facebook to login into Websphere Portal. I use facebook ID to retrieve LDAP uid, but cannot get password. What API can I use to login to portal without password? Here is my code: Context ctx = new InitialContext(); PortletServiceHome…
0
votes
1 answer

How to configure PUMA for SSL on JRUBY

I have a jruby rails app that is working fine with Puma without SSL. According to Puma's wiki, I have to provide a certificate file and a key file. I got my cert file from GoDaddy and since I am on osx, I extracted the private key from the cert…
user1742938
-1
votes
1 answer

Unable to generate logs after running rails s

After running the rails s i cannot see logs on the terminal the code is working properly without any issue. The logs are getting generated logs/development.log file As there are no logs i am unable to use debugger => Booting Puma => Rails 5.2.3…
-1
votes
1 answer

Rails / Puma (systemctl) / Fog worker issue

I am running ruby "3.1.1", rails (7.0.3.1), fog-aws (3.14.0), fog-core (2.3.0) and I start puma using systemd. Requests come in through AWS ALB 443 -> 80. Since implementing the fog-aws Gem my puma_access.log just keeps writing: [31723] ! Unable to…
Ruby Dev
  • 63
  • 6
-1
votes
2 answers

Is there a way to stop a Puma/Rack server on a HTTP request?

I have a Ruby app (written in Roda, running as a Rack app on Puma) which I want to be able to stop on a click of a button in the browser - basically to stop the server on request. What would be a good way to do that?
art-solopov
  • 4,289
  • 3
  • 25
  • 44
-1
votes
2 answers

Cron doesn't run Rails Puma server automatically in Ubuntu

I deployed a Rails application in Digital Ocean Ubuntu Server using Capistrano. For some reason the puma server suddenly stops. I'm not sure what's the reason. That's why I created a script /home/deploy/startup-script.sh the script contains the…
AllenC
  • 2,754
  • 1
  • 41
  • 74
-1
votes
1 answer

How can I found out were my ROR app is getting its ENV variables

I took over a ROR app and I have changed ENV vars in local_env.yml and in .env to point to a new MongoDB server on MongoDB Atlas and away from MLab.However, the app is still hitting the db on MLab. So I also did the following: I checked the…
jdog
  • 10,351
  • 29
  • 90
  • 165
-1
votes
4 answers

Cannot kill process on port 3000

I cannot seem to figure out how to kill this process. I already know that i can, and have been, just running the server on a different port, but it's just annoying me that i can't figure this out. Below you'll see first the error i get when i try…
jd2rogers2
  • 21
  • 1
  • 5
1 2 3
81
82