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 / .NET SDK / May 2005

Tip: Looking for answers? Try searching our database.

Thread.Sleep never returns (hangs?)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeremy Chapman - 20 Apr 2005 17:49 GMT
We have a thread running in our application, it runs a while loop that does
some minor things then sleeps for 15 seconds and continues the loop.  This
application runs 24 hours every day, but some nights the Thread.Sleep(15000)
call never returns.  Not every night, but fairly often.  So far each time
the hang occures sometime between 2am and 3am.  Anyone have any ideas as to
what could be causing this?
Alvin Bruney [MVP - ASP.NET] - 27 Apr 2005 03:26 GMT
if it is a web app, it is probably recycling in which case all running
threads are forcibly aborted. Check the event logs to see what they say
around that time of day or for anything strange

Signature

Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc

> We have a thread running in our application, it runs a while loop that
> does
[quoted text clipped - 5 lines]
> to
> what could be causing this?
Jeremy Chapman - 27 Apr 2005 18:00 GMT
It is a windows forms application.   It seems that every time the
Thread.Sleep hangs is about 2 or 3 minutes after Logical Disk Manager
Administrative Service stops.  (This is a windows server 2003 machine and we
never had this problem on a windows 2000 server machine).  If this is caused
by the Logical Disk Manager Administrative Service stopping,  we don't know
why its stopping or what a work around would be.

Event Type:       Information

Event Source:    Service Control Manager

Event Category: None

Event ID:           7036

Date:                4/27/2005

Time:                2:03:22 AM

User:                N/A

Computer:         DC1SERV64

Description:

The Logical Disk Manager Administrative Service service entered the stopped
state

> if it is a web app, it is probably recycling in which case all running
> threads are forcibly aborted. Check the event logs to see what they say
[quoted text clipped - 9 lines]
> > to
> > what could be causing this?
Willy Denoyette [MVP] - 02 May 2005 19:23 GMT
> It is a windows forms application.   It seems that every time the
> Thread.Sleep hangs is about 2 or 3 minutes after Logical Disk Manager
[quoted text clipped - 27 lines]
> stopped
> state

This service isn't suposed to run in the first place (unless you run the
LDM), do you have any USB drives that might get connected/disconnected?

Willy.
Jeremy Chapman - 03 May 2005 20:03 GMT
Apparently this service is required because the server is connected to a
SAN.  Looking at the service manager, the service is set to startup type
automatic and status is started.

> > It is a windows forms application.   It seems that every time the
> > Thread.Sleep hangs is about 2 or 3 minutes after Logical Disk Manager
[quoted text clipped - 32 lines]
>
> Willy.
Willy Denoyette [MVP] - 03 May 2005 22:00 GMT
Hmmm, the "Logical Disk Manager" is always running, but not the "Logical
Disk Manager Administrative Service", the latter runs under control of the
former.

Willy.

> Apparently this service is required because the server is connected to a
> SAN.  Looking at the service manager, the service is set to startup type
[quoted text clipped - 37 lines]
>>
>> Willy.

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.