Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / October 2005

Tip: Looking for answers? Try searching our database.

CLR thread blocked?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
marvind - 04 Oct 2005 22:08 GMT
Hi,

I have a .NET application that spawns a lot of threads that are then
executed according to availability of threads in the thread pool. In
each thread I query a database and then write results to disk to
separate files. Typically I have no problems, however, when I try to
run this application against say 500 databases on 100 servers, I notice
that one or two threads appear to freeze. Even when the main thread
that spawns all these other threads exits after timing out, the threads
are never returned to the threadpool ever. Looking at all my printed
messages, I do not understand why they are blocked - i.e., they are
explicitly waiting for a resource that I know of and should actually be
good to exit.

Could someone point me to a debugging or profiling tool that would
enable me to locate the source of this problem?

Thanks
john conwell - 05 Oct 2005 18:37 GMT
without looking at any code, my first guess might be with a db connectionpool
issue.  you might be maxing out the connection poos on a sqlserver and the
Connection Open function is hanging...maybe possiblly causing a deadlock.  
like i said, its hard to say without seeing your code

> Hi,
>
[quoted text clipped - 14 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.