Webservice taking 100% cpu

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
zendesigner
Posts: 40
Joined: Thu Mar 03, 2005 3:03 am

Webservice taking 100% cpu

Post by zendesigner »

Hi Alex,


We recently upgraded to 5.70 for our memory leak problem which seems to be solved now.

Unfortunatly i notice a second problem now regarding the webservice service.

When refreshing a page it takes about 15 seconds and the webservice takes 100 % cpu then. As several controlroom people monitor the website of hostmonitor and they refresh automatically each 2 minutes. This poses problems on my resources !

Any idea why or how to solve it ?

this is the ini file:

[RCI]
Address=127.0.0.1
Port=1054
Timeout=10
[Http]
Port=80
Active=0
[HTML]
AutoRefresh=1
RefreshTime=120
CustomErrorPage1=0
AutoLogin=1
Pswd=3174278701
Data1=6BCF96565B
Data2=
[Access]
PublicAccess=0
PublicFolder=
PrivateAccess1=0
PrivateFolder1=
PrivateAccess2=0
PrivateFolder2=
PrivUserList=
PrivUserMark=


The service runs under the system account

Thanks

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

Post by KS-Soft »

Cannot reproduce the problem.
What version of Web Service do you use? Windows? Service Pack? Antivirus monitor? Personal firewall?
How many test items do you have in the list?

Regards
Alex
zendesigner
Posts: 40
Joined: Thu Mar 03, 2005 3:03 am

Post by zendesigner »

Hi alex,

We have a lot of test ;)
i'll send you the data + printscreens by mail.

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

Post by KS-Soft »

As I see HostMonitor<->WebService data transfer needs just a second (or less) but you have all tests in the same folder, so Web Service must create a huge web page - that's the problem.
I would recommend to separate tests by folders and use "Display tests from current folder only" option
http://www.ks-soft.net/images/hostmon4/web_int2.gif
Will try to optimize some code in next version.

Regards
Alex
zendesigner
Posts: 40
Joined: Thu Mar 03, 2005 3:03 am

Post by zendesigner »

KS-Soft wrote:As I see HostMonitor<->WebService data transfer needs just a second (or less) but you have all tests in the same folder, so Web Service must create a huge web page - that's the problem.
I would recommend to separate tests by folders and use "Display tests from current folder only" option
http://www.ks-soft.net/images/hostmon4/web_int2.gif
Will try to optimize some code in next version.

Regards
Alex
Hi alex , thanks for the answer. My main problem is that it's all imported automatically, that's why it's in one folder.

I'll try to optimize it though. I use templates to import the tests so changing a template would put the test in another folder.

Thanks

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

Post by KS-Soft »

There is update at www.ks-soft.net/download/ws259.zip
This version works about 2 times faster.
But it cannot work with old HostMonitor, you should update to version 5.88 or 5.92

Regards
Alex
zendesigner
Posts: 40
Joined: Thu Mar 03, 2005 3:03 am

Post by zendesigner »

Hi alex,

On the 5.92 version this patch is working great. It indeed speeds it up a lot.

Combined with the folder split you suggested cpu for webservice now rarely goes over 10 %.

Thanks for the fix.


B
Post Reply