mv created Bug JRUBY-6686
Issue Type: Bug Bug
Affects Versions: JRuby 1.6.5
Assignee: Thomas E Enebo
Created: 25/May/12 8:01 PM
Description:

We have 50 threads writing into Solr server, using sunspot/rsolr gem. At peak we see 10-15 threads BLOCKED with exactly the same thread dump.

"pool-1-thread-6" prio=10 tid=0x00002aaab48ab000 nid=0x5ad8 waiting for monitor entry [0x0000000042540000]
java.lang.Thread.State: BLOCKED (on object monitor)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.getCompiledMethod(InvocationMethodFactory.java:245)

  • waiting to lock <0x00000000e5b7a0f0> (a org.jruby.util.ClassCache$OneShotClassLoader)
    at org.jruby.javasupport.util.RuntimeHelpers.constructSingletonMethod(RuntimeHelpers.java:1851)
    at org.jruby.javasupport.util.RuntimeHelpers.defs(RuntimeHelpers.java:376)
    at rubyjit.adapt_response_F74415CC503639C7FC52653D7CBFF09DABF3EBD9._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/rsolr-0.12.1/lib/rsolr/client.rb:109)
    at rubyjit.adapt_response_F74415CC503639C7FC52653D7CBFF09DABF3EBD9._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/rsolr-0.12.1/lib/rsolr/client.rb)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
    at rubyjit.request_1E5A19E2351C91975FDF3D07D7C107AA479CFBDD._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/rsolr-0.12.1/lib/rsolr/client.rb:35)
    at rubyjit.request_1E5A19E2351C91975FDF3D07D7C107AA479CFBDD._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/rsolr-0.12.1/lib/rsolr/client.rb)
    at org.jruby.ast.executable.AbstractScript._file_(AbstractScript.java:50)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:247)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:235)
    at rubyjit.update_49631488C89C161D2736DFDE1FE61EDA1FFF541B._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/rsolr-0.12.1/lib/rsolr/client.rb:22)
    at rubyjit.update_49631488C89C161D2736DFDE1FE61EDA1FFF541B._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/rsolr-0.12.1/lib/rsolr/client.rb)
    at org.jruby.ast.executable.AbstractScript._file_(AbstractScript.java:42)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
    at rubyjit.add_DC0FF86FCF4B163E0AB7BC064665FD7CAF21BDDF._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/rsolr-0.12.1/lib/rsolr/client.rb:46)
    at rubyjit.add_DC0FF86FCF4B163E0AB7BC064665FD7CAF21BDDF._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/rsolr-0.12.1/lib/rsolr/client.rb)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
    at rubyjit.add_documents_4A13E586C0536A9EDAFC4958CBF4E1C41FEA8C6F._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot-1.2.1/lib/sunspot/indexer.rb:101)
    at rubyjit.add_documents_4A13E586C0536A9EDAFC4958CBF4E1C41FEA8C6F._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot-1.2.1/lib/sunspot/indexer.rb)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
    at rubyjit.add_836074011F8AD71CA3F752D55508807D54B3B99D._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot-1.2.1/lib/sunspot/indexer.rb:26)
    at rubyjit.add_836074011F8AD71CA3F752D55508807D54B3B99D._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot-1.2.1/lib/sunspot/indexer.rb)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
    at rubyjit.index_2758BE562EA19C95BEE781D5E8DDD83836027E1D._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot-1.2.1/lib/sunspot/session.rb:91)
    at rubyjit.index_2758BE562EA19C95BEE781D5E8DDD83836027E1D._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot-1.2.1/lib/sunspot/session.rb)
    at org.jruby.ast.executable.AbstractScript._file_(AbstractScript.java:42)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:187)
    at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:176)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:182)
    at org.jruby.runtime.callsite.CachingCallSite.callVarargs(CachingCallSite.java:112)
    at rubyjit.index_A0DC255F75597C8B1B7C127E88E56820605233FE._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot-1.2.1/lib/sunspot/session_proxy/abstract_session_proxy.rb:15)
    at rubyjit.index_A0DC255F75597C8B1B7C127E88E56820605233FE._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot-1.2.1/lib/sunspot/session_proxy/abstract_session_proxy.rb)
    at org.jruby.ast.executable.AbstractScript._file_(AbstractScript.java:42)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
    at org.jruby.runtime.callsite.CachingCallSite.callVarargs(CachingCallSite.java:102)
    at rubyjit.index_29FE3C2DED1EB248BEA4475DD8DA1144D8CCA54B._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot-1.2.1/lib/sunspot.rb:175)
    at rubyjit.index_29FE3C2DED1EB248BEA4475DD8DA1144D8CCA54B._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot-1.2.1/lib/sunspot.rb)
    at org.jruby.ast.executable.AbstractScript._file_(AbstractScript.java:42)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
    at rubyjit.solr_index_3AF6AE0A696EC8BCA5CD78D6E7AB6BFCB259638D._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot_rails-1.2.1/lib/sunspot/rails/searchable.rb:349)
    at rubyjit.solr_index_3AF6AE0A696EC8BCA5CD78D6E7AB6BFCB259638D._file_(/opt/prod3.6.23/my_prod/3.6.0/tools/jruby/lib/ruby/gems/1.8/gems/sunspot_rails-1.2.1/lib/sunspot/rails/searchable.rb)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:166)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
    at rubyjit.run_EA4C9BF8BC3C28226E7DF8508250102FBEC897B8._file_(/opt/prod3.6.23/my_prod/3.6.0/my_prod/lib/tasks/reindex.rake:44)
    at rubyjit.run_EA4C9BF8BC3C28226E7DF8508250102FBEC897B8._file_(/opt/prod3.6.23/my_prod/3.6.0/my_prod/lib/tasks/reindex.rake)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
    at rubyjit.run_9ADBCC0D0F6D8A699AB3D5069FD80A8953C8F966.chained_0_rescue_1$RUBY$SYNTHETIC_file_(/opt/prod3.6.23/my_prod/3.6.0/my_prod/lib/jm/job_manager.rb:41)
    at rubyjit.run_9ADBCC0D0F6D8A699AB3D5069FD80A8953C8F966._file_(/opt/prod3.6.23/my_prod/3.6.0/my_prod/lib/jm/job_manager.rb:39)
    at rubyjit.run_9ADBCC0D0F6D8A699AB3D5069FD80A8953C8F966._file_(/opt/prod3.6.23/my_prod/3.6.0/my_prod/lib/jm/job_manager.rb)
    at rubyjit.run_9ADBCC0D0F6D8A699AB3D5069FD80A8953C8F966._file_(/opt/prod3.6.23/my_prod/3.6.0/my_prod/lib/jm/job_manager.rb)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:87)
    at Jm$$JobManager$$JRubyRunnable_723747887.run(Jm$$JobManager$$JRubyRunnable_723747887.gen:13)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Environment: jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [linux-amd64-java]
Project: JRuby
Priority: Major Major
Reporter: mv
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to