Downloading video segments with Grinder HTTP GET - Load test failing with memory Exhaustion
Meena Reddy via grinder-use <[email protected]> Fri, 1 Sep 2017 20:36:38 +0000 (UTC)
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <[email protected]> |
--===============8031208902176998214==
Content-Type: multipart/alternative;
boundary="----=_Part_1276756_1410115226.1504298198356"
Content-Length: 10861
------=_Part_1276756_1410115226.1504298198356
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi All,=C2=A0
I am using Grinder-3.11.=C2=A0
I have a =C2=A0requirement on grinder , I am trying to download the small
video file. when I do the HTTP GET on the file with load test of 100
connections=C2=A0 , I am seeing memory exhaustion. File size is around 300M=
B.=C2=A0
Is there any solution or feature implementation for this on Grinder?=C2=A0 =
how
can I make the grinder to discard the Payload but I need statistics of
payload.=C2=A0
I Understand from this thread that if I add " request1.readResponseBody =3D
False". , it is discarding the response body but no statistics for the
response as it's not downloading any file.=C2=A0
Please help me with suggestions. I want to grinder to read the HTTP Respons=
e
Data but not to keep it in memory.=C2=A0
here is my sample code:=C2=A0
test1 =3D Test(1, "Request resource")=C2=A0
request1 =3D HTTPRequest()=C2=A0
test1.record(request1)=C2=A0
class TestRunner:=C2=A0
=C2=A0 =C2=A0 def __call__(self):=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 result1 =3D
request1.GET("http://deployment.com/cbr?mpd=3Dhttp://deployment1/KronSd/m18=
_mod.mpd")=C2=A0
------=_Part_1276756_1410115226.1504298198356
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><head></head><body><div style=3D"color:#000; background-color:#fff; f=
ont-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font=
-size:13px"><div dir=3D"ltr" id=3D"yui_3_16_0_1_1504297027575_21306"><span =
style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Luci=
da Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21254">Hi All,&nb=
sp;</span><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica=
, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_212=
55"><span style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Ar=
ial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21256">=
I am using Grinder-3.11. </span><br style=3D"font-family: 'Helvetica N=
eue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui=
_3_16_0_1_1504297027575_21257"><span style=3D"font-family: 'Helvetica Neue'=
, 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_1=
6_0_1_1504297027575_21258">I have a requirement on grinder , I am try=
ing to download the small</span><br style=3D"font-family: 'Helvetica Neue',=
'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16=
_0_1_1504297027575_21259"><span style=3D"font-family: 'Helvetica Neue', 'Se=
goe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1=
_1504297027575_21260">video file. when I do the HTTP GET on the file with l=
oad test of 100</span><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI=
', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_15042=
97027575_21261"><span style=3D"font-family: 'Helvetica Neue', 'Segoe UI', H=
elvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_150429702=
7575_21262">connections , I am seeing memory exhaustion. File size is=
around 300MB. </span><br style=3D"font-family: 'Helvetica Neue', 'Seg=
oe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_=
1504297027575_21263"><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI'=
, Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_150429=
7027575_21264"><span style=3D"font-family: 'Helvetica Neue', 'Segoe UI', He=
lvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027=
575_21265">Is there any solution or feature implementation for this on Grin=
der? how</span><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI'=
, Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_150429=
7027575_21266"><span style=3D"font-family: 'Helvetica Neue', 'Segoe UI', He=
lvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027=
575_21267">can I make the grinder to discard the Payload but I need statist=
ics of</span><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvet=
ica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_=
21268"><span style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica,=
Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_2126=
9">payload. </span><br style=3D"font-family: 'Helvetica Neue', 'Segoe =
UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_150=
4297027575_21270"><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI', H=
elvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_150429702=
7575_21271"><span style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helve=
tica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575=
_21272">I Understand from this thread that if I add " request1.readResponse=
Body =3D</span><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helv=
etica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_150429702757=
5_21273"><span style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetic=
a, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21=
274">False". , it is discarding the response body but no statistics for the=
</span><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, A=
rial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21275"=
><span style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial=
, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21276">res=
ponse as it's not downloading any file. </span><br style=3D"font-famil=
y: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-se=
rif;" id=3D"yui_3_16_0_1_1504297027575_21277"><br style=3D"font-family: 'He=
lvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" =
id=3D"yui_3_16_0_1_1504297027575_21278"><span style=3D"font-family: 'Helvet=
ica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=
=3D"yui_3_16_0_1_1504297027575_21279">Please help me with suggestions. I wa=
nt to grinder to read the HTTP Response</span><br style=3D"font-family: 'He=
lvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" =
id=3D"yui_3_16_0_1_1504297027575_21280"><span style=3D"font-family: 'Helvet=
ica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=
=3D"yui_3_16_0_1_1504297027575_21281">Data but not to keep it in memory.&nb=
sp;</span><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica=
, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_212=
82"><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Aria=
l, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21283"><s=
pan style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, '=
Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21284">here i=
s my sample code: </span><br style=3D"font-family: 'Helvetica Neue', '=
Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0=
_1_1504297027575_21285"><span style=3D"font-family: 'Helvetica Neue', 'Sego=
e UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1=
504297027575_21286">test1 =3D Test(1, "Request resource") </span><br s=
tyle=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucid=
a Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21287"><span style=
=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Gr=
ande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21288">request1 =3D HT=
TPRequest() </span><br style=3D"font-family: 'Helvetica Neue', 'Segoe =
UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_150=
4297027575_21289"><span style=3D"font-family: 'Helvetica Neue', 'Segoe UI',=
Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297=
027575_21290">test1.record(request1) </span><br style=3D"font-family: =
'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif=
;" id=3D"yui_3_16_0_1_1504297027575_21291"><br style=3D"font-family: 'Helve=
tica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=
=3D"yui_3_16_0_1_1504297027575_21292"><span style=3D"font-family: 'Helvetic=
a Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"=
yui_3_16_0_1_1504297027575_21293">class TestRunner: </span><br style=
=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Gr=
ande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21294"><span style=3D"=
font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande=
', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21295"> def _=
_call__(self): </span><br style=3D"font-family: 'Helvetica Neue', 'Seg=
oe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_=
1504297027575_21296"><span style=3D"font-family: 'Helvetica Neue', 'Segoe U=
I', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504=
297027575_21297"> </span><br style=
=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Gr=
ande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21298"><span style=3D"=
font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande=
', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21299">  =
; result1 =3D</span><br style=3D"font-family: 'Helvetica Neue', 'Seg=
oe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_=
1504297027575_21300"><span style=3D"font-family: 'Helvetica Neue', 'Segoe U=
I', Helvetica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504=
297027575_21301">request1.GET("</span><a href=3D"http://deployment.com/cbr?=
mpd=3Dhttp://deployment1/KronSd/m18_mod.mpd" target=3D"_blank" style=3D"col=
or: rgb(25, 106, 212); font-family: 'Helvetica Neue', 'Segoe UI', Helvetica=
, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_213=
02">http://deployment.com/cbr?mpd=3Dhttp://deployment1/KronSd/m18_mod.mpd</=
a><span style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Aria=
l, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21303">")=
</span><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvet=
ica, Arial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_=
21304"><br style=3D"font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, A=
rial, 'Lucida Grande', sans-serif;" id=3D"yui_3_16_0_1_1504297027575_21305"=
></div></div></body></html>
------=_Part_1276756_1410115226.1504298198356--
--===============8031208902176998214==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============8031208902176998214==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use
--===============8031208902176998214==--