Author Topic: web interface responsiveness  (Read 3795 times)

dvand

  • Jr. Member
  • **
  • Posts: 41
    • View Profile
web interface responsiveness
« on: December 27, 2010, 03:58:47 pm »
Question about the web interface as I'm finding it to be very unresponsive.

Pulling up default.j9sp comes very quickly however, if try the climatecontrol.j9sp page it takes quite a while to come up (approx 25 seconds).

Security.j9sp takes 60-90 seconds.

Is this normal?




John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: web interface responsiveness
« Reply #1 on: December 27, 2010, 07:42:03 pm »
No that is not normal.

Are you running everything on the same machine or are the services spread over multiple machines?
John Hughes
Codecore Technologies

dvand

  • Jr. Member
  • **
  • Posts: 41
    • View Profile
Re: web interface responsiveness
« Reply #2 on: December 28, 2010, 08:30:15 am »
I have a the web service on my laptop for testing AND on the "main" computer although I've only tried pulling up the pages over the network.

When i try both i get similar times.


dvand

  • Jr. Member
  • **
  • Posts: 41
    • View Profile
Re: web interface responsiveness
« Reply #3 on: December 29, 2010, 10:08:49 am »
Tried locally on the computer running the webserver and got similar delay's.

Any help appreciated :)

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: web interface responsiveness
« Reply #4 on: December 29, 2010, 08:23:37 pm »
Sorry o should have been more clear. Is the web server running on the same machine as the master service and the driver service?

I've never seen delays like you are seeing.  How old are the machines the services are running on?
John Hughes
Codecore Technologies

dvand

  • Jr. Member
  • **
  • Posts: 41
    • View Profile
Re: web interface responsiveness
« Reply #5 on: December 30, 2010, 07:15:50 am »
Yup, webserver and master service are on same machine.

The computer is a month old. 1.6ghz ION that I bought for HA. Elve is the only thing running on it (other than standard windows junk).

I do have 3 alias's set up for the ELK M1. Does the ELK driver cache status or does it poll at every request?

dvand

  • Jr. Member
  • **
  • Posts: 41
    • View Profile
Re: web interface responsiveness
« Reply #6 on: January 01, 2011, 10:42:46 am »
I checked CPU and memory usage while trying to pull up pages and CPU % didn't exceed 35% and memory seemed normal.

The touch interface is fine and I have EKeypad Pro and the Elk is very responsive in that application. I'm kind of stumped where to look to figure out what to try next. I need a browser interface for my phone.

Any suggestions appreciated.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: web interface responsiveness
« Reply #7 on: January 01, 2011, 11:52:24 am »
I checked CPU and memory usage while trying to pull up pages and CPU % didn't exceed 35% and memory seemed normal.

The touch interface is fine and I have EKeypad Pro and the Elk is very responsive in that application. I'm kind of stumped where to look to figure out what to try next. I need a browser interface for my phone.

Any suggestions appreciated.

You're machine is more than enough to get good performance.

The ELK driver cache's the data so that shouldn't be an issue.

I checked CPU and memory usage while trying to pull up pages and CPU % didn't exceed 35% and memory seemed normal.

The touch interface is fine and I have EKeypad Pro and the Elk is very responsive in that application. I'm kind of stumped where to look to figure out what to try next. I need a browser interface for my phone.

Any suggestions appreciated.

Have you tried the Elve Mobile app for the iPhone (I assume you are using an iPhone since you mention EKeypad)?

The sample web site is meant to work on older non-smart phones so it's very basic and it uses a poor technique to gather data... it sacrifices performance for the ability to work with most any devices you have running.

To test, I installed the web server here on a 3.4HGz Pentium 4 machine and the security page takes about 11 seconds to load which is slow but not as slow as you are seeing.

I then rewrote the security.j9sp web page to directly access a device named "security" and made a couple minor performance improvements and it reduced the time from 12 seconds to 3 seconds. You can create a new file called security2.j9sp with the contents below to see if it improves the performance to an acceptable amount:

Code: [Select]
<html>
<body>
<form method='post'>

<a href='default.j9sp'>Main</a><br>
<a href='security2.j9sp'>Refresh</a><br>
<br>

<%

Response.Write("<b>Security</b><br>");


// Areas
areaNames = security.AreaNames;
areaArmUpStateTexts = security.AreaArmUpStateTexts;
areaArmStatusTexts = security.AreaArmStatusTexts;

for (areaID=1; areaID<areaNames.Length; areaID++)
{
name = areaNames[areaID];

if (name != null)
{
if (name != "")
{
Response.Write("<i><u>Area&nbsp;" + areaID + ":&nbsp;" + name + "</u></i><br>");
Response.Write(areaArmUpStateTexts[areaID] + " - " + areaArmStatusTexts[areaID] + "<br>");
}
}
}

// Zones
Response.Write("<br><i><u>Zones</u></i><br>");

zoneNames = security.ZoneNames;
zonePhysicalStatuses = security.ZonePhysicalStatuses;
zonePhysicalStatusTexts = security.ZonePhysicalStatusTexts;

for (zoneID=1; zoneID<zoneNames.Length; zoneID++)
{
zoneName = zoneNames[zoneID];

if (zoneName != null)
{
if (zoneName != "")
{
Response.Write(zoneName + "&nbsp;-&nbsp;");

status = zonePhysicalStatuses[zoneID];

if (status == 1) // trouble
color = "orange";
else if (status == 2) // violated
color = "red";
else if (status == 2) // bypassed
color = "blue";
else
color = "black"; // normal

Response.Write("<font color='" + color + "'>" + zonePhysicalStatusTexts[zoneID] + "</font><br>");
}
}
}
%>

</form>
</body>
</html>

Now that the system supports device aliases we should probably rewrite all the web pages to work directly against the device names.

If you are a .net developer and want to create a custom .net web site you will be able to interface with Elve directly for asp.net or a .net application with the next release. This gives the best performance. There is a related topic here: http://codecoretechnologies.com/community/index.php?topic=481.0
John Hughes
Codecore Technologies

dvand

  • Jr. Member
  • **
  • Posts: 41
    • View Profile
Re: web interface responsiveness
« Reply #8 on: January 02, 2011, 05:23:52 pm »
Hi John,

My page load time is down to about 14 seconds for that page now!  Great improvement, Thanks!

Rewriting the other pages to get similar performance would be awesome.

Thx.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: web interface responsiveness
« Reply #9 on: January 02, 2011, 10:27:27 pm »
I'm glad it helped but 14 seconds is still fairly slow. I suppose it could be due to the ION cpu.  We haven't had much demand for a web interface but it it grows we will look into making more dramatic performance enhancements.

We'll try to update the web pages to directly access the devices similar to the security page changes for the next release.

John Hughes
Codecore Technologies

TonyNo

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: web interface responsiveness
« Reply #10 on: January 03, 2011, 05:56:39 am »
Where do we get in line for improving the web interface? ;)

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: web interface responsiveness
« Reply #11 on: January 03, 2011, 08:56:14 am »
Feature requests :)
John Hughes
Codecore Technologies

TonyNo

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: web interface responsiveness
« Reply #12 on: January 03, 2011, 06:06:53 pm »
Come on, dvand, let's go! ;)

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
web interface responsiveness
« Reply #13 on: January 09, 2011, 10:10:24 pm »
All of the web pages have received performance improvement... For version 1.1.
John Hughes
Codecore Technologies

GeorgeHarthups

  • Hero Member
  • *****
  • Posts: 2580
    • View Profile
rnacahax
« Reply #14 on: August 29, 2017, 08:26:12 pm »
https://bitbucket.org/snippets/porfiriowinn1971o2/R8Ldyk/
https://www.flickr.com/groups/3942007@N21/discuss/72157685636796964/
 
What new features does Word 2013 offer?
https://www.flickr.com/groups/3530434@N24/discuss/72157688136381075/
https://bitbucket.org/snippets/devinetter1989u1/KKrLG4/
 
Tom's Guide · Tom's IT Pro program icons in the system tray notification area (next to the clock) don't load. There may be no way around uninstalling Sophos before performing the by Dennis Faas on September, 7 2015 at 11:09AM EDT I have no idea what's going on but I'd really like to have my icons back on the desktop!
https://bitbucket.org/snippets/floydroper1992a3/8LX8Ak/
https://bitbucket.org/snippets/merrilljbt1981x1/GGMx9B/
 
my phon nokia 2700clasic download at a i can't find apps and games for my samsung sgh-f480i phone can you help Oct 10, 2014 Download it today. Free Java Games Contact Us. Author: Flash Fire Inc Big collection of samsung gt-c6712 whatsapp apps for phone and tablet.
http://forum.ghosthunterserver.com/viewtopic.php?f=6&t=13&p=23291#p23291
https://www.hostinglogy.com/forum/showthread.php?tid=654&pid=1122#pid1122
http://fea.co.il/forum/viewtopic.php?f=8&t=3187&p=4367&sid=c44a81ef8a06b502d59bb42e6381a191#p4367
http://www.indieunleashed.co.uk/community/index.php?/topic/410710-essays-on-kitagawa-utamaro/?p=443835
http://www.publicatuserver.com/foro/viewtopic.php?f=10&t=7117&p=16570#p16570
 
http://google.com/q=omvtt5er