Click here to Skip to main content
16,005,236 members
Home / Discussions / Database
   

Database

 
QuestionReg:Not Run SQL Server 2005 Tool in My System Pin
P.T.R.K8-Dec-06 19:12
P.T.R.K8-Dec-06 19:12 
AnswerRe: Reg:Not Run SQL Server 2005 Tool in My System Pin
Colin Angus Mackay8-Dec-06 23:33
Colin Angus Mackay8-Dec-06 23:33 
Questiondatagrid and database Pin
samita_friendly8-Dec-06 10:57
samita_friendly8-Dec-06 10:57 
AnswerRe: datagrid and database Pin
Muammar©8-Dec-06 22:58
Muammar©8-Dec-06 22:58 
GeneralRe: datagrid and database Pin
samita_friendly9-Dec-06 5:29
samita_friendly9-Dec-06 5:29 
GeneralRe: datagrid and database Pin
Muammar©9-Dec-06 20:35
Muammar©9-Dec-06 20:35 
GeneralRe: datagrid and database Pin
samita_friendly10-Dec-06 11:35
samita_friendly10-Dec-06 11:35 
QuestionConnection Pooling nightmare - Timeout Expired Pin
Guy Harwood8-Dec-06 10:45
Guy Harwood8-Dec-06 10:45 
In the 12 years ive been developing software ive never been so stumped on one issue for so long...

I took over the design of the companies web application from my boss.
I tidied up 75% of the code and now have a pretty tidy way of doing things as follows...

each page inherits a page called 'basePage', this has all the necessary functions in it for data manipulation, such as...
<br />
GetConnection() as SqlConnection (returns it unopened but populated with the connection string)<br />
GetDataTable(sql as string) as DataTable<br />
ExecuteQuery(sql as string) as integer<br />
etc...<br />


Recently we started getting "Timeout Expired" errors "while obtaining a connection from the pool".

Ive tried various extremities of parameters in the connection string such as "min pool size=5;max pool size=1000;connect timeout=90;". and have read numerous articles on the subject.

I have also turned off connection pooling entirely and still receive the same error (differing only by not mentioning "the pool").

Before you ask - yes, i am using try catch blocks in my basepage functions and always closing and disposing my objects in the finally block.

Today i received no less than 840 timeout error reports on the server in one hour - there was only 46 people using the application at the most within that hour.

The timeouts seem to happen all at once for a few minutes, like a big bottleneck. The server itself was running fine - not even brushing 50% cpu usage. But the web application itself would slow down quite badly, taking up to a minute to serve the page.

I set up some tracing and noticed that some pages made no less than 60 calls per page load to the GetConnection() method WTF | :WTF:

This is due to various business objects being called and checking data etc...

Before i even suggest that any of the business model be redesigned, id like to ask.. has anyone ever come across this type of situation before?
are most of you spitting coffee on your monitor over the 60 page calls like i nearly did? Sigh | :sigh:
or have you seen this before in big applications with many components?

Any help, comments or suggestions are welcomed.

Regards,
Guy

---Guy H (Wink | ;-) ---

AnswerRe: Connection Pooling nightmare - Timeout Expired Pin
Colin Angus Mackay8-Dec-06 13:11
Colin Angus Mackay8-Dec-06 13:11 
GeneralRe: Connection Pooling nightmare - Timeout Expired Pin
Guy Harwood8-Dec-06 13:25
Guy Harwood8-Dec-06 13:25 
GeneralRe: Connection Pooling nightmare - Timeout Expired Pin
S Douglas10-Dec-06 23:44
professionalS Douglas10-Dec-06 23:44 
GeneralRe: Connection Pooling nightmare - Timeout Expired Pin
Guy Harwood12-Dec-06 2:02
Guy Harwood12-Dec-06 2:02 
GeneralRe: Connection Pooling nightmare - Timeout Expired Pin
S Douglas12-Dec-06 2:12
professionalS Douglas12-Dec-06 2:12 
Questionerror 8624 ? Pin
alexrad8-Dec-06 8:48
alexrad8-Dec-06 8:48 
AnswerRe: error 8624 ? Pin
Colin Angus Mackay8-Dec-06 13:02
Colin Angus Mackay8-Dec-06 13:02 
AnswerRe: error 8624 ? Pin
albCode10-Dec-06 10:09
albCode10-Dec-06 10:09 
Questionms sql 2005 connection string and db file upload Pin
ullk8-Dec-06 8:45
ullk8-Dec-06 8:45 
AnswerRe: ms sql 2005 connection string and db file upload Pin
Colin Angus Mackay8-Dec-06 13:01
Colin Angus Mackay8-Dec-06 13:01 
QuestionUpdating many rows with ADO.net Pin
Drathmar8-Dec-06 5:46
Drathmar8-Dec-06 5:46 
QuestionHow to get 3rd Highest salary Pin
karam chandrabose8-Dec-06 5:33
karam chandrabose8-Dec-06 5:33 
AnswerRe: How to get 3rd Highest salary Pin
Parwej Ahamad8-Dec-06 5:50
professionalParwej Ahamad8-Dec-06 5:50 
AnswerRe: How to get 3rd Highest salary Pin
ednrgc8-Dec-06 8:49
ednrgc8-Dec-06 8:49 
GeneralRe: How to get 3rd Highest salary Pin
Pete O'Hanlon8-Dec-06 9:37
mvePete O'Hanlon8-Dec-06 9:37 
GeneralRe: How to get 3rd Highest salary Pin
Guy Harwood12-Dec-06 2:03
Guy Harwood12-Dec-06 2:03 
QuestionPopulating datas from Sql db to CSV file Pin
vijay_838-Dec-06 4:19
vijay_838-Dec-06 4:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.