Initial request to server extremely slow after longer periods of inactivity

opendaddy at hushmail.com opendaddy at hushmail.com
Fri Apr 10 16:26:40 UTC 2015


On 10. april 2015 at 12:49 AM, "pathiaki2--- via freebsd-questions" <freebsd-questions at freebsd.org> 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 at hushmail.com wrote:
>> Hello!
>>
>> On 9. april 2015 at 5:20 AM, "Michael Schuster" 
><michaelsprivate at gmail.com> 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, <opendaddy at hushmail.com> 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 at freebsd.org mailing list
>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>>> To unsubscribe, send any mail to "
>>>> freebsd-questions-unsubscribe at freebsd.org"
>>>>
>>>
>>>
>>> -- 
>>> Michael Schuster
>>> http://recursiveramblings.wordpress.com/
>> _______________________________________________
>> freebsd-questions at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-
>unsubscribe at freebsd.org"
>
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-
>unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list