RMA requires frequent reload

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
lr
Posts: 24
Joined: Tue Aug 12, 2003 9:12 pm

RMA requires frequent reload

Post by lr »

I am using RMA v.1.06Beta and HM v. 4.06Beta all on Windows 2000 servers. On both the RMA and the Server the service runs under an administrator's rights. Several times a day I need to reload the agent because some Performance Counter tests report "unknown" status. Reloading the agent always solves the problem, but it is not a permanent solution.

Any idea what might be causing this?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

http://www.ks-soft.net/hostmon.eng/mfra ... #perfnotes
-----------------------------------
Note #2 (bugs): Windows implementation of performance counters has bugs. E.g., Windows 2000 (Professional, Server, and Advanced Server editions) can produce memory leak in Pdh.dll when user (application) querying performance counter that does not exist. This bug fixed in SP2. Also pdh.dll does not work correctly with multithread applications.
That's why in HostMonitor we have implemented several different methods to work with pdh.dll:

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).
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
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, 2 - Smart mode
-----------------------------------

The same options was implemented for RMA. But instead of hostmon.ini file you should modify rma.ini file (located in the same directory where RMA is installed). Usually it helps..

Regards
Alex
User avatar
hmo
Posts: 81
Joined: Fri Feb 14, 2003 6:00 pm
Location: Denmark
Contact:

Post by hmo »

Aha! :o

Sooo... in rma.ini on all distributed RMAs, I should make a section
like this:

[Misc]
PerfWorkMode=0 (That is the setting You recommend!)

Cheers,
Hans Mosegaard

PS: By the way... I noticed that RMA v1.06 was mentioned. The newest RMA I can find is v1.05 Where to get it? 8)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

hmo wrote:Sooo... in rma.ini on all distributed RMAs, I should make a section like this:
You need to make changes only if you experience problems with the system.
hmo wrote:PS: By the way... I noticed that RMA v1.06 was mentioned. The newest RMA I can find is v1.05 Where to get it? 8)
Included in Advanced Host Monitor 4.06 download

Regards
Alex
Post Reply