我正在尝试并行处理JRuby循环中的处理(使用桃子),但在运行平稳约30秒后崩溃并发生const_missing错误:
lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:452:in `load_missing_constant'
lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:106:in `const_missing_with_dependencies'
lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:118:in `const_missing'
lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:463:in `load_missing_constant'
lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:122:in `const_missing'
我正在使用jrub 1.5.2:
C:\projects\sami\build>jruby -v
jruby 1.5.2 (ruby 1.8.7 patchlevel 249) (2010-08-20 1c5e29d) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_11) [amd64-java]
我已经设置了我的环境以启用多线程:
config.cache_classes = true
config.threadsafe!
config.dependency_loading = true if $rails_rake_task
我还能做些什么!?
TIA