Forum: Ruby on Rails site takes a while to load after first visit in a while

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
38a8230ed3d5c685558b4f0aad3fc74b?d=identicon&s=25 Joe Van Dyk (Guest)
on 2005-12-15 20:37
(Received via mailing list)
Using lighttpd + fcgi to power a site.  When no one has accessed it in
a while, the first visit to the page takes a while to load up.  Then
subsequent visits are fairly fast.

Any ideas on how to fix it?
8e44c65ac5b896da534ef2440121c953?d=identicon&s=25 Ezra Zygmuntowicz (Guest)
on 2005-12-15 20:58
(Received via mailing list)
On Dec 15, 2005, at 11:36 AM, Joe Van Dyk wrote:

> Using lighttpd + fcgi to power a site.  When no one has accessed it in
> a while, the first visit to the page takes a while to load up.  Then
> subsequent visits are fairly fast.
>
> Any ideas on how to fix it?
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>

Joe-

	I have seen this problem in an older version of lighty and the way I
solved it is kinda kludgy but it works well. Just make a cron job to
fetch a page every so often and send the results to /dev/null .


Cheers-

-Ezra Zygmuntowicz
Yakima Herald-Republic
WebMaster
http://yakimaherald.com
509-577-7732
ezra@yakima-herald.com
38a8230ed3d5c685558b4f0aad3fc74b?d=identicon&s=25 Joe Van Dyk (Guest)
on 2005-12-15 21:23
(Received via mailing list)
On 12/15/05, Ezra Zygmuntowicz <ezra@yakimaherald.com> wrote:
> solved it is kinda kludgy but it works well. Just make a cron job to
> fetch a page every so often and send the results to /dev/null .

Here's what I'm using:

joevd@bidwell$ lighttpd -v

lighttpd-1.4.8 (ssl) - a light and fast webserver
Build-Date: Nov 26 2005 01:11:05

Seems pretty recent to me.
01d7a451018ac15518f425078ef00c40?d=identicon&s=25 Phillip Hutchings (Guest)
on 2005-12-15 21:29
(Received via mailing list)
On 16/12/2005, at 9:20 AM, Joe Van Dyk wrote:

> Here's what I'm using:
>
> joevd@bidwell$ lighttpd -v
>
> lighttpd-1.4.8 (ssl) - a light and fast webserver
> Build-Date: Nov 26 2005 01:11:05
>
> Seems pretty recent to me.

How much RAM does the machine have and how much of it is used? Rails
apps sit idle when they're not being used, so the OS might well swap
it all out to disk. I see that a lot on my old test machine ;)


--
Phillip Hutchings
phillip.hutchings@sitharus.com
8e44c65ac5b896da534ef2440121c953?d=identicon&s=25 Ezra Zygmuntowicz (Guest)
on 2005-12-15 21:32
(Received via mailing list)
On Dec 15, 2005, at 12:20 PM, Joe Van Dyk wrote:

>>
> Build-Date: Nov 26 2005 01:11:05
>
> Seems pretty recent to me.
>

Well yep thats the latest. I used to have the same problem on 1.3.16
or something and the earliest 1.4.x version. biut I haven't had the
problem or been able to reproduce it recently.

Cheers-
-Ezra Zygmuntowicz
Yakima Herald-Republic
WebMaster
http://yakimaherald.com
509-577-7732
ezra@yakima-herald.com
38a8230ed3d5c685558b4f0aad3fc74b?d=identicon&s=25 Joe Van Dyk (Guest)
on 2005-12-15 23:15
(Received via mailing list)
On 12/15/05, Phillip Hutchings <sitharus-rails@sitharus.com> wrote:
> > Seems pretty recent to me.
>
> How much RAM does the machine have and how much of it is used? Rails
> apps sit idle when they're not being used, so the OS might well swap
> it all out to disk. I see that a lot on my old test machine ;)

4 gigabytes.  Not sure how much is in use.  It's on one of TxD's shared
servers.
This topic is locked and can not be replied to.