开发者

ASP.Net increasing the server performance?

开发者 https://www.devze.com 2023-01-05 04:40 出处:网络
I have a user control in my page which is inside a update panel.By using the user control i am displaying a message for the user.I need to change the message every 5 min.The message is stored in the d

I have a user control in my page which is inside a update panel.By using the user control i am displaying a message for the user.I need to change the message every 5 min.The message is stored in the data base and the user control will retrieve the message from the database every 5 min once automatically. 开发者_Python百科 My problem is when there are more than 50 users accessing the same page then for every 5 min the request is sent from each client automatically to the server which decreases the server performance. So can anybody help me to resolve this performance issue.


Make use of the Cache object in the UI tier to load in the different texts. Only load it in on first request when needed.

have a user control in my page which is inside a update panel

Try to get rid of the updatepanel as it will always send back and forth the full viewstate of the page. Make use of ajax, script only instead in combination with a PageMethod or a service endpoint (.asmx or wcf).

Also measure where things are going slow. I like to use tools like YSlow and Sql Profiler to measure. ASP.NET also has the capability of tracing which you can turn on/off in the web.config.


Requests to server will always use up resources. It's a fact of life.

You don't say which server it is that has the performance problem, but if the message in the database is static, then why not load it into a cache on the application server so that each client doesn't make a request to the database?


You need to profile your application to find the performance bottleneck(s).

Seriously! Anything else is just guessing.

Even though it did not top the list, I recommend the EQATEC Profiler.


Update

Just thought I would point out that 50 concurrent users should be no problem for ASP.NET.

MySpace runs on ASP.NET with 2.3 million concurrent users and handles 1.5 billion page views every day.

0

精彩评论

暂无评论...
验证码 换一张
取 消