找出 Google 应用引擎缓慢的原因 [英] Identify why Google app engine is slow

查看:25
本文介绍了找出 Google 应用引擎缓慢的原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为客户端开发了一个应用程序,该应用程序使用 Play 框架 1.x 并在 GAE 上运行.该应用程序运行良好,但有时速度非常慢.加载简单页面大约需要 30 秒,但有时它运行得更快 - 没有任何代码更改.

I developed an application for client that uses Play framework 1.x and runs on GAE. The app works great, but sometimes is crazy slow. It takes around 30 seconds to load simple page but sometimes it runs faster - no code change whatsoever.

有什么方法可以确定它运行缓慢的原因吗?我尝试联系支持人员,但找不到任何电话号码或电子邮件.google官方群也没有回复.

Are there any way to identify why it's running slow? I tried to contact support but I couldnt find any telephone number or email. Also there is no response on official google group.

你会如何解决这个问题?目前我的客户因为加载时间太慢而非常生气,但目前切换到其他提供商是最后的选择.

How would you approach this problem? Currently my customer is very angry because of slow loading time, but switching to other provider is last option at the moment.

推荐答案

使用 GAE Appstats分析您的远程过程调用.所有 RPC 都很慢(Google Cloud Storage、Google Cloud SQL 等),因此如果您可以减少 RPC 的数量或可以使用一些缓存数据结构,请使用它们 -> 您的应用程序会更快.但是您可以使用 appstats 查看哪些部分很慢,以及是否需要注意 :) .

Use GAE Appstats to profile your remote procedure calls. All of the RPCs are slow (Google Cloud Storage, Google Cloud SQL, ...), so if you can reduce the amount of RPCs or can use some caching datastructures, use them -> your application will be much faster. But you can see with appstats which parts are slow and if they need attention :) .

例如,我为我的应用程序创建了一个 Google Cloud Storage 缓存,并将执行时间从 2 分钟减少到 30 秒以下.RPC 是 GAE 中的瓶颈.

For example, I've created a Google Cloud Storage cache for my application and decreased execution time from 2 minutes to under 30 seconds. The RPCs are a bottleneck in the GAE.

这篇关于找出 Google 应用引擎缓慢的原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆