<br><font size=2 face="sans-serif">Umberto</font>
<br>
<br><font size=2 face="sans-serif">Thank you for taking care onon this
old but still open issue!</font>
<br>
<br><font size=2 face="sans-serif">I created </font>
<br><font size=2 face="sans-serif">http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1661
and</font>
<br><font size=2 face="sans-serif">http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1662</font>
<br>
<br><font size=2 face="sans-serif">Benedikt</font>
<br>
<br><font size=2 face="sans-serif">(Sorry! I was not able to add your e-mail-adress
to cc. Bugzilla denied to do so. I suppose</font>
<br><font size=2 face="sans-serif">you can handle this anyway.)</font>
<br>
<br><font size=2><tt>Umberto Nicoletti &lt;umberto.nicoletti@gmail.com&gt;
schrieb am 13.02.2006 10:25:02:<br>
<br>
&gt; Benedikt,<br>
&gt; since I am looking this issue would'n t you mind opening a bug for
the<br>
&gt; inclusion of msConnPoolCloseUnreferenced in mapscript and one for
the<br>
&gt; memory leaks (add me to the cc list)?<br>
&gt; <br>
&gt; <br>
&gt; Reagrds,<br>
&gt; Umberto<br>
&gt; <br>
&gt; On 1/2/06, Benedikt Rothe &lt;umn-ms@hydrotec.de&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Hi list members,<br>
&gt; &gt;<br>
&gt; &gt; From former threads I got the impression, that there are some
folks<br>
&gt; &gt; interested in the Oracle/Mapserver/Java/Tomcat.<br>
&gt; &gt;<br>
&gt; &gt; Therfore I'd like to share experiences I made with using Connection-Pooling<br>
&gt; &gt; of<br>
&gt; &gt; Oracle-Connections inside Java/Tomcat.<br>
&gt; &gt;<br>
&gt; &gt; Testenvironment: Mapserver 4.6.2; Suse-Linux; Tomcat 4.1.31;
Sun-Java 1.4.2<br>
&gt; &gt; Simulating 5 Browsers, which produce maps, query features, make
selections,<br>
&gt; &gt; query-legend-pics frequently.<br>
&gt; &gt;<br>
&gt; &gt; - After using synchronized &quot;enough&quot; I didn't have crashes
of Tomcat.<br>
&gt; &gt;<br>
&gt; &gt; - Big memory leak: Between the first 5 requests and the next
100 requests<br>
&gt; &gt; &nbsp; &nbsp;the Tomcat-process became about 400MB bigger. &nbsp;(I
use &quot;top&quot; for<br>
&gt; &gt; &nbsp; &nbsp;watching memory-footprint.)<br>
&gt; &gt;<br>
&gt; &gt; - Cleaning the Connection-Pool &quot;by hand&quot;. This means:<br>
&gt; &gt; &nbsp; Opening the function msConnPoolCloseUnreferenced in mappool.c<br>
&gt; &gt; &nbsp; for use in Java and call it after every request.<br>
&gt; &gt;<br>
&gt; &gt; - After this I still have memory leaks: &nbsp;About 100MB for
30.000 requests.<br>
&gt; &gt; &nbsp; (I also made a test: 25.000 requests without Connection
pooling. Memory<br>
&gt; &gt; increased<br>
&gt; &gt; &nbsp; &nbsp; and decreased as expected &nbsp;in this case.)<br>
&gt; &gt;<br>
&gt; &gt; - Performancecomparison in my testcase:<br>
&gt; &gt; &nbsp; Without use of connection-pooling: ~ 50 Request per minute<br>
&gt; &gt; &nbsp; With use of connection-pooling: ~75 Request per minute<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; As a result I have the following encouragements:<br>
&gt; &gt; - Making msConnPoolCloseUnreferenced &nbsp;availabe for mapscript
via swig.<br>
&gt; &gt; &nbsp; (I made a hack by directly editing mapscript/java/mapscript_wrap.c
and<br>
&gt; &gt; &nbsp; &nbsp;Java-Files in mapscript/java/edu/umn/gis/mapscript.)
I<br>
&gt; &gt; think this<br>
&gt; &gt; &nbsp; function could be part of the mapscript-Object?<br>
&gt; &gt;<br>
&gt; &gt; - Investigations on the memory leaks. Both leaks shouldn't occure.
(I'll do<br>
&gt; &gt; &nbsp; this, if I find time. but ...)<br>
&gt; &gt;<br>
&gt; &gt; - Fernando Simon: What about using OCI-Connection-Pooling &nbsp;for
oracle<br>
&gt; &gt; instead the mappool.c?<br>
&gt; &gt;<br>
&gt; &gt; http://oraclesvca2.oracle.com/docs/cd/B14117_01/appdev.101/b10779/oci09adv.htm#452244<br>
&gt; &gt; &nbsp; (If you don't have time, I maybe could help coding. But
would it become<br>
&gt; &gt; part uf Mapserver?)<br>
&gt; &gt;<br>
&gt; &gt; Happy new year to everybody<br>
&gt; &gt; Benedikt Rothe<br>
</tt></font>