Asp.net页面急剧变慢并且PC被绞死 [英] Asp.net Page gets slow down drasticaly and the pc gets hanged

查看:46
本文介绍了Asp.net页面急剧变慢并且PC被绞死的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们托管了一个在线测试应用程序,该应用程序具有1秒钟的计时器,即使用户尚未完成测试,该应用程序也可以确保在测试结束时自动提交表格.

快速尝试进行测试时,该应用程序运行良好,15分钟后,该应用程序开始运行的速度越来越慢,甚至页面也无法滚动.

尽管它不会影响任何并行用户.

请帮忙.

We have hosted an online test application with a 1 sec timer that will ensure Auto submition of the form at the end of the test even if the user has''nt completed the test.

The application works perfectly when the test is attempted quickly , after 15 min the app starts going slower and slower that even the page do not scroll.

although It does not affect any parellel user.

Please help.

推荐答案

如果看不到代码,就不可能确切地说出问题所在,但是可能必须循环使用的浏览器数量越来越多.的资源.

您可以删除应该解决问题的循环,javaScript具有setTimeout方法(请参见 [^ ]).设置计时器,并在发生超时时调用回调函数,应将超时设置为15分钟.

最后,我怀疑您想要的可靠性能否实现.用户可能可以绕过15分钟的自动提交,因此您应该至少将时间戳记保留在后备存储上.
Without seeing the code it is impossible to say what is wrong exactly, but probably the loop you must have is possibly using increasing amounts of the browser''s resources.

You can remove the loop which should remove the problem, javaScript has a setTimeout method (see[^]). You set the timer and a callback function is called when the timeout happens, you should set the timeout to 15 minutes.

Finally, I doubt what you want can be acheived with total reliability. The user will probably be able to circumvent the 15-mins auto-submission, so you should keep timestamps on the backing store at the very least.


这篇关于Asp.net页面急剧变慢并且PC被绞死的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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