负载下 Telerik.Web.UI.WebResource.axd 初始加载缓慢
我们使用 Telerik.RadScriptManager 根据页面上的控件动态注册资源。这些组合起来并作为所有 .js 文件的单个 .axd。只要页面上没有“重”负载,这种方法就可以正常工作。在负载下,Telerik.Web.UI.WebResource.axd 的初始加载需要长达 10 秒的时间,但随后重新加载页面是即时的(约 10 毫秒)。该文件大小约为 200kb,在 FireBug 中我看到浏览器“等待”请求。这种情况发生在每个用户/浏览器上,它不会在服务器上全局缓存。服务器CPU完全没有压力(<10%),那么瓶颈在哪里?什么需要这么长时间?有什么提示我可以进一步调查吗?
谢谢
更新: 将其范围缩小到 RadScriptManager EnableScriptCombine 功能。禁用此功能将不再对性能产生影响。但接下来我还有 20 个请求...... 有人知道如何加快速度吗?另一个想法是使用 RadScriptManager 生成/组合脚本,然后将其保存在页面旁边,因为它不会更改。
We're using the Telerik.RadScriptManager to dynamicly register resources depending on the controls on the page. These get combined and served as a single .axd for all .js files. This works fine as long there is no "heavy" load on the page. Under load the inital loading of the Telerik.Web.UI.WebResource.axd takes up to 10s, reloading the page afterwards however is instant (~10ms). The file is around 200kb in size and in FireBug i see the browser "waiting" for the request. This happens per user/browser, it isn't cached globally on the server. The server CPUs aren't stressed at all (<10%), so where is the bottleneck? What takes so long? Any hints where i could investigate this further?
Thx
UPDATE:
Narrowed it down to the RadScriptManager EnableScriptCombine feature. Disabling this and there is no performance impact anymore. But then I have 20 more requests...
Anyone an idea how to speed this up? Another idea would be to generate/combine the script with the RadScriptManager and then saving it next to the page as it won't change.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论