Memory leak Passive RMA Agents

When you post information about some problem, please include the following details: - OS version (e.g. Windows 2000 Professional SP3); HostMonitor version; problem description.
Post Reply
ron.visser
Posts: 8
Joined: Fri Feb 04, 2011 3:04 am

Memory leak Passive RMA Agents

Post by ron.visser »

The amount memory used by my RMA agents grows very fast.
In a day it uses over 200 MB

Im using hostmonitor 8.82 on a w2003 r2 server
the agent is also running on a w2003 r2 server

The agent performs 4 ODBC tests and is using the microsoft ODBC driver
for Oracle.
On another server I'm using a native oracle driver but it makes no differnce.
2 test are scheduled every hour
2 test are scheduled every 10 minutes

Agent config:
running as a service using an admin account
All tests and actions enabled
Port 1055 for all agents
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What kind of memory counter did you check? Working Set? Usually value of this counter is not really useful. Quote from Microsoft
========================
The Working Set is the set of memory pages touched recently by the threads in the process. If free memory in the computer is above a threshold, pages are left in the Working Set of a process even if they are not in use
========================
In other words, memory can be released by application but Windows does not release it because system still has some available memory.

What about handles? How many handles allocated by agent?
Looks like several customers experience handles leakage related to ODBC test. We do not see any mistake in our code and we cannot reproduce the problem using the same ODBC drivers (while we know old MySQL and Oracle drivers caused this problem all the time).
So we do not have any idea what is the reason of the problem :-(

We added some new options for testing purpose, probably will upload new version today.

Does this agent performs some other tests? or just 4 ODBC tests?
Could you try Oracle driver version 9.2.0.8.0, as we know this is the most stable Oracle client.

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

There is update for RMA: www.ks-soft.net/download/rma415.zip
Could you update agent and add "ODBC_UseSharedEnvHandle=0" line into [Misc] section of rma.ini file?
(if you add this line while agent is running, you should restart agent or use RMA Manager "Reload settings" command)

Regards
Alex
Post Reply