My website (www.nykidplaces.com) is hosted on Google App Engine.
Loading the homepage is sometimes very slow, 10 seconds or more. After some profiling, I've noticed that the problem is typically caused by loading a static file (css, javascript, or images). Most static files load quickly, but occasionally one random static file will load very slowly.
For example, this 4Kb file usually takes < 200ms to load, but occasionally takes much longer:
while true; do time wget http://www.nykidplaces.com/styles/toastr.css --quiet; done
real 0m0.163s
real 0m0.154s
real 0m3.335s slow
Any ideas about what could be causing this?
My .yaml file:
version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /images static_dir: images - url: /styles static_dir: styles - url: /javascript static_dir: javascript - url: /.* script: daycares.application libraries: - name: webapp2 version: latest - name: MySQLdb version: "latest" - name: jinja2 version: latest
while true; do time wget http://www.nykidplaces.com/styles/toastr.css --quiet; done
command for at least a minute on multiple VPS servers in US+EU and the response time never went abovereal 0m0.351s
with avg aboutreal 0m0.093s
. May be the problem is in your internet connection? – Mihail Russufor i in {1..100}; do /usr/bin/time -f "%e" wget www.nykidplaces.com/styles/toastr.css --quiet 2>&1 | grep "[1-9]\."; done
– Emily Eustisfor i in {1..100}; do (time wget www.nykidplaces.com/styles/toastr.css) 2>&1 > /dev/null |grep real; done | sort -r
and while most of the time the max would be about real 0m0.775s with min at real 0m0.090s, after running the command several times I did get 3-4 results ranging from real 0m1.097s to real 0m3.697s. Sorry, but I am not sure why that happens, I know this doesn't answer your question but considering that it took over 1 second only 4 times out of ~500 requests I don't think it's bad. – Mihail Russu