Email send failure

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).
AntonyP
Posts: 159
Joined: Mon Jan 02, 2006 9:40 am
Location: Athens Greece

Email send failure

Post by AntonyP »

Two days ago the computer that hosts HM lost at some point all network connections to several devices. Sometime after this occured, HM stopped sending emails, although it did not stop working as it should (monitor all devices). The error i found in the log file has the following information:

[2006-08-05 17:57:43] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000008
[2006-08-05 17:57:45] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000008
[2006-08-05 17:57:48] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000008
[2006-08-05 17:57:54] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000008
[2006-08-05 17:57:54] Sys More than 20 consecutive ODBC errors occured.
ODBC logging paused for 10 min (use Options dialog to enable it again).
[2006-08-05 17:57:54] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000008
[2006-08-05 17:57:55] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000008
[2006-08-05 17:57:56] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 726F7471
[2006-08-05 17:57:57] Sys SMTP client error: Error reading StopBtn.Glyph.Data: Canvas does not allow drawing
[2006-08-05 17:57:57] Sys SMTP client error: Error reading StopBtn.Glyph.Data: Canvas does not allow drawing
[2006-08-05 17:58:01] Sys SMTP client error: Error reading StopBtn.Glyph.Data: Canvas does not allow drawing
[2006-08-05 17:58:10] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000009
[2006-08-05 17:58:12] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000009
[2006-08-05 17:58:27] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000009
[2006-08-05 17:58:28] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000009
[2006-08-05 17:58:28] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000009
[2006-08-05 17:58:30] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000009

Can you please tell me the reason of the failed email-alert feature?

Thanks in advance
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Email send failure

Post by KS-Soft Europe »

AntonyP wrote:Two days ago the computer that hosts HM lost at some point all network connections to several devices. Sometime after this occured, HM stopped sending emails, although it did not stop working as it should (monitor all devices). The error i found in the log file has the following information:
[2006-08-05 17:57:43] Sys SMTP client error: Access violation at address 00428691 in module 'hostmon.exe'. Read of address 00000008
I assume, the total resource usage on your system is above normal. Could you check the total handles usage on your system?
AntonyP wrote:[2006-08-05 17:57:54] Sys More than 20 consecutive ODBC errors occured.
ODBC logging paused for 10 min (use Options dialog to enable it again)
Such ODBC problems may lead to resource leakage problems. You should adjust your ODBC log settings or disable ODBC logging. Error means you have specified not valid query (Options > Advanced Logging tab). I hope, if you figure ODBC problem out, the "Access violation" problem will disappear.

Regards,
Max
AntonyP
Posts: 159
Joined: Mon Jan 02, 2006 9:40 am
Location: Athens Greece

Post by AntonyP »

I have disabled the odbc logging for now, see how it goes. Thanks for your help.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

ODBC? May be not. There are a lot of reasons for such problem. E.g. Norton Antivirus or McAfee.
I think its better to check what exactly process uses too much resources. You may use standard Windows Task Manager to check resource usage (Handles, User and GDI objects) for each process

Regards
Alex
AntonyP
Posts: 159
Joined: Mon Jan 02, 2006 9:40 am
Location: Athens Greece

Post by AntonyP »

No active antivirus monitor is installed on the computer. Only a scanner, which is SAV corp. edition. I will have my eyes open for any process or application that tends to use heavy load of resources; normally this should be a very rare thing.
AntonyP
Posts: 159
Joined: Mon Jan 02, 2006 9:40 am
Location: Athens Greece

Post by AntonyP »

I got the same error again

SMTP client error: Error reading StopBtn.Glyph.Data: Canvas does not allow drawing

No antivirus was installed, like before. I checked other applications for possible cpu overload, but found nothing wrong. Is it possible for HM to "crash" its email action if the smtp server has a problem? We have MS Exchange 2003.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Could you check what exactly process uses too much resources, please? You may use standard Windows Task Manager to check resource usage (Handles, User and GDI objects) for each process. How many Handles and GDI object are used by hostmon.exe process?

Regards,
Max
AntonyP
Posts: 159
Joined: Mon Jan 02, 2006 9:40 am
Location: Athens Greece

Post by AntonyP »

At this moment, HM.exe uses 2% of the CPU, 112MB RAM, 332 Handles, 24 threads, 504 user objects and 4969 GDI objects. What is your opinion on the above?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Too much GDI objects :roll: And I do not see a reason for such resource leakage - even if we made some mistake in the code it should not lead to significant leak because HostMonitor does not use GDI resources to perform the tests.
If you restart HostMonitor, how many GDI objects does it allocate?
ODBC logging is enabled or disabled? What kind of tests and actions do you use?

Regards
Alex
AntonyP
Posts: 159
Joined: Mon Jan 02, 2006 9:40 am
Location: Athens Greece

Post by AntonyP »

No ODBC logging at all. I restarted HM and it now uses 2%CPU, 10MB RAM, 200 handles, 20 threads, 171 user objects and 272 GDI objects. There is a total of 1500 tests, 1300 of which are snmp get and 140 are ping, with an average frequency of 14secs.
AntonyP
Posts: 159
Joined: Mon Jan 02, 2006 9:40 am
Location: Athens Greece

Post by AntonyP »

Most tests use the email action (after 3 failed replies) plus an entry to the logfile of HM, which is a dbf one.
We also have an html report generated every minute with all failed tests.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We are trying to reproduce this problem using similar configuration, nothing wrong so far.
Could you check how GDI resources grow up? Does number of objects increases constantly, every minute? Or it stays at the same level for a while and then jumps?

Regards
Alex
AntonyP
Posts: 159
Joined: Mon Jan 02, 2006 9:40 am
Location: Athens Greece

Post by AntonyP »

I am not sure how this happens, but i am guessing that each time many tests fail, HM starts consuming more and more RAM as well as CGI and other objects, without decreasing them after all the above test go back to normal! So, if i leave HM running for many days, during which several tests fail-at some point- there is a possibility that it will crash.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Tests do not use GDI resources, regardless of status. However "Bad" status usually triggers some actions. "Send e-mail" action may use GDI resources if "Show status window" option is enabled. "Show popup window" action shows popup window and uses GDI resources. I just tested these actions, they release all resources.

Anyway, we need to know when exactly this leak occurs. Its impossible to check all 35 MB of code :(
Could you disable alerts for a while and check resource usage? This way we will narrow search field. If you cannot work without alerts, then you may start 2nd instance of HostMonitor and stop alerts for 2nd instance only. Then you may easily compare resource usage for 2 processes.

Regards
Alex
AntonyP
Posts: 159
Joined: Mon Jan 02, 2006 9:40 am
Location: Athens Greece

Post by AntonyP »

Show status window option is disabled. Show popup window is one of the action profiles, but it is triggered every 5 minutes for two tests only.

How can i start another instance of HM? Using the GUI or cmd?
Post Reply