C
CannonFodder
Hi all, basically i have a WMI scanner which i install as a windows
service. using .NET remoting the service registers an object which
records the status of the scanner (ie how many assets its' scanned so
far etc..)
I then have a windows application which reads the status object to
display the progress of the scanner (ie which asset is it scanning and
an overall % complete)
This all works fine when i scan up to 50 assets but i am in the
process of load testing the scanner and am increasing the number of
scans to 100, 150 etc..
the scans do work but the windows application basically locks up for
the majority of the scan.
I have a thread on the scanner service which starts up the scan and
sleeps inbetween scans for x minutes.
the scanner itself uses a threadpool to scan all the assets on the
network and a thread to upload results to a webservice.
I am using a timer on the windows application to check the status
obejct every second and then display the results on the form, this
seems to be the bit that keeps locking up (only when lots of assets
are being scanned tho)
how can i keep my windows application responsive, no matter how many
assets i am trying to scan?
service. using .NET remoting the service registers an object which
records the status of the scanner (ie how many assets its' scanned so
far etc..)
I then have a windows application which reads the status object to
display the progress of the scanner (ie which asset is it scanning and
an overall % complete)
This all works fine when i scan up to 50 assets but i am in the
process of load testing the scanner and am increasing the number of
scans to 100, 150 etc..
the scans do work but the windows application basically locks up for
the majority of the scan.
I have a thread on the scanner service which starts up the scan and
sleeps inbetween scans for x minutes.
the scanner itself uses a threadpool to scan all the assets on the
network and a thread to upload results to a webservice.
I am using a timer on the windows application to check the status
obejct every second and then display the results on the form, this
seems to be the bit that keeps locking up (only when lots of assets
are being scanned tho)
how can i keep my windows application responsive, no matter how many
assets i am trying to scan?