What could cause the Windows service to freeze if the console application does not do the same using the same base libraries?

I hate to ask such questions: they are so undefined ... and not defined, but here.

Background: I have a DLL, this is the courage of an application that is a synchronized process. My timer gets the configuration for the interval in which it runs, and the delegate that should start when the interval expires. I have another dll that contains the process that I am inserting.

I created two applications: one Windows service and one console application. Each of the applications reads its own configuration file and loads the same libraries that press the configured timer interval and delegate it to my process time class.

Problem: Yesterday and over the past n weeks, everything worked fine in our production environment using the Windows Service. Today, the Windows service will work for about 20-30 minutes and freezes (with a timer interval of 30 seconds), but the console application starts without problems and has been running for the past 4 hours. Detailed logging does not indicate failure. As if the Windows service is just ... dying quietly - without stopping.

Given that my Windows and console applications do the same, I can only think that there is something that causes the Windows Service process to freeze - but I don’t know what could be causing this. I checked the configuration files, and they are both identical - I even copied and pasted the contents of one into the other to be sure. No dice.

- , Windows, , , ; - , , ?

- .

+3
8

, . - , , . , , . . . .

: . ( ) , , , . . Windows ? ? , , , Killing errant apps? ? .Net? .Net ? , : , -, , , , .

: , , , . , , 30 , .

+8

Windows Visual Studio. , (, ) .

Visual Studio " ", "Debug CLR". , .

- ? , . , , - , . (SCM) , , . , . , SCM, , .

"heartbeat", ( 30 ) MSMQ. , .

- - , , , / .

SCM ? , , , - . , , sc queryex servicename. .

+3

, , , , . , ///.

+1

  • . , . , , .

  • , ( , )

  • PerfMon , , - ( CPU, -, ..)

+1

Microsoft Windows. , , , . , - , ? - , ?

, , , .

0

windows? , SO Windows. , , . , .

0

, psasik, , , .

( desktop0?), , -, .

0

, . - ? , " ?" , , , , .

, , . .NET-, , RedGate ANTS threadlock.

0

Source: https://habr.com/ru/post/1724645/


All Articles