From owner-freebsd-questions@FreeBSD.ORG Fri Apr 10 16:26:40 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8F91758E for ; Fri, 10 Apr 2015 16:26:40 +0000 (UTC) Received: from smtp10.hushmail.com (smtp10.hushmail.com [65.39.178.143]) (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 710CBFED for ; Fri, 10 Apr 2015 16:26:40 +0000 (UTC) Received: from smtp10.hushmail.com (localhost [127.0.0.1]) by smtp10.hushmail.com (Postfix) with SMTP id 7E01EC0224 for ; Fri, 10 Apr 2015 15:56:27 +0000 (UTC) Received: from smtp.hushmail.com (w8.hushmail.com [65.39.178.52]) by smtp10.hushmail.com (Postfix) with ESMTP; Fri, 10 Apr 2015 15:56:27 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id 32DCCE0251; Fri, 10 Apr 2015 15:56:27 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 10 Apr 2015 15:56:26 +0000 To: "pathiaki2@yahoo.com" , freebsd-questions@freebsd.org Subject: Re: Initial request to server extremely slow after longer periods of inactivity From: opendaddy@hushmail.com In-Reply-To: <55271E4D.1090407@yahoo.com> References: <20150409034121.7D7C720395@smtp.hushmail.com> <20150409113955.B714D401E3@smtp.hushmail.com> <55271E4D.1090407@yahoo.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Message-Id: <20150410155627.32DCCE0251@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: Fri, 10 Apr 2015 16:26:40 -0000 On 10. april 2015 at 12:49 AM, "pathiaki2--- via freebsd-questions" wrote: > >Could this be a simple name resolution timeout issue? > >Check your /etc/resolv.conf file and comment out the first server >and >see if using the second server gets faster response. > >A simpler check would be to put the host that is connecting to the >machine IPs address in the /etc/hosts and turn off DNS resolution >in >/etc/nsswitch.conf. Thanks man, I'll give that a go and report back. O.D. > >P. >On 04/09/2015 07:39, opendaddy@hushmail.com 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/ >> _______________________________________________ >> 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" > >_______________________________________________ >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"