Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Connection Pooling Problem

Connection Pooling Problem

Scheduled Pinned Locked Moved Database
helpdatabasequestioncsharpasp-net
2 Posts 1 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    John Honan
    wrote on last edited by
    #1

    I have an ASP.NET application accessing a SQL Server database. Worked fine last night, this morning I am getting the following error continuously: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. at System.Data.SqlClient.SqlConnection.Open() at MyService.DataService.AuthenticateUser(String DomainUsername) in \\Eoctstliciis01\CREQSERVICE\DataService.asmx.vb:line 169 --- End of inner exception stack trace --- I have checked my code over and over again and I am closing/disposing of all connections as soon as I’ve finished with them. I’m the only person accessing the application at the moment, but I keep getting this error. I’ve checked Process Info / Current Activity in SQL enterprise manager, and there are a normal number of connections open. · How can I check or set the number of pooled connections I have available? · Is there a way of increasing the pool size? Any help would be much appreciated, as I'm currently in a state of panic! :eek: Thanks, John. www.silveronion.com[^]

    J 1 Reply Last reply
    0
    • J John Honan

      I have an ASP.NET application accessing a SQL Server database. Worked fine last night, this morning I am getting the following error continuously: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. at System.Data.SqlClient.SqlConnection.Open() at MyService.DataService.AuthenticateUser(String DomainUsername) in \\Eoctstliciis01\CREQSERVICE\DataService.asmx.vb:line 169 --- End of inner exception stack trace --- I have checked my code over and over again and I am closing/disposing of all connections as soon as I’ve finished with them. I’m the only person accessing the application at the moment, but I keep getting this error. I’ve checked Process Info / Current Activity in SQL enterprise manager, and there are a normal number of connections open. · How can I check or set the number of pooled connections I have available? · Is there a way of increasing the pool size? Any help would be much appreciated, as I'm currently in a state of panic! :eek: Thanks, John. www.silveronion.com[^]

      J Offline
      J Offline
      John Honan
      wrote on last edited by
      #2

      Following up on this problem, I think there was an issue with the server I was running this on. I moved the code to my local IIS server and it works fine. I discovered that PerfMon lets me view the number of connection pools being used. .NET CLR Data / SQLClient:Current # pooled connections. However – I did some testing by leaving connections open on purpose, the app falls over when it reaches 100 (as expected), but the pooled connection counter never seems to reset back to zero, even when I stop/start IIS. This may be related to the following: BUG: SqlClient Performance Counters Do Not Reset ID: Q314429 http://support.microsoft.com/default.aspx?scid=kb;en-us;Q314429 I found this on a google search, but the KB Article no longer exists – So I don't know if Q314429 is still an issue Is there a more reliable way to monitor the number of pooled connections? Thanks, John. www.silveronion.com[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups