<div dir="ltr">Michel,<div>this page attempts to keep track of which Mapserver components are thread safe:</div><div><br></div><div><a href="http://mapserver.org/faq.html#is-mapserver-thread-safe">http://mapserver.org/faq.html#is-mapserver-thread-safe</a><br>
</div><div><br></div><div>it must not be completely up to date as, as you found out, Oracle is listed as safe, while it's not.</div><div>As for fixing it, it should be relatively easy as those two variables can be made local to the functions using them.</div>
<div><br></div><div>Please open an issue and I will look into it asap.</div><div><br></div><div>Umberto</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 12, 2013 at 9:44 PM,  <span dir="ltr"><<a href="mailto:Michel.Dastous@bentley.com" target="_blank">Michel.Dastous@bentley.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<font face="Calibri"><span style="font-size:11pt">
<div>Hi all,</div>
<div> </div>
<div>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).</div>
<div> </div>
<div>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) ?</div>
<div> </div>
<div>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%. </div>
<div> </div>
<div>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.</div>
<div> </div>
<div>So any suggestions/information would be welcome.</div>
<div> </div>
<div>Thanks.</div>
<div> </div>
</span></font>
</div>

<br>_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
<br></blockquote></div><br></div>