Reputation: 41
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
Upvotes: 4
Views: 419
Reputation: 4066
It shouldn't be that slow but I noticed your static file is using the default 10 minutes cache expiry time. You could set it to higher say 1 day to make use of the very fast edge cache for static files (if they don't need to be updated frequently)
Upvotes: 0