Nailgun failed on Windows7

Hi there,

I get errors when I tried jruby --ng-server on Windows7.

I can start the server fine:
C:\Users\Zemian>C:\apps\jruby-1.4.0\bin\jruby --ng-server
NGServer started on all interfaces, port 2113.

But when I try to run a client test:
C:\Users\Zemian>C:\apps\jruby-1.4.0\bin\jruby --ng -e “puts ‘hello’”

I get this on the server:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.DataInputStream.readFully(DataInputStream.java:178)
at java.io.DataInputStream.readFully(DataInputStream.java:152)
at com.martiansoftware.nailgun.NGSession.run(Unknown Source)

C:\Users\Zemian>C:\apps\jruby-1.4.0\bin\jruby -v
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java
HotSpot™ 64-Bit Server VM 1.6.0_17) [amd64-java]

Has anyone seen or tested this on Windows7?

Thanks
-Z
BTW, I have an “Intel Core 2 Duo E7500” CPU, but jruby -v says I have
“amd64”. Sounds weird. Any idea why?

Hi Zemian,

On Thu, Dec 24, 2009 at 6:49 AM, Zemian D. [email protected]
wrote:

I get errors when I tried jruby --ng-server on Windows7.

Has anyone seen or tested this on Windows7?

Yeah, I’m seeing the same thing here. Nailgun is just not stable for
some reason, especially for command line little things like jruby --ng
-e “…”.

When executing the file, it works better. I haven’t yet determined the
reason for the crashes. We probably should have an open bug for that.
Would you mind filing that?

And any further details and investigation is always welcome too. :slight_smile:

BTW, I have an “Intel Core 2 Duo E7500” CPU, but jruby -v says I have
“amd64”. Sounds weird. Any idea why?

Yes, you’re running x64-bit version of JDK and that’s how it is being
identified. That’s OK. But if you’d like to improve startup
performance of JRuby, then using a client VM instead of server x64 VM
would help. That’s actually reduce the startup pretty significantly.

If you already have 32 bit VM installed, just set the %JAVA_HOME% to
point to it. Otherwise, it is easy to download and install. Then, you
could switch between 32 bit VM and 64 bit VMs by changing %JAVA_HOME%
to your tastes.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email