Forum: JRuby Jruby 1.7.4 with RoR on Windows

A8f7c2b66fafa83e9537c1f82348f11d?d=identicon&s=25 Doug Hathaway (Guest)
on 2013-05-31 00:26
(Received via mailing list)
I wanted to share my experience upgrading to Jruby 1.7.4 from Jruby
for our Ruby on Rails 3.1 application that is deployed onto Windows


My company has developed a check payment processing solution from using
Ruby on Rails. We host our own instance of the application but the
of the deployments are in-house at various financial institutions.  The
requirement for Windows is coming from these in-house deployments. We
experimented with MRI for windows with limited success, eventually
for Jruby for deployment. We started on Jruby 1.5.x about two years ago.


We use warbler to generate a ROOT.war file that gets deployed via Tomcat
running as service  on the windows machine. We have 2-5 resque workers
running as services as well on the server, they connect to a native
redis build ( Weve considered full
stack deploy solutions (i.e. TorqueBox) but prefer the flexibility of
warbler and really like resque/sidkiq.

We were stuck on 1.6.7 for a year or so as upgrading to 1.7.x cause the
following issues:


   Unreliable rake assets:precompile

   Odd rails console issues in windows

   Gem incompatibilities

We werent thrilled with the speed of 1.6.7, but it was our only option
a while. We would get customer complains of slowness often and had to
compensate with more server CPUs.

I would test each 1.7.x with eager anticipation to see if these issues
fixed. Im happy to say that 1.7.4 resolved them all (mostly).

*With 1.7.4 we have:*


   Very reliable rake assets:precompile, its actually faster than 1.6.7

   Approx 30% speed increase in rendering HAML templates

   Better 1.9.3 compatibility

Windows rails console issues were more of a Windows problem, probably
best explained in my stackoverflow answer:

We had a minor issue with the cocaine + paperclip gems that required us
fork paperclip. From what I can tell, $? (current thread variable) is
getting set to nil if you try to execute a system command that does not
exists (i.e. file not found in Windows). I can open an issue for this

Overall our system is much more responsive now with the average request
time dropping 20% to 30%. Weve deployed to 4 customer sites and the
feedback has been overwhelmingly positive. We are in the process of
migrating from reque to sidekiq now, as sidekiq requires 1.7.x.

Anyway, this deployment scheme has been my world for a while now so if
have any questions with on Jruby Windows deployment similar to what I
described, feel free to shoot them at me. * A big thanks to the Jruby
contributors for this 1.7.4 release!*
2c0c4cf3ccc8da22f7c3b9586ce1cd70?d=identicon&s=25 Christian MICHON (Guest)
on 2013-05-31 10:33
(Received via mailing list)
I wish to point out that on your stackoverflow answer, on Windows:
'Tab completion and arrow keys get fixed by setting :USE_READLINE to
does not solve the issue reported on Jira (

Now this bug is marked as fixed by moving readline out of jruby.jar, but
location of a preliminary gem demonstrating this has been shared yet.

Charles: do you have such location?
2c0c4cf3ccc8da22f7c3b9586ce1cd70?d=identicon&s=25 Christian MICHON (Guest)
on 2013-05-31 10:54
(Received via mailing list)

Apparently latest 1.7.5 snapshot of jruby-complete found on has this fixed indeed.

Waiting impatiently for 1.7.5 official release then. Jira 6996 is indeed

On Fri, May 31, 2013 at 10:30 AM, Christian MICHON <
Ea226658f8ad0257d7d032d9631a0718?d=identicon&s=25 Brian Walsh (bwalsh)
on 2013-05-31 17:37
(Received via mailing list)
Guys: thanks for fixing that scroll problem on Windows!
E7c7994ff4ebe7b1ee5af40989c0dad4?d=identicon&s=25 Tcp IPMEN (tcpipmen)
on 2013-07-09 19:03
@Doug Hathaway, I have an issue with paperclip & jruby 1.7.4 on windows.
Please let me know how you was able to fix $? (current thread variable)
issue?  I have a same problem.  Many thanks,
A8f7c2b66fafa83e9537c1f82348f11d?d=identicon&s=25 Doug Hathaway (Guest)
on 2013-07-09 19:20
(Received via mailing list)
Sure, here is a brief gist of the workaround:
E7c7994ff4ebe7b1ee5af40989c0dad4?d=identicon&s=25 Tcp IPMEN (tcpipmen)
on 2013-07-09 19:57
Thank you very much.  I still get an error "undefined method
`exitstatus' for nil:NilClass".  Do you need to define path like
"Paperclip.options[:command_path] = 'C:\Program

What version of paperclip you have?
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.