>Stephen Bannasch wrote:
>>At 6:39 PM -0600 12/5/07, Charles Oliver Nutter wrote:
>>>Stephen Bannasch wrote:
>>>>There's some problem with nailgun -- it's times are much slower than I 
>>>>expected -- the second request took 5s.
>>>Nailgun tends to speed up over a few runs; the first one or two are usually 
>>>slow for me as well.
>>>
>>>- Charlie
>>
>>There's something wrong then on my system: MacOS 10.4.11, Java 1.5.0_07.
>>
>>I started nailgun in another shell and then ran these tests. I don't see any 
>>speedup after the second run:
>
>Yes, that's very strange...here's results on my machine:
>
>~/NetBeansProjects/jruby $ ant jruby-nailgun
>Buildfile: build.xml
>
>compile.tasks:
>     [copy] Copying 1 file to 
> /Users/headius/NetBeansProjects/jruby/build/classes/jruby
>
>generate-method-classes:
>    [touch] Creating /Users/headius/NetBeansProjects/jruby/build/__empty.rb
>   [delete] Deleting: /Users/headius/NetBeansProjects/jruby/build/__empty.rb
>
>jruby-nailgun:
>    [mkdir] Created dir: /Users/headius/NetBeansProjects/jruby/build/nailmain
>    [javac] Compiling 1 source file to 
> /Users/headius/NetBeansProjects/jruby/build/nailmain
>   [jarjar] Building jar: 
> /Users/headius/NetBeansProjects/jruby/tool/nailgun/jruby-nailgun.jar
>
>BUILD SUCCESSFUL
>Total time: 10 seconds
>~/NetBeansProjects/jruby $ jruby-ng-server&
>[1] 8179
>~/NetBeansProjects/jruby $ NGServer started on all interfaces, port 2113.
>
>~/NetBeansProjects/jruby $ time jruby-ng -e "puts 'hello'"
>hello
>
>real    0m1.516s
>user    0m0.003s
>sys     0m0.013s
>~/NetBeansProjects/jruby $ time jruby-ng -e "puts 'hello'"
>hello
>
>real    0m0.274s
>user    0m0.003s
>sys     0m0.011s
>~/NetBeansProjects/jruby $ time jruby-ng -e "puts 'hello'"
>hello
>

What version of Java are you running? I'm running 1.5.0_07 on MacOS 10.4.11 -- 
but that shouldn't be the issue because I was getting times like yours about 3 
weeks ago.

After starting nailgun as a background process in the same shell I can see 
using ps aux that I have just one Java process running on my system. This is 
what the start command looks like:

/System/Library/Frameworks/JavaVM.framework/Home/bin/java -Xmx378m -Xss1024k 
-classpath 
.:/Users/stephen/dev/junit4.1::/Users/stephen/dev/jruby_trunk/jruby/tool/nailgun/jruby-nailgun.jar
 -Djruby.base=/Users/stephen/dev/jruby_trunk/jruby 
-Djruby.home=/Users/stephen/dev/jruby_trunk/jruby 
-Djruby.lib=/Users/stephen/dev/jruby_trunk/jruby/lib -Djruby.script=jruby 
-Djruby.shell=/bin/sh com.martiansoftware.nailgun.NGServer

My times are absurdly long

$ time jruby-ng -e "puts 'hello'"
hello

real    0m37.544s
user    0m0.004s
sys     0m0.017s
[~/dev/jruby_trunk/jruby]$ time jruby-ng -e "puts 'hello'"
hello

real    0m13.623s
user    0m0.003s
sys     0m0.011s
[~/dev/jruby_trunk/jruby]$ time jruby-ng -e "puts 'hello'"
hello

real    0m13.123s
user    0m0.003s
sys     0m0.011s

Does anybody else see the kind of behavior I'm reporting?

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to