[MapProxy] MapProxy Performance

Andreas Trawoeger atrawog at datenscheibe.org
Mon Mar 14 09:57:27 EDT 2011


Hi Johan!

MapProxy can perform incredible well, but on todays multi-core server you
have to take great care to run multiple MapProxy instances in a non-blocking
configuration.

Starting MapProxy via paster is great for test & development, but for better
performance you should take a look at the multiple MapProxy deployment
options using FastCGI or WSGI [0].

To better analyze the exception it would be helpful to change the language
locale to default using " export LANG='C' " before running paster and repost
the exception in English.


cu andreas

[0] http://mapproxy.org/docs/1.0.0/deployment.html#production



2011/3/14 Johan Sandberg <johs at kth.se>

>  Hey!
>
> Im performing some performance testing on wms+cache, where mapproxy is
> included.
>
> I runn 6000 URLS from a list and use a webstress program to read the list,
> with 10 request/sec.
>
> The performance of the test are really low and I think it has to do with
> this exception.
> Anyone nows what this exception means, and/or it can be fixed ?
>
>
> Exception happened during processing of request from
> Exception happened during processing of request from  (('17'2011-03-14
> 12:22:59,
> 194 - INFO - 3484:mapproxy.client.http.http:_log - localhost:8080 - -
> [14/Mar/20
> 11:12:22:59 ] "GET
> /geoserver/wms?layers=Jarfalla_tatort&width=927&version=1.1.1
>
> &bbox=137106.437128,6588627.33556,137157.010126,6588677.90856&service=WMS&format
> =image%2Fpng&styles=&srs=EPSG%3A3011&request=GetMap&height=927 HTTP/1.1"
> 200 - "
> -" ""
> 1722..18.6168.1.266', 4715)
> Traceback (most recent call last):
>   File
> "c:\mapproxy_venv\lib\site-packages\paste-1.7.5.1-py2.6.egg\paste\httpser
> ver.py", line 1068, in process_request_in_thread
> 6.12    self.finish_request(request, client_address)
>  6',  File "C:\Python26\Lib\SocketServer.py", line 322, in finish_request
> 4721)    self.RequestHandlerClass(request, client_address, self)
>   File "C:\Python26\Lib\SocketServer.py", line 618, in __init__
>     self.finish()
>   File "C:\Python26\Lib\SocketServer.py", line 661, in finish
>     self.wfile.flush()
>   File "C:\Python26\Lib\socket.py", line 297, in flush
>     self._sock.sendall(buffer(data, write_offset, buffer_size))
> error: [Errno 10054] En befintlig anslutning tvingades att stõnga av
> fjõrrvõrdda
> torn
> ----------------------------------------
>
> Traceback (most recent call last):
>   File
> "c:\mapproxy_venv\lib\site-packages\paste-1.7.5.1-py2.6.egg\paste\httpser
> ver.py", line 1068, in process_request_in_thread
>     self.finish_request(request, client_address)
>   File "C:\Python26\Lib\SocketServer.py", line 322, in finish_request
>     self.RequestHandlerClass(request, client_address, self)
>   File "C:\Python26\Lib\SocketServer.py", line 618, in __init__
>     self.finish()
>   File "C:\Python26\Lib\SocketServer.py", line 661, in finish
>     self.wfile.flush()
>   File "C:\Python26\Lib\socket.py", line 297, in flush
>     self._sock.sendall(buffer(data, write_offset, buffer_size))
> error: [Errno 10054] En befintlig anslutning tvingades att stõnga av
> fjõrrvõrdda
>
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20110314/d602fcf7/attachment-0001.html


More information about the MapProxy mailing list