<?xml version="1.0" encoding="windows-1252"?>
<node id="487630" title="Re^2: Help prevent a ModPerl application from replacement by Java" created="2005-08-29 22:44:29" updated="2005-08-29 18:44:29">
<type id="11">
note</type>
<author id="260843">
monsieur_champs</author>
<data>
<field name="doctext">
&lt;p&gt;Fellow Joost&lt;/p&gt;
&lt;p&gt;I'm actually using mod_perl, as Catalyst provides a content handler.&lt;/p&gt;
&lt;p&gt;The Java test was made with just 5 seconds of "ramp-up" time. Perl was running under the same conditions. Is that fair?&lt;/p&gt;
&lt;p&gt;My machine shares the Intel Pentium 4 Processor 2.8 GHz and 512Mb Ram with Oracle (nicely tunned to use less memory as usual) with the Tomcat (only when running Java) or Apache/ModPerl (only when running Perl). I know this is not the best situation, but this is what I have.&lt;/p&gt;
&lt;p&gt;We're using the same machine to run tests, just shutdown the application (Java or Perl) that will not be tested and run tests against the other.&lt;/p&gt;
&lt;p&gt;I don't know a lot about the Java code. I guess its simmilar to the Perl code, but this is only a guess. I'll ask about this to the Java programmer tomorrow moring.&lt;/p&gt;
&lt;p&gt;I don't know about the templating system, also. Maybe just servlets, the java application was made on sunday, only for the benchmarks.&lt;/p&gt;
&lt;p&gt;My Catalyst::Plugin::Session::Flex is trully serializable (and just hold some integers, anyway).&lt;/p&gt;
&lt;p&gt;I choosen to use Apache::DBI to handle the database connections, and load it from my &lt;code&gt;httpd.conf&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;Guess Java is using just one or two database connections, while I'm forced (not sure about "forced") to use a connection per server process.&lt;/p&gt;
&lt;p&gt;You gave me nice tips on what to look for at the Java code so I can state if this is a fair benchmark. Thank you very much and may the [gods] [bless] you!&lt;/p&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-260843"&gt;
&lt;p align="right"&gt;&lt;small&gt;-- [monsieur_champs]&lt;/small&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
487618</field>
<field name="parent_node">
487624</field>
</data>
</node>
