[mapserver-dev] Mapserver thread safety

Umberto Nicoletti umberto.nicoletti at gmail.com
Mon Aug 12 23:23:46 PDT 2013


Michel,
this page attempts to keep track of which Mapserver components are thread
safe:

http://mapserver.org/faq.html#is-mapserver-thread-safe

it must not be completely up to date as, as you found out, Oracle is listed
as safe, while it's not.
As for fixing it, it should be relatively easy as those two variables can
be made local to the functions using them.

Please open an issue and I will look into it asap.

Umberto



On Mon, Aug 12, 2013 at 9:44 PM, <Michel.Dastous at bentley.com> wrote:

>  Hi all,
>
> I’ve been testing mapserver and its c# mapscript API for a while now, and
> I have noticed that making simultaneous Draw request on multiple maps
> containing Oracle layer will end up in memory corruption.  No surprise here
> since maporaclespatial.c uses static variables (ordinates_tdo and
> ordinates).
>
> My question is: Does anyone have already evaluated how much work it would
> require to make it thread safe (i.e remove those static variables from the
> code) ?
>
> Furthermore, I have also tested the MSSQL plugin which is stable under
> same conditions, unfortunately it doesn’t seem to scale very well my 4 core
> machines with maximum CPU usage of 15%.
>
> I don’t think the problem come from mapserver’ s rendering engine… when
> drawing a map with inlined data, I could easily reach a 90% usage.
>
> So any suggestions/information would be welcome.
>
> Thanks.
>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20130813/69789b97/attachment.html>


More information about the mapserver-dev mailing list