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

问题描述

我为使用Play framework 1.x的客户端开发了一个应用程序,并在GAE上运行。该应用程序很好,但有时是疯狂的缓慢。加载简单页面大约需要30秒,但有时运行速度更快 - 无需更改任何代码。

有什么方法可以确定它运行缓慢的原因吗?我试图联系支持,但我找不到任何电话号码或电子邮件。此外,官方谷歌集团也没有回应。



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

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

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


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.

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.

解决方案

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 :) .

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应用引擎缓慢的原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 19:16
查看更多