1. are you using connection pooling? make sure the connection string is exactly same, since the connection pooling is managed based on the connection string2. try to cache mostly readonly data in Application or Cache variables3. also readASP.NET Performance Monitoring, and When to Alert Administrators
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/monitor_perf.asp
Performance Tuning a .NET Framework Deployment
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/itsolutions/net/Maintain/PTuneNET.asp
for some tips on tuning ASP.NET performance

解决方案 »

  1.   

    是否设定了连接池,默认为true maxpooling=100;你可以增加到500或更高
      

  2.   

    is there a generic solution to your problem? probably not, since we have no idea what you are doing inside your code, you need to profile/monitor your app to find the problem
      

  3.   

    嗯……
    简单的说吧
    我现在也没找到问题所在
    只是想到可能会是性能的问题,如果能使用单一连接,我想性能会提升很多,但会引发其它问题,比如上面提到的Reader的问题,我想是否用DataSet代替就不会出现这样的问题,也就是说,是否可以使用单一连接同时打开多个DataSet
    谢谢
      

  4.   

    >>>近几天每天访问量为20万....如果能使用单一连接,我想性能会提升很多and you want to use 单一连接??? , all concurrent users will compete again that single connection, you will have more problems than you could imagine
      

  5.   

    我设定了Connection Reset=false,查到sp_reset_connection的调用没有了,这部分的开销减轻了,不过是否会出问题?
    我每次使用连接的时候都注意了连接的对象
      

  6.   

    关闭代码放在finally块中回收有时并不及时,不如用完后就手动Close掉。