[prev in list] [next in list] [prev in thread] [next in thread] 

List:       htmlunit-user
Subject:    [Htmlunit-user] WebResponse().getLoadTime() returning inconsistent
From:       Anant Toradmal <toradmal () gmail ! com>
Date:       2009-12-30 14:45:50
Message-ID: c7480fcf0912300633n4005af4r7bc3435940476971 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Team,


I am using a htmlPage.getWebResponse().getLoadTime() to get the response
time of a site. (I am using HtmlUnit 2.6 Snapshot version)

I have set an alerts on this, say if a response time of our site exceeds the
standard threshold then an alert is raised.

But sometimes this method returns a weird loadtimes. I have faced 2
scenarios here.



1.      *Negative Response time :* Sometimes I am getting a negative value
for this.

2.      *Very High Response Time :* We are having a 15 secs timeout in our
Apache but still sometimes I am getting a number much more than 15 secs,
which is practically not possible as whatever happens Apache should timeout
the request after 15 secs.



Can you guys please help me to resolve this issue. Or any other way I can
use to get a correct response time.



Thanks in advance for your help with this.



Thanks & Regards
*Anant P. Toradmal*

[Attachment #5 (text/html)]

<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: &#39;Times \
New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times \
New Roman&#39;">Hi Team,</span></p> <p style="MARGIN: 0in 0in 0pt" \
class="MsoNormal"><span style="FONT-FAMILY: &#39;Times New \
Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times New \
Roman&#39;"> </span></p> <div style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span \
style="FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; \
mso-fareast-font-family: &#39;Times New Roman&#39;">I am using a \
htmlPage.getWebResponse().getLoadTime() to get the response time of a site. (I am \
using HtmlUnit 2.6 Snapshot version)</span></div>

<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: &#39;Times \
New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times \
New Roman&#39;">I have set an alerts on this, say if a response time of our site \
exceeds the standard threshold then an alert is raised.</span></p>

<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: &#39;Times \
New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times \
New Roman&#39;">But sometimes this method returns a weird loadtimes. I have faced 2 \
scenarios here.</span></p>

<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: &#39;Times \
New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times \
New Roman&#39;"> </span></p> <p style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt \
0.5in; mso-list: l0 level1 lfo1" class="MsoListParagraph"><span style="FONT-FAMILY: \
&#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: \
&#39;Times New Roman&#39;"><span style="mso-list: Ignore">1.<span style="FONT: 7pt \
&#39;Times New Roman&#39;">      </span></span></span><b style="mso-bidi-font-weight: \
normal"><span style="FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; \
FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;">Negative \
Response time :</span></b><span style="FONT-FAMILY: &#39;Times New \
Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times New \
Roman&#39;"> Sometimes I am getting a negative value for this.</span></p>

<p style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" \
class="MsoListParagraph"><span style="FONT-FAMILY: &#39;Times New \
Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times New \
Roman&#39;"><span style="mso-list: Ignore">2.<span style="FONT: 7pt &#39;Times New \
Roman&#39;">      </span></span></span><b style="mso-bidi-font-weight: normal"><span \
style="FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; \
mso-fareast-font-family: &#39;Times New Roman&#39;">Very High Response Time \
:</span></b><span style="FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; \
FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;"> We are having a \
15 secs timeout in our Apache but still sometimes I am getting a number much more \
than 15 secs, which is practically not possible as whatever happens Apache should \
timeout the request after 15 secs.</span></p>

<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: &#39;Times \
New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times \
New Roman&#39;"> </span></p> <p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span \
style="FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; \
mso-fareast-font-family: &#39;Times New Roman&#39;">Can you guys please help me to \
resolve this issue. Or any other way I can use to get a correct response \
time.</span></p>

<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: &#39;Times \
New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times \
New Roman&#39;"> </span></p> <p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span \
style="FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; \
mso-fareast-font-family: &#39;Times New Roman&#39;">Thanks in advance for your help \
with this.</span></p>

<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font size="3" face="Calibri"> \
</font></p> <p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><a \
name="_MailAutoSig"><span style="FONT-FAMILY: &#39;Arial&#39;,&#39;sans-serif&#39;; \
COLOR: #1f497d; FONT-SIZE: 10pt; mso-fareast-font-family: &#39;Times New Roman&#39;; \
mso-fareast-theme-font: minor-fareast; mso-no-proof: yes">Thanks &amp; \
Regards</span></a><span style="mso-bookmark: _MailAutoSig"><span style="FONT-FAMILY: \
&#39;Arial&#39;,&#39;sans-serif&#39;; COLOR: #1f497d; mso-fareast-font-family: \
&#39;Times New Roman&#39;; mso-fareast-theme-font: minor-fareast; mso-no-proof: \
yes"><br> </span></span><span style="mso-bookmark: _MailAutoSig"><b><span \
style="FONT-FAMILY: &#39;Arial&#39;,&#39;sans-serif&#39;; COLOR: #5f5f5f; FONT-SIZE: \
8pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: \
minor-fareast; mso-no-proof: yes">Anant P. Toradmal</span></b></span><span \
style="mso-bookmark: _MailAutoSig"><span style="FONT-FAMILY: \
&#39;Arial&#39;,&#39;sans-serif&#39;; COLOR: #5f5f5f; FONT-SIZE: 8pt; \
mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-theme-font: \
minor-fareast; mso-no-proof: yes">  </span></span></p>



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 

_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic