-
Notifications
You must be signed in to change notification settings - Fork 399
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
rack-mini-profiler causing app to freeze after one request #16
Comments
Can you try a different storage provider ? On Tue, Oct 22, 2013 at 11:28 PM, tylereaves notifications@github.comwrote:
|
I can try when I get home...it's running a totally vanilla install with no custom config though. I know Fedora runs SELinux, could that be interfering? |
I'm getting the same issue using the 'thin' and 'pg' gems:
After the first request:
|
Same result using MemcacheStore |
It seems to be working fine for me in a "simpler" Rails 4 app, so I wonder if it's a gem incompatibility issue. |
I think it must be...I did a clean and reinstalled my bundle and in quick testing it doesn't appear to hang. |
Not sure if this helps, but I use the following gem setup:
I got rid of all the comments and whatnot. I wonder if the 'exception_notification' or 'rest-client' gems have something to do with the crashes. |
I'm not using either of those gems, but I am using pg. On Wed, Oct 23, 2013 at 10:25 AM, Vilmos Csizmadia <notifications@github.com
|
Hmm, I use 'pg' with the Rails 4 app that seems to be functioning fine, so I don't think 'pg' is the culprit... I guess what I'll do is start disabling gems and attempt to isolate the one that interferes with 'rack-mini-profiler.' |
Ok, so it seems the issue pops up when the 'oj' gem is used, specifically when I have the following in application.rb: Oj.mimic_JSON() if defined?(Oj) |
Hey folks, please see ohler55/oj#106 for details about issues that can be encountered when |
is there a reason you need Oj.mimic_JSON ? isn't multijson enough? Its just too hard to support every monkey patch to the framework, though I would more that welcome a PR that fixes this. |
I think it's not working with thin 1.5.x. Thin 1.6.1 is OK and unicorn is OK(4.7.0). But with thin 1.5.1, I don't see any profiling thing on the returned page at first request, then the second request causes the rails process to use 100% CPU and never returns a response. PS:rails 3.2.11, ruby 1.9.3p448 Update: thin 1.3.1 also shows the same thing. And actually, after serving the first request, the rails process is already using 100% CPU and never goes down |
@SamSaffron - Agreed in most cases Going forward, users who want to use Again, I think you're probably correct, that for most people who aren't moving from the |
I'm getting the same issue on rails 4.1.5 and ruby 2.1.2. If I comment out the inclusion of the Unfortunately, oj recommends/requires mimic_json with rails >= 4.1:
|
+1, I'm having the same exact issue. I have
|
Me too, rails 4.1.9 and ruby 2.1.2. Gems:
|
This is still an issue for me as well... Any ideas on the root cause or a possible solution? |
same problem with rails 4.1.11. any workaround for this? anyone know if be a trouble use oj without oj_mimic_json? |
Closing as stale, please leave a comment if this is still something you would like to see addressed. |
Just built a new Fedora 19 system.
Rails 4.0.1rc2, Ruby 2.0p247
The very first request to my app (in development mode) works fine, all others fail, the rails process is deadlocked in a Futex. If I disable the rack-mini-profiler gem this doesn't happen.
Edit: Just tried with Rails 4.0.0, same behavior.
The text was updated successfully, but these errors were encountered: