|
View previous topic :: View next topic |
Author |
Message |
gaet
Joined: 17 Feb 2003 Posts: 1
|
Posted: Tue Feb 18, 2003 4:39 am Post subject: |
|
|
Hello,
I would like to monitor the amount of traffic on my local network interface card and take action if this amount of traffic is less than a configured value ?
To achieve this, I have configured a performance counter on my local machine (running XP) to monitor the number of packets sent on my network interface card. Sometimes, host monitor seems to be blocked and the result of all of my tests are in the "unknow" status. The only way to restore it is to reboot my computer.
Is it normal ?
I've read that there are known problem with performance counters. Is there another way to do it ?
Thanks |
|
Back to top |
|
|
hmo
Joined: 14 Feb 2003 Posts: 81 Location: Denmark
|
Posted: Tue Feb 18, 2003 12:24 pm Post subject: |
|
|
Alex told me this:
HostMonitor has several ways to work with
pdh.dll
a.. MultiThread mode: HostMonitor works
almost according to Microsoft
documentation with some workaround to avoid
most likely problems. HM loads pdh.dll at
once and uses it all the time. This method
fast because HM can start several tests
simultaneously. If everything will work
correctly on your system, use this method
(by default HostMonitor uses this method).
b.. OneByOne mode: Using this method HM will
start Performance Counter tests one by one
and reload pdh.dll every time. This method
slow (when you setup Performance Counter
test using Test Properties dialog program
even can hang for 1-2 min) but using this
method you will avoid some problems due to a
buggy pdh.dll
c.. Smart mode: With this method HM will try
to detect when pdh.dll need to be reloaded.
To change mode, add line "PerfWorkMode=N" to
hostmon.ini file into [Misc] section and
restart HostMonitor. N is number of the
mode: 0 - MultiThread
mode: 1 - OneByOne mode,
mode: 2 - Smart mode
You can try to set "OneByOne" mode, it will
be even more slow but can be more reliable.
I did find a "better" performance by setting value to 1 - ie. OneByOne mode!
Cheers,
Hans Mosegaard
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|