Harvey,
I am not using any hifi tool to monitor threads.
I am using a Visual Studio to run a solution in debug mode, with two
projects configured to start(multi startup option). I am seeing a new thread
created & destroyed every 15 seconds.
I have posted the code in my first post. It has a simple class inherited
from SoapService on Service side and is using soap.tcp uri to listen.
Client Application is using higher level class inherited from SoapClient.
This class in making call to service every 5 seconds using
System.Timers.Timer.
When I ran these two programs for 2 minutes in Visual Studio debug mode, I
got the following output in Debug.output window.
***********************************************************************
'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols
loaded.
'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols
loaded.
'WSE2.TCPClient': Loaded 'C:\Download\Programming\WSE2.0\Tcp
ThreadPool\WSE2.TCP\WSE2.TCPClient\bin\Debug\WSE2.TCPClient.exe', Symbols
loaded.
'WSE2.TCPClient.exe': Loaded
'c:\windows\assembly\gac\microsoft.web.services2\2.0.1.0__31bf3856ad364e35\microsoft.web.services2.dll', No symbols loaded.
'WSE2.TCPClient.exe': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No
symbols loaded.
'WSE2.TCPClient.exe': Loaded
'c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll', No symbols loaded.
'WSE2.TCPClient.exe': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll', No symbols loaded.
'WSE2.TCPService': Loaded 'C:\Download\Programming\WSE2.0\Tcp
ThreadPool\WSE2.TCP\WSE2.TCPService\bin\Debug\WSE2.TCPService.exe', Symbols
loaded.
'WSE2.TCPClient.exe': Loaded
'c:\windows\assembly\gac\system.security\1.0.5000.0__b03f5f7f11d50a3a\system.security.dll', No symbols loaded.
'WSE2.TCPClient.exe': Loaded
'c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll', No symbols loaded.
'WSE2.TCPService.exe': Loaded
'c:\windows\assembly\gac\microsoft.web.services2\2.0.1.0__31bf3856ad364e35\microsoft.web.services2.dll', No symbols loaded.
'WSE2.TCPService.exe': Loaded
'c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll', No symbols loaded.
'WSE2.TCPService.exe': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No
symbols loaded.
'WSE2.TCPService.exe': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll', No symbols loaded.
'WSE2.TCPService.exe': Loaded
'c:\windows\assembly\gac\system.security\1.0.5000.0__b03f5f7f11d50a3a\system.security.dll', No symbols loaded.
'WSE2.TCPService.exe': Loaded
'c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll', No symbols loaded.
'WSE2.TCPClient.exe': Loaded 'sspv3aum', No symbols loaded.
'WSE2.TCPService.exe': Loaded
'c:\windows\assembly\gac\system.serviceprocess\1.0.5000.0__b03f5f7f11d50a3a\system.serviceprocess.dll', No symbols loaded.
'WSE2.TCPService.exe': Loaded 'o-lkkkuw', No symbols loaded.
'WSE2.TCPClient.exe': Loaded
'c:\windows\assembly\gac\system.serviceprocess\1.0.5000.0__b03f5f7f11d50a3a\system.serviceprocess.dll', No symbols loaded.
The thread '<No Name>' (0x164) has exited with code 0 (0x0).
The thread '<No Name>' (0x9e4) has exited with code 0 (0x0).
The thread '<No Name>' (0xdc4) has exited with code 0 (0x0).
The thread '<No Name>' (0x24c) has exited with code 0 (0x0).
The thread '<No Name>' (0xa1c) has exited with code 0 (0x0).
The thread '<No Name>' (0xad4) has exited with code 0 (0x0).
The thread '<No Name>' (0x4ec) has exited with code 0 (0x0).
The thread '<No Name>' (0x780) has exited with code 0 (0x0).
The thread '<No Name>' (0xa20) has exited with code 0 (0x0).
The thread '<No Name>' (0x560) has exited with code 0 (0x0).
The thread '<No Name>' (0x790) has exited with code 0 (0x0).
The thread '<No Name>' (0x910) has exited with code 0 (0x0).
The thread '<No Name>' (0xd10) has exited with code 0 (0x0).
The program '[3196] WSE2.TCPService.exe' has exited with code 0 (0x0).
The program '[840] WSE2.TCPClient.exe' has exited with code 0 (0x0).
*********************************************************************
Doesn't the following thread exit message indicate Application has handed
over thread for destruction and exit code 0 means application has finished
usage of this thread to execute a code without error? And because this thread
is not from thread pool, application has released it for detruction?
The thread '<No Name>' (0xd10) has exited with code 0 (0x0).
In this run for 2 minutes I got 13 such messages. I am still under
impression WSE is creating & detroying new thread every 15 seconds. I see
constant numbers of total threads in Windows Task Manager under each of these
two applications. It means these threads are being created newly and handed
over for detroy?
Thanks for taking interest in following up my question.
[quoted text, click to view] "Hervey Wilson [MSFT]" wrote:
> DotNetFan@Community.nospam wrote:
> > Harvey,
> > Do you mean this creation/destruction of new Thread by WSE every 15 seconds
> > is normal and OK and should n't affect performance.
>
> Per earlier comments, WSE is not creating and destroying a thread every
> 15 seconds, we believe that you are seeing the execution timeout timer
> being fired; the thread used to handle the callback is a threadpool
> thread. SP2 has been changed so the timer is only active if the
> execution timeout is enabled and there are active requests to monitor.
>
> Out of interest, what tool are you using to monitor the threads?
>
>
>
> --
> This posting is provided "AS IS", with no warranties, and confers no rights.