is HM multi threaded ?

General chat about HostMonitor
Post Reply
Jax
Posts: 13
Joined: Mon Jan 12, 2004 7:38 pm

is HM multi threaded ?

Post by Jax »

I am trying to run many tests launched by scripts and some of the scripts can take fair a bit of time to complete, I have noticed that HM will not launch another script until the previous has finished.

So my questions are:
- Can HM run multiple tests simultanously? (multithread)
- Can HM run multiple Script tests simultanously?

If no to any of the above will it be implemented ?

Thanks
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

So my questions are:
- Can HM run multiple tests simultanously? (multithread)
Yes, of course. HostMonitor starts every test in separate thread. Option "Don't start more than [N] tests per second" sets limit for number of threads. Option located on Behavior page in the Options dialog.
Can HM run multiple Script tests simultanously?
HostMonitor can. Windows cannot. Actually Windows can execute several scripts in different threads of the same process. But it does not work stable.
That's why HostMonitor never starts several scripts in the same time.

Regards
Alex
Jax
Posts: 13
Joined: Mon Jan 12, 2004 7:38 pm

Post by Jax »

It is a bit of a problem not being able to run more than one script concurently, I assume that it can run more than one "External Program" at a time.

Is it possible to transfer values other and error codes back to HM from tests running "External Programs" ?

Thanks
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

It will be possible in next version of HostMonitor. It will support new test method "Shell Script" and it will be able to start several scripts simultaneously (as separate processes).

Regards
Alex
steven.cjhsiao
Posts: 3
Joined: Mon Aug 20, 2007 10:34 pm

Post by steven.cjhsiao »

KS-Soft wrote:It will be possible in next version of HostMonitor. It will support new test method "Shell Script" and it will be able to start several scripts simultaneously (as separate processes).

Regards
Alex
Hello

I am using HM 6.82. I have an active script tester written by python. I met the same problem, the active script seem can't be executed simultaneously. If I use the shell script, does HM 6.82 support running multiple shell script simltaneously? or what any setting can make the active script support multithread in HM?
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

HostMonitor starts each Shell Script test as separate process (simultaneously when nesessary). So, there should not be any problem.
Another solution: you may put Active Scripts into some folder and use "Non-simultaneously test execution" folder level option (option located on Specials page in the Folder Properties dialog)

Regards
Alex
Post Reply