-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
While running a production Rails 3.2 app in JRuby 1.7.10 with 100 concurrent requests I saw a lot of blocked threads waiting on the lock in VariableTableManager#initObjectId. It appears that Rails makes excessive use of object_id and this seems to be hurting concurrency.
I'm seeing the source of contention in a couple places. One that pops up a fair bit is ActionView's template cache:
https://github.com/rails/rails/blob/v3.2.16/actionpack/lib/action_view/template/resolver.rb#L70-L90
Another seems to be in the Rails router when generating routes for the path/url helper methods. It seems to be in the journey gem, although the call to object_id isn't immediately clear:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels