nailgun slows way down when
----------------------------
Key: JRUBY-1680
URL: http://jira.codehaus.org/browse/JRUBY-1680
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1b1
Environment: MacOSX 10.4.11, Java 1.5.07, JRuby trunk r5180
Reporter: Stephen Bannasch
Assignee: Thomas E Enebo
Having this set as a shell env parameter:
JRUBY_OPTS=-rubygems
somehow caused nailgun to slow way down.
Here's the test on a fresh trunk checkout r5180
After the first request nailgun speeds up fast:
{code}
$ cd ../test_jruby/
[~/dev/test_jruby]$ bin/jruby-ng-server&
[1] 2426
[~/dev/test_jruby]$ NGServer started on all interfaces, port 2113.
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello
real 0m9.721s
user 0m0.006s
sys 0m0.021s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello
real 0m0.619s
user 0m0.006s
sys 0m0.019s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello
real 0m0.254s
user 0m0.006s
sys 0m0.020s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello
real 0m0.177s
user 0m0.006s
sys 0m0.021s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello
real 0m0.205s
user 0m0.006s
sys 0m0.020s
{code}
This is part of what I do when I'm setting up the JRuby environment:
{code}
[~/dev/test_jruby]$ export JRUBY_HOME=`pwd`
[~/dev/test_jruby]$ export PATH=`pwd`/bin:$PATH
{code}
but it doesn't cause any problem
{code}
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello
real 0m0.167s
user 0m0.003s
sys 0m0.011s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello
real 0m0.183s
user 0m0.003s
sys 0m0.011s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello
real 0m0.158s
user 0m0.003s
sys 0m0.011s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello
real 0m0.173s
user 0m0.003s
sys 0m0.010s
{code}
there have been no gems installed yet
{code}
[~/dev/test_jruby]$ gem list --local
*** LOCAL GEMS ***
sources (0.0.1)
This package provides download sources for remote gem installation
{code}
I have also been setting and exporting: JRUBY_OPTS to -rubygems
{code}
[~/dev/test_jruby]$ export JRUBY_OPTS=-rubygems
{code}
now nailgun is slow
{code}
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello
real 0m6.551s
user 0m0.003s
sys 0m0.010s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello
real 0m4.439s
user 0m0.003s
sys 0m0.011s
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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