JRuby ループ (peach を使用) で処理を並列化しようとしていますが、スムーズに実行して約 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
他に何ができる!?
ティア