Azure VM上的问题:AZURE VM网络统计信息与LOCAL Server网络统计信息相对应 [英] Issues on Azure VM : AZURE VM network stats Vs LOCAL Server network stats

查看:70
本文介绍了Azure VM上的问题:AZURE VM网络统计信息与LOCAL Server网络统计信息相对应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想了解为什么我在Azure VM上网络运行缓慢? 我在这里错过了配置吗?我测试了网络统计数据vs 本地服务器,结果是azure VM更慢。为什么我会遇到这种问题?

I just want to understand why do im having network slowness on the Azure VM ?  did I missed a config in here ? I tested the network stats vs  local server and it turns out that azure VM is slower. why am i experiencing this kind of issue?

请参阅下面的图片。

Please see picture below.

对此提出任何建议。谢谢。

Appreciate any recommendation on this. thank you.

推荐答案

哪里是您的应用程序是否托管?

Where is your application hosted?

当您在本地部署应用程序并在本地访问它时,它会更快。

When you deploy an application locally and access it locally it will be faster.

在azure VM中部署相同的应用程序时它会慢一点,因为你的应用程序必须将js ans css文件从Azure VM下载到本地机器。

When you deploy the same app in azure VM and access it, It will be little slower because your application has to download the js ans css files from the Azure VM to the local machine.

当然,我们可以通过几个方案改进这种情况方式。

Of course, we can improve this scenario with couple of ways.

我们可以使用
Azure CDN
用于将静态文件(图像,javascript和css)和服务器托管给客户端。 

We can use a Azure CDN to host the static files(images, javascript and css) and server to the clients. 

我们需要增加Localserver中的加载时间同样。从你的屏幕截图中,它需要大约5秒,这是更高的一面。我们需要将其降低到2到3秒。 您可以在检查器中看到网络选项卡,并根据您可以优化的时间来检查哪个电话是
需要花费更多时间。

We need ti increase the loading time in Localserver as well. From your screenshot it takes around 5 seconds which is on the higher side. We need to bring that down to 2 to 3 seconds.  You can see the network tab in inspector and check which call is taking more time and based on that you can optimize.


这篇关于Azure VM上的问题:AZURE VM网络统计信息与LOCAL Server网络统计信息相对应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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