如何提高Web应用程序的性能 [英] how to improve the performance of web application

查看:60
本文介绍了如何提高Web应用程序的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在C#.net中开发了一个Web应用程序并部署在客户端,但是当20个以上的成员在客户端使用该应用程序时,该应用程序变得很慢..因此,如何解决此问题...
请....任何人都知道解决方案....
请充分满足需求...

[edit]紧急情况已删除:这可能对您来说很紧急,但对我们而言并非如此.您所强调的紧迫性只是使我们认为您离开得太晚了,并希望我们为您做这件事.这使某些人烦恼,并且可能减慢响应速度. -OriginalGriff [/edit]

I have developed a web application in C#.net and deployed at client side,but when more than 20 members are using that application at client side, that application becoming slow.. so how to rectify this problem...
Please....any one know the solution for this ....
please do the need full......

[edit]Urgency deleted: It may be urgent to you, but it isn''t to us. All that your stressing the urgency does is to make us think you have left it too late, and want us to do it for you. This annoys some people, and can slow a response. - OriginalGriff[/edit]

推荐答案

.这非常紧急……
这对我们来说是一个周末.请考虑一下.

如何纠正此问题...
好吧,首先,您需要知道瓶颈在哪里(如果有的话).这就是说,应用程序花费最大时间的点-数据库,业务逻辑或UI呈现.

一旦发现最大时间花费在什么地方/什么地方,并导致较差的性能,请继续努力以改善它.

对于数据库-可能是查询,并且可以对SP进行微调.
对于BL-可能是可以重构的逻辑.
对于UI-可能会填充并呈现多余的东西,可以避免

最后,由于您说的是基于用户增量的性能下降,因此可能会在Session(Inproc)中保存大量重对象.随着用户的增加,Web服务器上的负载增加,因此延迟开始.如果是这样,则需要对其进行微调.减少会话负载.

开始....
.it is very urgent......
It''s a weekend for us. Please consider it.

how to rectify this problem...
Well, to start with you need to know where the bottle neck is, if any. This means, the point where maxmum time is taken by the application - database, business logic or UI rendering.

Once you find that what/where the maximum time is taken and that gives bad performance - work on that to improve it.

For DB - might be the queries and SP''s can be fine tuned.
For BL - might be the logic can be refactored.
For UI - might be extra things getting populated and rendered which can be avoided

Lastly, since you say based on user increment performance is dropping, it might happen that you are saving lots of heavy objects in Session (Inproc). As the users increase, the load is increased on the webserver and hence the delay starts. If so, you need to finetune it. Decrease the session load.

Start up....


可能有很多事情,从这样的描述中,我们怎么知道?

您需要确定问题出在哪里:Web服务器的互联网连接是否受到影响? Web服务器是否内存不足? CPU周期?是客户端连接吗?他们都在同一栋楼里,并且使用相同的互联网连接吗?是您的代码吗?

不了解其中至少一些,我们怎么知道?
It could be so many things, that from a description like that, how could we tell?

You need to work out where your problem is: Is the webserver internet connection suffering? Is the webserver running out of memory? CPU cycles? Is it the client connections? Are they all in the same building, and using the same internet connection? Is it your code?

Without knowing at least some of these, how could we tell?


这篇关于如何提高Web应用程序的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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