M
Marauderz
Hi guys, have a little weird scenario here.
I have a windows Service that's serving requets using multiple threads
created by the .Net threadpool. Within each thread they will create their
own Connection object and go off and do their thing, an insert, a Select and
the connection is closed.
The SQL Server which the service communicates with lies on a different
physical machine.
Now this service is basically hammered.. about 20 hits per second. And when
I run TCPView I see that a LOT of ports have been opened by my service to
connect to the SQL Server machine, wasn't connection pooling supposed to use
only one?
I decided to run some test myself and wrote a seperate test program that
just updates the database using threads created by the thread pool.
According to the performance monitor The connections that were created by
the threads all seem to fall under the non pooled thread category.
Does anyone have an explanation why the threads aren't pooled? And what I
should do to err.. correct this situation?
Thanks
I have a windows Service that's serving requets using multiple threads
created by the .Net threadpool. Within each thread they will create their
own Connection object and go off and do their thing, an insert, a Select and
the connection is closed.
The SQL Server which the service communicates with lies on a different
physical machine.
Now this service is basically hammered.. about 20 hits per second. And when
I run TCPView I see that a LOT of ports have been opened by my service to
connect to the SQL Server machine, wasn't connection pooling supposed to use
only one?
I decided to run some test myself and wrote a seperate test program that
just updates the database using threads created by the thread pool.
According to the performance monitor The connections that were created by
the threads all seem to fall under the non pooled thread category.
Does anyone have an explanation why the threads aren't pooled? And what I
should do to err.. correct this situation?
Thanks