Roman,

are you talking about something like this 
https://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/jmeter/mapserver/linux/
 ?
I'm not fammilliar with .jmx file or jmeter itself, could you pleas provide me 
some example / further explenation?

Thank you,
Marcin




[cid:720503ba-ad00-4f19-862d-d3ae8b8af1f5]<https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=signature>
           Book time to meet with 
me<https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=signature>
________________________________
From: MapServer-users <[email protected]> on behalf of 
Roman Bamio Gonzalez <[email protected]>
Sent: Tuesday, January 24, 2023 11:54 AM
To: [email protected] <[email protected]>
Subject: Re: [MapServer-users] MapServer-users Digest, Vol 180, Issue 14


Hi!

You can use the jmeter product with which you avoid having to make a script...
Besides; the calls you make must be spatially separated so that the mapserver 
does not return cached responses and you get unreal response times.

thanks for listening!

El 24/01/2023 a las 11:40, 
[email protected]<mailto:[email protected]>
 escribió:

Send MapServer-users mailing list submissions to
        [email protected]<mailto:[email protected]>

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
        
[email protected]<mailto:[email protected]>

You can reach the person managing the list at
        
[email protected]<mailto:[email protected]>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MapServer-users digest..."


Today's Topics:

   1. GetMap request inside python script; measuring speed of WMS?
      (Marcin Niemyjski)
   2. Re: GetMap request inside python script; measuring speed of
      WMS? (Seth G)


----------------------------------------------------------------------

Message: 1
Date: Tue, 24 Jan 2023 10:36:21 +0000
From: Marcin Niemyjski 
<[email protected]><mailto:[email protected]>
To: Marcin Niemyjski via MapServer-users
        
<[email protected]><mailto:[email protected]>
Subject: [MapServer-users] GetMap request inside python script;
        measuring speed of WMS?
Message-ID:
        
<as1pr03mb81491b498bcf03817618479aa8...@as1pr03mb8149.eurprd03.prod.outlook.com><mailto:as1pr03mb81491b498bcf03817618479aa8...@as1pr03mb8149.eurprd03.prod.outlook.com>

Content-Type: text/plain; charset="utf-8"

Hello,

I want to measure how long does it takes for my WMS to response to GetMap 
request. I have prepared list of extents in form of python list for example:
['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', 
'38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...]

I'm aiming into itterating over this list and passing it's elements into GetMap 
request inside python script and then request GetMap and measure how long does 
it takes to perfome it.

Here starts my question: How to do GetMap request inside python script, is it 
possible? The question is not about creating the url but about function wich 
does request.
Maybe somebody can recommend me some other way of measuring speed of WMS?

I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need 
some statistics for presentation ?

Best,
Marcin




[cid:f896bb67-9d7c-4fef-a779-e7ab8c29f1e6]<https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=signature><https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=signature>
           Book time to meet with 
me<https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=signature><https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=signature>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230124/109dcc83/attachment-0001.htm><http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230124/109dcc83/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-a1f1cvge.png
Type: image/png
Size: 528 bytes
Desc: Outlook-a1f1cvge.png
URL: 
<http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230124/109dcc83/attachment-0001.png><http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230124/109dcc83/attachment-0001.png>

------------------------------

Message: 2
Date: Tue, 24 Jan 2023 11:39:43 +0100
From: "Seth G" <[email protected]><mailto:[email protected]>
To: "Marcin Niemyjski" 
<[email protected]><mailto:[email protected]>, "MapServer Users"
        
<[email protected]><mailto:[email protected]>
Subject: Re: [MapServer-users] GetMap request inside python script;
        measuring speed of WMS?
Message-ID: 
<[email protected]><mailto:[email protected]>
Content-Type: text/plain; charset="utf-8"

Hi Marcin,

Have a look at the example Python script at 
https://github.com/MapServer/MapServer/blob/main/mapscript/python/examples/wxs.py
 - this shows creating and calling a WMS request.

Seth

--
web:https://geographika.net
twitter: @geographika

On Tue, Jan 24, 2023, at 11:36 AM, Marcin Niemyjski via MapServer-users wrote:


Hello,

I want to measure how long does it takes for my WMS to response to GetMap 
request. I have prepared list of extents in form of python list for example:
['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', 
'38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...]

I'm aiming into itterating over this list and passing it's elements into GetMap 
request inside python script and then request GetMap and measure how long does 
it takes to perfome it.

Here starts my question: How to do GetMap request inside python script, is it 
possible? The question is not about creating the url but about function wich 
does request.
Maybe somebody can recommend me some other way of measuring speed of WMS?

I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need 
some statistics for presentation ?

Best,
Marcin






 
<https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=signature><https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=signature>



Book time to meet with me 
<https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=signature><https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=signature>

_______________________________________________
MapServer-users mailing list
[email protected]<mailto:[email protected]>
https://lists.osgeo.org/mailman/listinfo/mapserver-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230124/9a736cd0/attachment.htm><http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230124/9a736cd0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-a1f1cvge.png
Type: image/png
Size: 528 bytes
Desc: not available
URL: 
<http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230124/9a736cd0/attachment.png><http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230124/9a736cd0/attachment.png>

------------------------------

Subject: Digest Footer

_______________________________________________
MapServer-users mailing list
[email protected]<mailto:[email protected]>
https://lists.osgeo.org/mailman/listinfo/mapserver-users


------------------------------

End of MapServer-users Digest, Vol 180, Issue 14
************************************************


--
[Logo Junta Andalucia]
Román Bamio González
Gestión Proyectos
Agencia Digital de Andalucía
Consejería de Sostenibilidad, Medio Ambiente y Economía Azul
https://lajunta.es/3z0xj
T: 955003635 (Corp. 303635) | M: N/A
[email protected]<mailto:[email protected]> | 
www.juntadeandalucia.es<http://www.juntadeandalucia.es>
AVISO DE CONFIDENCIALIDAD
Tanto este mensaje como todos los posibles documentos adjuntos al mismo son 
confidenciales y están dirigidos exclusivamente a los destinatarios de los 
mismos. Por favor, si Ud no es uno de dichos destinatarios, notifíquenos este 
hecho y elimine este mensaje lo antes posible.Queda prohibida la copia, 
difusión o revelación de su contenido a terceros sin el previo consentimiento 
por escrito de la Consejería.
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to