KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Host Monitor web interface fails after 1 hr, product limits

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
davephan



Joined: 19 Oct 2007
Posts: 14

PostPosted: Wed Jun 23, 2010 8:19 am    Post subject: Host Monitor web interface fails after 1 hr, product limits Reply with quote

The Host Monitor web interface fails after one hour with the following error:

"Response from HostMonitor's Web Service:
Error: Cannot read data

Possible reasons:
- HostMonitor is not running
- RCI interface disabled
- HM Web Service configured incorrectly (wrong TCP Port or IP address)
- network problem"

To keep the Host Monitor web interace working, the following script is run once per hour with the Windows task scheduler to reset Host Monitor:

net stop "KS Web Service"
tasklist|find /i "hostmon.exe"
if errorlevel==0 Taskkill /IM hostmon.exe /F
sleep 30
net start "KS Advanced Host Monitor"
net start "KS Web Service"

Running the script does create a Host Monitor outage for several minutes while Host Monitor restarts. Another alternative might be to reboot the Host Monitor system once an hour instead of resetting the "KS Host Advance Host Monitor" and "KS Web Service" services.

When running Host Monitor as an application, instead of a service, the following error message frequently pops up, sometimes several times per minute:

"The script you are executing is taking longer than expected to run. Click End to abort the script or Continue to continue the script execution."

There are 264 systems being monitored with Host Monitor. There are a total of 8882 tests. When Host Monitor is started, the threads that hostmon.exe consumes builds up to about 1600 - 1800. The next highest thread counts used are svchost at 157 threads and system at 91 threads. When the thread count builds up to about 1600, then the Host Monitor
web interface fails. The Host Monitor web interface is then fixed by running a service reset script. The Host Monitor web interface then works for another hour before it fails again.

We seemed to reach a limit of the product when we added one more system. The Host Monitor web interface now fails after a few minutes. It only takes a few minutes for the thread count on the Host Monitor system to reach about 1600 threads.

I understand that Windows 32-bit systems have a thread count limit which is a bit higher than 1600. I suspect that Host Monitor is leaking threads, or cannot control the number of threads that are being used. The Windows 2003 32-bit server then exceeds it's limit of threads that can be run. The Host Monitor software was also tested on a Windows 2008 R2 64-bit server. The Host Monitor software crashed more frequently with the Windows 2008 R2 64-bit system.

I've tried drastically reducing the frequency of the tests, which seemed to slow down the thread build up time, but did not eliminate the problem. I also tried drastically reducing the number of tests, which also helped to reduce the thread build up time, but did not eliminate the problem. When starting the Host Monitor services, all the tests try to run right away. It seems that it would be better to have the initial test for each test start after each test's internal time, not try to all start right away. I've read that the product is limited to 128 tests per second. Does this mean staring
128 tests per second, or running 128 tests per second. If each test takes many seconds to run, then perhaps too many tests will be running at the same time. Is there a way to reduce the number of tests running per second? Many of the tests have intervals of 300 seconds. Some tests have long intervals, such as 900 - 1800 seconds.

What are the thread limits for Host Monitor? What are the test limits for Host Monitor? What are the limits for the number of systems being monitored?

Depending on the limits, maybe we need to have more than one Host Monitor server to cover all the tests, or drastically reduce the number of systems being monitored and/or the number and frequency of the tests.

Dave
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Jun 23, 2010 9:59 am    Post subject: Reply with quote

Quote:
It only takes a few minutes for the thread count on the Host Monitor system to reach about 1600 threads

Its not normal. Usually such problems caused by 3rd party software.
What about Handles usage?
Do you have installed some antivirus monitors, personal firewall, content monitoring software? Non stanard winsock components?
Do you use ODBC logging or ODBC test method? If yes, what ODBC driver do you use?
Could you check if Auditing Tools shows any errors or warnings (use menu View -> Auditing Tool)?
What other test methods do you use? Could you send your configuration files to support@ks-soft.net? We need HML file with tests, all *.LST and *.INI files.

Quote:
There are 264 systems being monitored with Host Monitor. There are a total of 8882 tests

Its not much. We tested HostMonitor with over 60,000 test items.

Quote:
128 tests per second, or running 128 tests per second. If each test takes many seconds to run, then perhaps too many tests will be running at the same time. Is there a way to reduce the number of tests running per second?

Sure, you may reduce value of this option (Don't start more than N tests per second). BTW: Default value for this option - 32.

Quote:
Many of the tests have intervals of 300 seconds. Some tests have long intervals, such as 900 - 1800 seconds

8882 test item with average interval 300 sec -> 30 tests per second in average. Sure, you may reduce value of "Don't start more than N tests per second" option, you may set it to 40-60.

Quote:
What are the thread limits for Host Monitor? What are the test limits for Host Monitor? What are the limits for the number of systems being monitored?

Thread limits limited by system (Windows), also your limit new thread creation by the same option (Don't start more than N tests per second). Number of test items limited by your license.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Jun 23, 2010 10:40 am    Post subject: Reply with quote

What version of HostMonitor do you use?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
davephan



Joined: 19 Oct 2007
Posts: 14

PostPosted: Wed Jun 23, 2010 11:19 am    Post subject: Reply with quote

We are using Advanced Host Monitor version 8.64 and are licensed for unlimited tests.

Could you be more specific which files need to be e-mailed?

Dave
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Jun 23, 2010 12:08 pm    Post subject: Reply with quote

Unlimited tests? Do you mean Enterprise license?
We need HML file with tests (I don't know name of this file because you could use any name and path for the file) and all *.LST and *.INI files from HostMonitor directory.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index