Mongrel very slow on Vista

You could try evented mongrel, or try and find the bug for everyone :slight_smile:

weepy wrote:

was IE requesting different files?
no

IE will try to pre-render the page while it’s downloading, so a bad resource isn’t as noticeable.
We’re talking 1 second per resource with say 40 resources. They seem
to load sequentially so the whole page load takes ~40s !

How about maybe you run it on real solid platform, you know, something
other
than vista. The moral of the story is, you sell your soul to devil and
eventually he comes for it.

Very helpful post Miguel…

Miguel, you know you’re not the first to come up with this really useful
suggestion. The great thing about it though is you can use it in any
situation. The only drawback, of course, is that it makes you sound like
an idiot.

Flugsio, thanks this fixed my problem. Much appreciated.

I too am running Vista with Instant Rails and am experiencing very slow
performance with Mongrel. Though not just serving web pages but the
startup time for Mongrel. After I select an app in instant rails and
select start with Mongrel, it can take up to 15 minutes until the
Mongrel server is ready for that app. Then delivering pages takes a
horrendously long time as well.

My setup: 2.4GHz Core 2 Quad w/ 4GB of ram; so I know the poor runtime
isn’t due to system specs.

I just wanted to post my issues here because I didn’t see anybody
mention the incredibly slow startup time for Mongrel through Instant
Rails.

I got this problem and I fixed it…

Open
C:\Windows\System32\drivers\etc\hosts

then remove the row with “::1 localhost”
its the IP6 adress

or u can try to go to 127.0.0.1:3000 instead…

This is going to sound like Windows bashing, but it’s probably Vista :slight_smile:

Have you tried other versions of Windows/other operating systems?

On Dec 17, 2007 4:43 PM, Bret S. [email protected]
wrote:

I just wanted to post my issues here because I didn’t see anybody
mention the incredibly slow startup time for Mongrel through Instant
Rails.

Posted via http://www.ruby-forum.com/.


Ryan B.

I am using Vista 64bit and can’t say I’m having any trouble. I am also
using Firefox. Mongrel is going about as fast as I’d expect it to, I
definitely would not describe it as slow. I’ve used Vista (both 32bit
and 64bit) and Mongrel throughout the year and never experienced any
unusual slowness. Currently using Mongrel 1.1.1.

Bret S. wrote:

I too am running Vista with Instant Rails and am experiencing very slow
performance with Mongrel. Though not just serving web pages but the
startup time for Mongrel. After I select an app in instant rails and
select start with Mongrel, it can take up to 15 minutes until the
Mongrel server is ready for that app. Then delivering pages takes a
horrendously long time as well.

My setup: 2.4GHz Core 2 Quad w/ 4GB of ram; so I know the poor runtime
isn’t due to system specs.

I just wanted to post my issues here because I didn’t see anybody
mention the incredibly slow startup time for Mongrel through Instant
Rails.

Bret, mine is less then 5 seconds, on less hardware and 1/2 the memory,
in instant rails. vista home premium.

i run ubuntu on the same machine, and it is a bit faster.

but there are times that ruby is just … slow. like something is eating
all my cpu cycles for about 10 to 15 seconds. this is after i took out
the anti virus, anti rootkit, anti spyware, instant messengers, and
all my girl friends pictures.

Ryan B. wrote:

This is going to sound like Windows bashing, but it’s probably Vista :slight_smile:

Have you tried other versions of Windows/other operating systems?

If it was Vista I think we’d hear about more people with problems.

Later versions of Mongrel fix the issue that started this thread. I’m
not sure what version of Mongrel ships with Instant Rails but try doing
“gem update mongrel”. You could also do “ruby script/server webrick” to
force the Webrick server to start instead of Mongrel. Do this to check
if it’s an issue with Mongrel.

I swear one day I will throw my computer out the window. So I tried
starting up the Mongrel server for an application 7 times yesterday,
with each time taking at least 1 minute for the server to start up,
sometimes up to 10. Before trying any ideas you all posted I gave it
one last shot and it starts up in about 5 seconds. I guess just
restarting my machine cleared any extra processes that would have been
bogging Instant Rails up. So thanks for the help and I’m glad I don’t
have to revert to XP cause Vista is pretty awesome, despite popular
belief :stuck_out_tongue:

Thanks all. Oh, and for the Apache server within Instant Rails to start
up I have to right click Instant Rails and select Run As Administrator,
this is normal correct?

Bret S. wrote:

I swear one day I will throw my computer out the window. So I tried
starting up the Mongrel server for an application 7 times yesterday,
with each time taking at least 1 minute for the server to start up,
sometimes up to 10. Before trying any ideas you all posted I gave it
one last shot and it starts up in about 5 seconds. I guess just
restarting my machine cleared any extra processes that would have been
bogging Instant Rails up. So thanks for the help and I’m glad I don’t
have to revert to XP cause Vista is pretty awesome, despite popular
belief :stuck_out_tongue:

Thanks all. Oh, and for the Apache server within Instant Rails to start
up I have to right click Instant Rails and select Run As Administrator,
this is normal correct?

click on properties, and check box under one of the tabs: run as
administrator.
then it does it automatically.

:slight_smile: