# Speed

**URL:** <https://www.ruby-forum.com/t/speed/116880>\
**Category:** Rails\
**Created:** [October 10, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/speed/116880 "2007-10-10T18:53:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@Rav](https://www.ruby-forum.com/u/Rav)\
**Post date:** [October 10, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/speed/116880/1 "2007-10-10T18:53:33Z")

</div>

Hi!  
What can i do to speed up executing my Rails app on my personal PC at  
home on localhost? It’s really slllooooooow.  
I have Pentium 3GHz (1 core), 512MB RAM, Windows XP and i deploy my  
app as JRuby on GlassFish V3.  
Help please…

---

<div class="post-metadata">

**Author:** ![Rav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@Rav](https://www.ruby-forum.com/u/Rav)\
**Post date:** [October 10, 2007, 7:12pm UTC](https://www.ruby-forum.com/t/speed/116880/2 "2007-10-10T19:12:20Z")

</div>

On 10 Oct 2007, at 18:52, Rav wrote:

> What can i do to speed up executing my Rails app on my personal PC at  
> home on localhost? It’s really slllooooooow.  
> I have Pentium 3GHz (1 core), 512MB RAM, Windows XP and i deploy my  
> app as JRuby on GlassFish V3.  
> Help please…

Install Linux? (either by dual boot or just throw away windows)

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![Rav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@Rav](https://www.ruby-forum.com/u/Rav)\
**Post date:** [October 10, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/speed/116880/3 "2007-10-10T19:49:55Z")

</div>

no alternative idea?

---

<div class="post-metadata">

**Author:** ![Rav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@Rav](https://www.ruby-forum.com/u/Rav)\
**Post date:** [October 10, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/speed/116880/4 "2007-10-10T20:06:57Z")

</div>

Rav wrote:

> no alternative idea?

FreeBSD seems nice too…

You use an OS reputed to be bloatware and run a JVM (which isn’t reputed  
to be a lightweight piece of software either) to run Ruby on a 512MB  
system. What do you expect?

If you have money to spend, buy memory (but know that you won’t get the  
most out of your system if you don’t use Unix, Ruby on Windows is slow  
even if you use JRuby). If you only have time, install an OS that can be  
trimmed down easily, learn to use it and run bare Ruby on it. If you  
have neither, prey for a miracle.

Lionel

---

<div class="post-metadata">

**Author:** ![Rav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@Rav](https://www.ruby-forum.com/u/Rav)\
**Post date:** [October 10, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/speed/116880/5 "2007-10-10T21:36:22Z")

</div>

Boo to the naysayers. Windows works just fine for Rails development.  
Production deployment is also possible but there are many caveats.

My book outlines how to install everything on Windows to work just fine  
for  
development purposes.

You can get the PDF at [Rails on Windows [Book]](http://www.oreilly.com/catalog/railsonwindows/)

However, I cannot vouch for the performance of JRuby on Windows. I  
imagine  
that this additional layer might not work as well as standard Ruby.

Can you try deploying with the One click Ruby installer and Mongrel?  
This  
would allow you to determine if it’s JRuby.

---

<div class="post-metadata">

**Author:** ![Rav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@Rav](https://www.ruby-forum.com/u/Rav)\
**Post date:** [October 10, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/speed/116880/6 "2007-10-10T21:29:20Z")

</div>

Also, if you are running things in development mode, the files are  
reloaded each time a page is hit. In production these are loaded once  
and cached.

Lastly, I use NetBSD. But anything is better than windoze.

---

<div class="post-metadata">

**Author:** ![Rav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@Rav](https://www.ruby-forum.com/u/Rav)\
**Post date:** [October 10, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/speed/116880/7 "2007-10-10T22:20:21Z")

</div>

On 10/10/07, Rav [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi!  
> What can i do to speed up executing my Rails app on my personal PC at  
> home on localhost? It’s really slllooooooow.  
> I have Pentium 3GHz (1 core), 512MB RAM, Windows XP and i deploy my  
> app as JRuby on GlassFish V3.  
> Help please…

Add RAM before you try anything else. 512Mb is not enough to run all  
that.

---

<div class="post-metadata">

**Author:** ![Rav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@Rav](https://www.ruby-forum.com/u/Rav)\
**Post date:** [October 11, 2007, 6:50am UTC](https://www.ruby-forum.com/t/speed/116880/8 "2007-10-11T06:50:50Z")

</div>

I agree, definitely add more RAM. At least 1GB, even 2GB would be  
pretty inexpensive.

---

<div class="post-metadata">

**Author:** ![Rav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@Rav](https://www.ruby-forum.com/u/Rav)\
**Post date:** [October 11, 2007, 8:58am UTC](https://www.ruby-forum.com/t/speed/116880/9 "2007-10-11T08:58:41Z")

</div>

I use Rails on various systems and several XP among them.  
It works fine on all of them.  
Even I do not use JRuby the OS is no problem for RoR development.  
You should see what takes the most of the processing time from log  
times.  
Also you should measure how much resources are you taken from the  
system (task manager).  
Then you probably have a better view how is responsible for slowness.  
If you use NetBeans it is possible that you have not enough memory and  
than swapping is killing the performance.
