I installed ruby on rails with the one-click-installer. When I do a
rails x or start the server, or make a controller etc basically anything
that requires ruby is VERY VERY VERY SLOW. I used to run this on my old
contoller which in comparison is much slowe and it would run these
things fast.
On this Core 2 Duo, with 2gbs of ram, the thing takes forever. I don’t
know if this is a ruby problem thats just recent but I mean usually it
takes a couple seconds but not something like a minute.
I’m running Windows inside of Parallels on a Macbook Pro and Rails is
plenty perky (I hand installed everything, but I don’t imagine it’s
much different).
it takes 1 one thousand 2 one thousand 3 one thousand. Said orally.
it takes 1 one thousand 2 one thousand 3 one thousand. Said orally.
Gee… So it has nothing to do with InstantRails.
On my machine, the first invocation (again, a Macbook Pro and
Parallels, so yours should be faster) took less than one second. All
subsequent ones were instant (the EXE was cached, I presume). If just
running ruby -v takes 3 seconds, it’s no wonder you’re not achieving
good performance starting a whole server.
I can tell you that a couple of old Dells I have lying around
gathering dust achieve good speed despite being pretty old
technology. If you lots of stuff in your working set, consider
shutting some of it down. This would be true on any machine. If
Windows indexing service is running, take it out in the yard and
shoot it. If you have Google Desktop installed, take it out in the
yard too. Do the same.
I don’t know what else to say. Running a command line tool like Ruby
should be pretty snappy.
Alright I made a mistake I did rails -v and that took 3 seconds. the
ruby -v was reallly quick. Hmm so it must be something with rails. Could
it be that when I installed the instant rails I had to go gem install
rails ? I had to cause it wasn’t recognizing any commands.
I’m running Windows inside of Parallels on a Macbook Pro and Rails is
plenty perky (I hand installed everything, but I don’t imagine it’s
much different).
Alright I made a mistake I did rails -v and that took 3 seconds. the
ruby -v was reallly quick. Hmm so it must be something with rails. Could
it be that when I installed the instant rails I had to go gem install
rails ? I had to cause it wasn’t recognizing any commands.
Are you by any chance running those projects off of a Windows (Samba)
network share?
That’s notoriously slow for Rails development.
Alright I made a mistake I did rails -v and that took 3 seconds. the
ruby -v was reallly quick. Hmm so it must be something with rails. Could
it be that when I installed the instant rails I had to go gem install
rails ? I had to cause it wasn’t recognizing any commands.
Are you by any chance running those projects off of a Windows (Samba)
network share?
That’s notoriously slow for Rails development.
Well actually thats how I did it. Your way I don’t use instant rails or
anything of the like. I installed the one click installer, then
installed rails with dependencies. For developement I use RadRails. But
in rad rails or in the console i get really bad times.
I used to do this in school(independent study) and the load times were
great, but now I have a idea for a website and want to use ruby to make
it. I have this computer thats loads better then the old one and its
terrible slow.
Do you think it would speed up if I told it only to use one core of my
core 2 duo?
It sounds to me like something else is going on.
Create a brand-new Rails application and start up the server
rails foo
cd foo
ruby script/server
Now open up the task manager so you can see the processes
Does the Ruby process consume a lot of RAM or use a lot of CPU?
Can you identify any other running programs such as virus scanners, etc
that
might be goofing with the process? I’ve seen some security suites cause
problems with the Ruby interpreter on Windows.
If you’re seeing scripts take 3 seconds to come up, that’s normal.
Anything
longer and there’s something really wrong with your machine.
Ruby on Windows is notoriously slower than on Mac or Linux, but it’s
manageable.
I would avoid InstantRails for development on Windows, personally. The
One-Click installer is perfectly fine.
Try this:
Delete c:\ruby
Install one cliick ruby installer (be sure to get the latest one)
After installation, open a new command prompt
Update rubygems
gem update --system
After that, install Rails
gem install rails --include-dependencies
Now run the Rails command
rails mytestapp
If you’re still experiencing problems, let me know. You might also be
interested in checking out the O’Reilly shortcut I wrote that details a
Windows installation.
Have you blown it all away and reinstalled like I suggested?
When you launch script\server… is there any other service that goes
nuts?
This is interesting to me… if you want to take the discussion off list,
contact me directly. I’ve not seen this problem before under these
specific
circumstances. Shoot me an email and I’ll help you troubleshoot it
further.
Have you blown it all away and reinstalled like I suggested?
When you launch script\server… is there any other service that goes
nuts?
This is interesting to me… if you want to take the discussion off list,
contact me directly. I’ve not seen this problem before under these
specific
circumstances. Shoot me an email and I’ll help you troubleshoot it
further.
Actually this time things worked better this is what I did.