Hey all,
I have two really weird performance issues that I can't seem to fix.
- With our rest api the first request is always slow (~1500ms) and all
subsequent requests are way faster (~200ms). They are the exact same
requests just with different data. When I stop making requests for
like 10 secs the first one is slow again. In a request 2 memcache
objects (<2kb) are fetched and returned.
- We have a django app that renders pages, and 80% of the time
rendering of the page takes ~2000ms. It fetches a list of objects and
it's template from memcache and outputs the page. Nothing fancy. What
I don't get is that when I profile the page, the profiles states I
only use 200ms
03-24 02:38AM 16.853 /<url> 200 801ms 1711ms-cpu 1kb Mozilla/5.0
(Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/528.16
(KHTML, like Gecko) Version/4.0 Safari/528.16,gzip(gfe)
80.56.5.134 - - [24/Mar/2009:02:38:17 -0700] "GET <url> HTTP/1.1" 200
1863 "<url>" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us)
AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16,gzip
(gfe)"
Profile data:
45653 function calls (44818 primitive calls) in 0.168 CPU
seconds
Ordered by: internal time
List reduced from 661 to 20 due to restriction <20>
ncalls tottime percall cumtime percall filename:lineno
(function)
7 0.043 0.006 0.043 0.006
{google3.apphosting.runtime._apphosting_runtime___python__apiproxy.Wait}
36/35 0.012 0.000 0.029 0.001 {__import__}
5 0.008 0.002 0.054 0.011 /base/python_dist/lib/
python2.5/pickle.py:839(load)
8662 0.006 0.000 0.006 0.000 {method 'read' of
'cStringIO.StringO' objects}
682 0.004 0.000 0.007 0.000 /base/python_dist/lib/
python2.5/pickle.py:977(load_binunicode)
838 0.003 0.000 0.007 0.000 /base/python_dist/lib/
python2.5/pickle.py:1166(load_long_binput)
1919 0.003 0.000 0.004 0.000 /base/python_dist/lib/
python2.5/struct.py:77(unpack)
813 0.003 0.000 0.005 0.000 /base/python_dist/lib/
python2.5/pickle.py:1147(load_binget)
3656 0.003 0.000 0.003 0.000 {isinstance}
1 0.003 0.003 0.114 0.114 /base/data/home/apps/
sofawebstore/1.332292765683284581/shop/views.py:50(browse)
1 0.003 0.003 0.005 0.005 /base/data/home/apps/
sofawebstore/1.332292765683284581/shop/views.py:1(<module>)
1 0.003 0.003 0.003 0.003 /base/data/home/apps/
sofawebstore/1.332292765683284581/shop/loader.py:1(<module>)
385/13 0.003 0.000 0.024 0.002 /base/data/home/apps/
sofawebstore/1.332292765683284581/models/base.py:199(toData)
2372 0.003 0.000 0.003 0.000 {repr}
3795 0.002 0.000 0.002 0.000 {method 'append' of
'list' objects}
1 0.002 0.002 0.008 0.008 /base/data/home/apps/
sofawebstore/1.332292765683284581/shop/urls.py:2(<module>)
288 0.002 0.000 0.006 0.000 /base/python_lib/
versions/1/google/appengine/api/datastore_types.py:1051
(ValidateProperty)
1001/751 0.002 0.000 0.005 0.000 {getattr}
511 0.001 0.000 0.003 0.000 /base/python_lib/
versions/1/google/appengine/ext/db/__init__.py:377(__get__)
430 0.001 0.000 0.003 0.000 /base/python_dist/lib/
python2.5/pickle.py:1161(load_binput)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---