T
tshad
We are having quite a problem with the Connection Pool filling up. I have
tried restarting the website and IIS both and that doesn't seem to solve the
problem. I still have to wait until the Garbage Collector does its thing.
I would have thought by shutting down IIS and restarting it would free the
connections, but that doesn't seem to be the case.
I was told that I can help the situation by increasing the Pool size by
changing my Connection String from:
"Persist Security Info=False;Data Source=Interez;Initial
Catalog=InterezData;User ID=xxxx;Password=xxxx;"
To:
"Persist Security Info=False;Data Source=Interez;Initial
Catalog=InterezData;User ID=xxxx;Password=xxxx;Min Pool Size=5;Max Pool
Size=100;"
A couple of questions.
Why do I need this on my connection string? Doesn't this need to only be
set once? This string is called each time I access the database.
I was told the default was 40 - is that correct?
Why do I need the Min Pool size?
Also, what do I gain by using 100 instead of 300? Will that slow the
response down?
Thanks,
Tom
tried restarting the website and IIS both and that doesn't seem to solve the
problem. I still have to wait until the Garbage Collector does its thing.
I would have thought by shutting down IIS and restarting it would free the
connections, but that doesn't seem to be the case.
I was told that I can help the situation by increasing the Pool size by
changing my Connection String from:
"Persist Security Info=False;Data Source=Interez;Initial
Catalog=InterezData;User ID=xxxx;Password=xxxx;"
To:
"Persist Security Info=False;Data Source=Interez;Initial
Catalog=InterezData;User ID=xxxx;Password=xxxx;Min Pool Size=5;Max Pool
Size=100;"
A couple of questions.
Why do I need this on my connection string? Doesn't this need to only be
set once? This string is called each time I access the database.
I was told the default was 40 - is that correct?
Why do I need the Min Pool size?
Also, what do I gain by using 100 instead of 300? Will that slow the
response down?
Thanks,
Tom