设置Jruby Min运行时发生了什么



我现在在轨道上挣扎。我们以前没有配置最小/最大Jruby运行时,门户网站运行良好。

在这些天,我发现设置这些配置将改善我们的门户网站的性能,因此我决定以这种方式进行配置:

config.webxml.jruby.min.runtimes = 2
config.webxml.jruby.max.runtimes = 4

但是,我们的门户无法在设置此设置后无法启动,日志继续投掷Java类找不到错误:

INFO: Info: received max runtimes = 4
Dec 19, 2012 1:57:18 PM org.apache.catalina.core.ApplicationContext log
INFO: Info: received min runtimes = 2
Dec 19, 2012 1:57:18 PM org.apache.catalina.core.ApplicationContext log
INFO: Info: received max runtimes = 4
Dec 19, 2012 1:57:18 PM org.apache.catalina.core.ApplicationContext log
INFO: An exception happened during JRuby-Rack startup
cannot link Java class com.portal.util.selector.SelectorUtil, probable missing dependency: Could not initialize class com.portal.util.selector.SelectorUtil
--- System
jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_35) [linux-amd64-java]
Time: Wed Dec 19 13:57:18 +0000 2012
Server: Apache Tomcat/6.0.35
jruby.home: file:/var/tomcat/webapps/ROOT/WEB-INF/lib/jruby-stdlib-1.6.1.jar!/META-INF/jruby.home

当我们设置此最小值/最大Jruby运行时有什么区别?有人可以让我摆脱困境吗?

预先感谢。

jruby线程安全比较

在config/warbler.rb

config.webxml.jruby.min.runtimes = 1
config.webxml.jruby.max.runtimes = 1

和在config/vromentments/production.rb

config.threadsafe!

最新更新