The profiler tell you the time spent on what, so it a good start for code
improvement. But if you were not experimenting the slowmotion in other
configuration (other VM) it shouldn't be your code but uwsgi/nginx config
as stated by Niphold.

Richard


On Wed, Aug 20, 2014 at 10:17 PM, Cliff Kachinske <[email protected]> wrote:

> The install script in the book may not be correct for your version of
> Web2py.
>
> A good first step might be to check the script's config settings against
> the ones from the book.
>
>
> On Wednesday, August 20, 2014 4:49:28 PM UTC-4, Jim S wrote:
>>
>> I did this and after waiting 45 minutes and re-testing, it did not
>> exhibit the slow behavior.  Since this is a test without running
>> nginx/uwsgi I'm assuming my problem is in one of those layers.
>>
>> Also, I access the production site with http instead of https, the
>> slowness isn't there either.
>>
>> -Jim
>>
>> On Wednesday, August 20, 2014 2:26:35 PM UTC-5, Richard wrote:
>>>
>>> You can check that with profiler : python web2py.py -a 'asdf' -i
>>> 127.0.0.1 -p 8000 appname -F fileNameForProfilerDumpInfo'
>>>
>>> Your app will be very slow with profiler.
>>>
>>> Richard
>>>
>>>
>>> On Wed, Aug 20, 2014 at 3:24 PM, Richard Vézina <[email protected]>
>>> wrote:
>>>
>>>> Could your app take time to create global vars and after they are
>>>> cached up?
>>>>
>>>> Richard
>>>>
>>>>
>>>> On Wed, Aug 20, 2014 at 1:32 PM, Jim S <[email protected]> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> I've installed web2py on my ubuntu machine using the script at the
>>>>> bottom of this section in the book:
>>>>>
>>>>> http://web2py.com/books/default/chapter/29/13/deployment-recipes#Nginx
>>>>>
>>>>> It is all working well except for one annoyance.
>>>>>
>>>>> If I leave the let the page site for a while (haven't really
>>>>> determined the time period needed to display the behavior), when I come
>>>>> back later my first access to the application is really slow, like 10
>>>>> seconds to display the page.  But, after that, it clicks along with
>>>>> sub-second response time.
>>>>>
>>>>> Anyone have any idea what is going on or where to begin
>>>>> trouble-shooting?
>>>>>
>>>>> -Jim
>>>>>
>>>>> --
>>>>> Resources:
>>>>> - http://web2py.com
>>>>> - http://web2py.com/book (Documentation)
>>>>> - http://github.com/web2py/web2py (Source code)
>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "web2py-users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to