Mongrel very slow on Vista

1 view
Skip to first unread message

weepy

unread,
Oct 12, 2007, 3:32:00 PM10/12/07
to Ruby on Rails: Talk
Hi

I have a problem where mongrel on vista is veeeery slow. I've
confirmed in with two different computers running Vista.
Same code has no problem on XP or Linux.

Basically on both of my Vista instals, looking at "net" section of
firefox, I can see that it appears to take 1sec between each asset.

This seems really nuts. Has anyone else managed to get mongrel working
nicely with vista ?

Any help much appreciated.

Jonah (jo...@parkerfox.co.uk)

ch...@mowforth.com

unread,
Oct 12, 2007, 3:54:57 PM10/12/07
to Ruby on Rails: Talk
What does the log show when it handles a request? What version of ruby
are you running on Vista? Does it differ from that installed on the
other 2 OSes?

If it's just a ruby quirk, lighttpd & webrick should run pretty
smoothly. I'm guessing this may be some kind of threading problem?
[I'm assuming you're not using mongrel cluster].

I'm also guessing you're just using RoR in Vista for dev work or nerd
points, not as a production environment ;) so maybe falling back on
lighty for a while wouldn't do any harm?

weepy

unread,
Oct 12, 2007, 5:31:36 PM10/12/07
to Ruby on Rails: Talk
Well it seems v slow regardless of the version of ruby (tried a
couple).

Additionally - it seems that its only firefox that causes problems.
IE7 is fine.
FF starts ok and it seems to get progressively worse.

weepy

unread,
Oct 12, 2007, 5:37:00 PM10/12/07
to Ruby on Rails: Talk
In answer to your questions:

* Log looks fine, seems to run at expected speed - only the download
is the slow
* Ruby version = 1.8.6
* I've tried same thing with ruby 1,8,5
* Not using mongrel cluster
* correct about the dev work

> so maybe falling back on lighty for a while wouldn't do any harm?

not really - just the migration pain and the 'im used to mongrel'
part.

thanks for the feedback

Jonah

On Oct 12, 8:54 pm, "ch...@mowforth.com" <ch...@mowforth.com> wrote:

Daniel Waite

unread,
Oct 12, 2007, 7:20:59 PM10/12/07
to rubyonra...@googlegroups.com
weepy wrote:
> I have a problem where mongrel on vista is veeeery slow. I've
> confirmed in with two different computers running Vista.
> Same code has no problem on XP or Linux.

The problem's right in front of you: Vista.

Sorry, I just couldn't help myself. I started developing Rails apps on a
Vista box about three weeks ago and the experience has been nothing shy
of tortuous.

Anywho, I hope you get your issues resolved. Maybe try Leopard? =)
--
Posted via http://www.ruby-forum.com/.

weepy

unread,
Oct 12, 2007, 11:32:53 PM10/12/07
to Ruby on Rails: Talk
well it was all working well on XP and really it only seems to be
firefox on mongrel on vista that works badly.

so it's nearly there !!! but not quite !!

On Oct 13, 12:20 am, Daniel Waite <rails-mailing-l...@andreas-s.net>
wrote:
> weepy wrote:
> > I have a problem where mongrel onvistais veeeery slow. I've


> > confirmed in with two different computers runningVista.
> > Same code has no problem on XP or Linux.
>
> The problem's right in front of you:Vista.
>

> Sorry, I just couldn't help myself. I started developing Rails apps on aVistabox about three weeks ago and the experience has been nothing shy

Anthony Richardson

unread,
Oct 12, 2007, 11:53:19 PM10/12/07
to rubyonra...@googlegroups.com
weepy wrote:
> well it was all working well on XP and really it only seems to be
> firefox on mongrel on vista that works badly.
>
> so it's nearly there !!! but not quite !!
>
How is firefox performing with other websites hosted on the local
machine? maybe it's a resolving localhost issue? What are connection
settings in Firefox? Are you behind a corporate proxy? Is firefox going
out to that proxy then back to the local machine (i.e. do you need to
enable ignoring of proxy for localhost).

Anthony

weepy

unread,
Oct 13, 2007, 11:24:01 AM10/13/07
to Ruby on Rails: Talk
The same app works ok with webrick in Firefox

Connection settings are out of the box install. No proxies.

Very odd.

On Oct 13, 4:53 am, Anthony Richardson <anth...@viewpointsa.com>
wrote:


> weepy wrote:
> > well it was all working well on XP and really it only seems to be

> > firefox on mongrel onvistathat works badly.

Phil Thompson

unread,
Oct 13, 2007, 9:37:54 PM10/13/07
to rubyonra...@googlegroups.com
I've just noticed similar problems (I think). This is very wierd. I'm
running Vista x64 fully updated.

Works OK with:
Firefox, Webrick
IE, Webrick or Mongrel

NOT OK with:
Firefox, Mongrel

Thing is before I updated to the latest preview release of Rails
everything was running fine. Now however, long after mongrel has
finished firefox is still churning away.

I might switch back to a previous version of Rails to see if that really
is the problem as I've made a number of other changes but it's happening
on two different Rails apps I'm developing.

ch...@mowforth.com

unread,
Oct 15, 2007, 6:18:45 PM10/15/07
to Ruby on Rails: Talk
What happens if you spoof the FF user agent as, say, IE7?

If you open another tab in FF and go to about:config, is
"network.http.pipelining" set to true? if it is, try turning this off
or reduce the maxrequests.

Have you tried connecting to your app from a gecko-based browser on a
remote machine?

I'm just throwing ideas out here...!

weepy

unread,
Oct 16, 2007, 9:34:54 AM10/16/07
to Ruby on Rails: Talk
Thanks for the good ideas chris -- unfortunately I caved in, flattened
and installed XP !

Ill try them on another machine if i get a chance :)

On Oct 15, 6:18 pm, "ch...@mowforth.com" <ch...@mowforth.com> wrote:
> What happens if you spoof the FF user agent as, say, IE7?
>
> If you open another tab in FF and go to about:config, is
> "network.http.pipelining" set to true? if it is, try turning this off
> or reduce the
>

Phil Thompson

unread,
Oct 16, 2007, 9:54:59 AM10/16/07
to rubyonra...@googlegroups.com
Tried the user agent - nope
Pipelining is not enabled
Haven't tried the remote machine idea yet.
What a weird problem. Vista - Mongrel - Firefox.
Hey Weepy were you using the x64 version of Vista? That gives me an
idea. I'll try some other browsers (Opera perhaps) and also Firefox x64.
And I can't remember which version of IE I tried so I'll check out both
32/64 bit versions.

weepy

unread,
Oct 17, 2007, 8:45:01 AM10/17/07
to Ruby on Rails: Talk
Hi Phil

I was on 32 bit

> What a weird problem. Vista - Mongrel - Firefox.

Yes !!

I notice that mongrel 1.0.2 is out - perhaps this fixes ? though i
cant see it in the changelist.

On Oct 16, 9:54 am, Phil Thompson <rails-mailing-l...@andreas-s.net>
wrote:


> Tried the user agent - nope
> Pipelining is not enabled
> Haven't tried the remote machine idea yet.
> What a weird problem. Vista - Mongrel - Firefox.

> HeyWeepywere you using the x64 version of Vista? That gives me an

weepy

unread,
Oct 17, 2007, 9:00:01 AM10/17/07
to Ruby on Rails: Talk
also i was using rails 1.2.5 and have seen the same problem with 1.2.3
on another computer.


On Oct 16, 9:54 am, Phil Thompson <rails-mailing-l...@andreas-s.net>
wrote:

> Tried the user agent - nope
> Pipelining is not enabled
> Haven't tried the remote machine idea yet.
> What a weird problem. Vista - Mongrel - Firefox.

> HeyWeepywere you using the x64 version of Vista? That gives me an

Roger Pack

unread,
Oct 17, 2007, 11:17:33 AM10/17/07
to rubyonra...@googlegroups.com
does it work with FF on a different computer, acccessing mongrel there
on the local computer?
If not then use wireshark to see when the packets are coming in--i.e.
"is this FF or Mongrel that is erring"
also check the logs to see if anything looks suspiciously large, and, as
a last resort, look into rails/ruby profilers maybe.
GL
-Roger

weepy wrote:
> Hi Phil
>
> I was on 32 bit
>
>> What a weird problem. Vista - Mongrel - Firefox.
> Yes !!
>
> I notice that mongrel 1.0.2 is out - perhaps this fixes ? though i
> cant see it in the changelist.
>
>
>
> On Oct 16, 9:54 am, Phil Thompson <rails-mailing-l...@andreas-s.net>

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

Phil Thompson

unread,
Oct 17, 2007, 12:49:42 PM10/17/07
to rubyonra...@googlegroups.com
weepy wrote:

>
> I notice that mongrel 1.0.2 is out - perhaps this fixes ? though i
> cant see it in the changelist.

I did try 1.0.2 but the problem remained.


Thanks for suggestions Roger. I'll look into it.

weepy

unread,
Oct 17, 2007, 3:05:38 PM10/17/07
to Ruby on Rails: Talk
> a last resort, look into rails/ruby profilers maybe.

The problem was with static resources - so I guess this is a mongrel
problem rather than a rails problem.


On Oct 17, 11:17 am, Roger Pack <rails-mailing-l...@andreas-s.net>
wrote:

Roger Pack

unread,
Oct 17, 2007, 3:12:20 PM10/17/07
to rubyonra...@googlegroups.com
So I then wonder...
was IE requesting different files? Or the same files but then rendering
before the static files entered?
Why the difference between IE and FF? Interesting.
-Roger

weepy wrote:
>> a last resort, look into rails/ruby profilers maybe.
>
> The problem was with static resources - so I guess this is a mongrel
> problem rather than a rails problem.
>
>
> On Oct 17, 11:17 am, Roger Pack <rails-mailing-l...@andreas-s.net>

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

Marlon Moyer

unread,
Oct 17, 2007, 7:41:21 PM10/17/07
to rubyonra...@googlegroups.com
IE will try to pre-render the page while it's downloading, so a bad
resource isn't as noticeable. Firefox waits for the complete doc
before rendering certain elements such as tables and such.

weepy

unread,
Oct 19, 2007, 2:57:52 PM10/19/07
to Ruby on Rails: Talk
>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 !


On Oct 17, 7:41 pm, "Marlon Moyer" <marlon.mo...@gmail.com> wrote:
> IE will try to pre-render the page while it's downloading, so a bad
> resource isn't as noticeable. Firefox waits for the complete doc
> before rendering certain elements such as tables and such.
>

Miguel Castro

unread,
Oct 19, 2007, 3:03:12 PM10/19/07
to rubyonra...@googlegroups.com
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.

Roger Pack

unread,
Oct 19, 2007, 3:07:43 PM10/19/07
to rubyonra...@googlegroups.com
You could try evented mongrel, or try and find the bug for everyone :)

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 !

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

Flu...@gmail.com

unread,
Oct 30, 2007, 7:24:27 AM10/30/07
to Ruby on Rails: Talk
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...

Message has been deleted

Phil Thompson

unread,
Nov 1, 2007, 4:13:53 AM11/1/07
to rubyonra...@googlegroups.com
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.

Bret Simpson

unread,
Dec 17, 2007, 1:13:22 AM12/17/07
to rubyonra...@googlegroups.com
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.

Ryan Bigg

unread,
Dec 17, 2007, 1:18:50 AM12/17/07
to rubyonra...@googlegroups.com
This is going to sound like Windows bashing, but it's probably Vista :)

Have you tried other versions of Windows/other operating systems?
--
Ryan Bigg
http://www.frozenplague.net

Phil Thompson

unread,
Dec 17, 2007, 3:33:43 AM12/17/07
to rubyonra...@googlegroups.com
Ryan Bigg wrote:
> This is going to sound like Windows bashing, but it's probably Vista :)
>
> 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.

R. Elliott Mason

unread,
Dec 17, 2007, 5:51:14 AM12/17/07
to rubyonra...@googlegroups.com
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.

gemblon (t.b.)

unread,
Dec 17, 2007, 10:00:07 AM12/17/07
to rubyonra...@googlegroups.com

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.

Bret Simpson

unread,
Dec 17, 2007, 11:14:04 AM12/17/07
to rubyonra...@googlegroups.com
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 :P

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?

gemblon (t.b.)

unread,
Dec 17, 2007, 12:53:34 PM12/17/07
to rubyonra...@googlegroups.com

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


:)

Reply all
Reply to author
Forward
0 new messages