-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: Detected 21 Thread(s) started in app boot on Rails 5rc1 #991
Comments
OK, so I've now submitted a strikingly similar issue over at the Rails repo rails/rails#25259 since I'm not sure who's best placed to deal with it! |
@mathie could you gist the whole output, I want to see if the output is REALLY the same thing 21 times... |
Good call, there are a couple of exceptions: https://gist.github.com/mathie/28347310c600e0396568a79c61486099 Most are in Sorry, just to be a pain in the ass, this isn't exactly the same codebase as it was this morning -- I've been hacking on it all day -- and we're up to 25 mysterious threads now. 😄 |
Yes over at rails/rails#24990 (comment) The issue is that the Listen gem boots before the puma forks boot, so puma gives that warning. It's loosely related to a problem that i'm working on i.e. if we weren't booting before the workers get spawned then there wouldn't be an issue or a warning. I don't know if we'll be able to do that. I would say yes this is definitely under the rails/rails umbrella of things to worry about and not Puma, also this warning isn't something to be immediately concerned with right now. However you might want to subscribe to that linked thread |
@evanphx I'm starting puma with If I start it with This whole conversation should probably be going over to rails/rails. It's perhaps worth noting, though, that code reloading definitely isn't working for me with |
Scratch that thought: running |
In either case, code reloading (in development) works OK in single mode, but not in clustered mode... |
Not a puma issue at all. Let's close this thread. |
Hi,
I'm just spinning up a brand new Rails 5 project to try it out. It comes with puma by default (which is awesome, and saves me installing it later!). Straight out of the box, it works fine. Then I follow the Heroku guidelines for configuring it, which essentially to uncomment the following lines in
config/puma.rb
:Now when I boot the server, I get:
The bit that bothers me is the warning about multiple threads, in case that wasn't clear.
If I were to hazard a guess, I'd say whatever's new in Rails 5 that has introduced the dependency on
listen
is responsible for this, but I don't know what that is. I also don't know if it needs its threads restartedon_worker_boot
or whether Rails handles that correctly, automatically. It would be ace if, between you and the Rails team, you could figure out how to elide the warning. I don't like ignoring warnings!Having written this up, I suspect I should be submitting an issue to the Rails repo instead, but since it's now such little effort to do so, I'm going to flag it up here, too. 😄
The text was updated successfully, but these errors were encountered: