all groups > dotnet sdk > april 2005 >
You're in the

dotnet sdk

group:

Thread.Sleep never returns (hangs?)



Thread.Sleep never returns (hangs?) Jeremy Chapman
4/20/2005 9:49:31 AM
dotnet sdk: 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?

Re: Thread.Sleep never returns (hangs?) Alvin Bruney [MVP - ASP.NET]
4/26/2005 10:26:27 PM
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

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
[quoted text, click to view]

Re: Thread.Sleep never returns (hangs?) Jeremy Chapman
4/27/2005 10:00:42 AM
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

[quoted text, click to view]

Re: Thread.Sleep never returns (hangs?) Willy Denoyette [MVP]
5/2/2005 12:00:00 AM

[quoted text, click to view]

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.



Re: Thread.Sleep never returns (hangs?) Willy Denoyette [MVP]
5/3/2005 12:00:00 AM
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.

[quoted text, click to view]

Re: Thread.Sleep never returns (hangs?) Jeremy Chapman
5/3/2005 12:03:54 PM
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.


[quoted text, click to view]

AddThis Social Bookmark Button