From owner-freebsd-questions@FreeBSD.ORG Thu Apr 9 18:58:03 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 493F5D1E for ; Thu, 9 Apr 2015 18:58:03 +0000 (UTC) Received: from smtp1.hushmail.com (smtp1.hushmail.com [65.39.178.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.hushmail.com", Issuer "smtp.hushmail.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 292FB75B for ; Thu, 9 Apr 2015 18:58:02 +0000 (UTC) Received: from smtp1.hushmail.com (localhost [127.0.0.1]) by smtp1.hushmail.com (Postfix) with SMTP id D4EEC40220 for ; Thu, 9 Apr 2015 18:58:01 +0000 (UTC) Received: from smtp.hushmail.com (w7.hushmail.com [65.39.178.32]) by smtp1.hushmail.com (Postfix) with ESMTP; Thu, 9 Apr 2015 18:58:01 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id 1B1E9401E3; Thu, 9 Apr 2015 18:58:01 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 09 Apr 2015 18:58:00 +0000 To: "Michael Schuster" , terje@elde.net, freebsd-questions@freebsd.org Subject: Re: Initial request to server extremely slow after longer periods of inactivity From: opendaddy@hushmail.com In-Reply-To: References: <20150409034121.7D7C720395@smtp.hushmail.com> <20150409113928.EE31F401E4@smtp.hushmail.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Message-Id: <20150409185801.1B1E9401E3@smtp.hushmail.com> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2015 18:58:03 -0000 It's probably not my DNS. From the NSD mailinglist: > On 9. april 2015 at 6:49 PM, "Ondřej Surý" wrote: > > if you run the daemon in any environment that is resource starved and > the process(es) gets swapped than anything will be slow on first request > after period of inactivity. Not just NSD and not just any DNS server, > but anything... I read somewhere that some people use a cron script to send a request to the webserver every so often. Is this something that everybody does but that I've somehow missed? Does it have a name? Thanks! O.D. On 9. april 2015 at 11:41 AM, "Michael Schuster" wrote: > >ok ... > >regards >Michael > >On Thu, Apr 9, 2015 at 1:39 PM, wrote: > >> Hello! >> >> On 9. april 2015 at 5:20 AM, "Michael Schuster" > >> wrote: >> > >> >Hi, >> > >> >at first glance, this sounds a bit like a paging/swapping issue >- >> >are other things active on that machine? >> >> Not really, no. >> >> I have 2GB memory (350MB in use) and 3GB swap (600MB in use). >> >> Thanks! >> >> O.D. >> >> > >> >regards >> >Michael >> > >> >On Thu, Apr 9, 2015 at 5:41 AM, wrote: >> > >> >> Hi! >> >> >> >> I'm running this Rails app on a DigitalOcean FreeBSD droplet. >> >Lately I've >> >> been experiencing extremely slow initial requests after longer >> >periods of >> >> inactivity. Subsequent requests are fine. >> >> >> >> At first I thought it was my PostgreSQL database or the Rails >> >app itself, >> >> but now I doubt that's the case as I just realized SSH >> >connections made >> >> simultaneously with those initial requests are equally slow. >> >> >> >> Has anybody ever encountered anything similar? >> >> >> >> Thanks! >> >> >> >> O.D. >> >> >> >> _______________________________________________ >> >> freebsd-questions@freebsd.org mailing list >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> >> To unsubscribe, send any mail to " >> >> freebsd-questions-unsubscribe@freebsd.org" >> >> >> > >> > >> > >> >-- >> >Michael Schuster >> >http://recursiveramblings.wordpress.com/ >> >> > > >-- >Michael Schuster >http://recursiveramblings.wordpress.com/